Added acl for /management/jhimetrics

This commit is contained in:
giancarlo 2022-05-09 17:05:17 +02:00
parent 0ac9cfc639
commit 60fd3e9b41
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
.antMatchers("/management/health").permitAll().antMatchers("/management/info").permitAll()
.antMatchers("/management/prometheus")
.hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS)
.antMatchers("/management/jhimetrics")
.hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS)
.antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN);
// @formatter:on
}