Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Clarify use of user roles and (maybe also) basic auth for actuator endpoints #28

Open
dsyer opened this issue Jan 13, 2015 · 3 comments

Comments

@dsyer
Copy link
Contributor

dsyer commented Jan 13, 2015

No description provided.

@dsyer dsyer added this to the 1.0.0.RC2 milestone Jan 13, 2015
@dsyer dsyer modified the milestones: 1.0.0.RC2, 1.0.0.RC3 Jan 30, 2015
@NickPadilla
Copy link

Hey @dsyer - This would be useful for me. I am attempting to use this configuration

management:
  security:
    role: admin
    enabled: true
  context_path: /admin

In the hopes that I could get the endpoints to only allow users with an 'admin' role to view. Having this documentation would be helpful.

@NickPadilla
Copy link

For now, i have set management to be on a different port. This is a short term solution as I'd like to see the security checking against the OAuth2Authentication object, for the specified role; also would like to be able to get to these endpoints from Zuul.

@dsyer dsyer modified the milestones: 1.0.0.RC3, 1.0.0 Feb 13, 2015
@dsyer dsyer modified the milestones: 1.0.0, 1.0.1 Mar 10, 2015
@ktong
Copy link

ktong commented Apr 11, 2015

@NickPadilla I am able to use basic authentication for actuator endpoints with below configuration.

@Configuration
@EnableOAuth2Resource
public class ResourceServerConfig extends ResourceServerConfigurerAdapter {

  @Value("${management.contextPath}")
  private String contextPath = "";

  @Override
  public void configure(HttpSecurity http) throws Exception {
    http.regexMatcher("^(?!" + contextPath + ").*$").authorizeRequests()
        .anyRequest().authenticated();
  }
}

@dsyer dsyer modified the milestones: 1.0.1, 1.1.0 Jun 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants