Added acl for /management/jhimetrics
This commit is contained in:
parent
0ac9cfc639
commit
60fd3e9b41
|
@ -92,6 +92,8 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
||||||
.antMatchers("/management/health").permitAll().antMatchers("/management/info").permitAll()
|
.antMatchers("/management/health").permitAll().antMatchers("/management/info").permitAll()
|
||||||
.antMatchers("/management/prometheus")
|
.antMatchers("/management/prometheus")
|
||||||
.hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS)
|
.hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS)
|
||||||
|
.antMatchers("/management/jhimetrics")
|
||||||
|
.hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS)
|
||||||
.antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN);
|
.antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN);
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue