Updated permission for prometheus

This commit is contained in:
giancarlo 2022-05-10 10:37:09 +02:00
parent 60fd3e9b41
commit 18e1e55553
1 changed files with 1 additions and 2 deletions

View File

@ -90,8 +90,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
.permitAll().antMatchers("/api/account/reset-password/init").permitAll()
.antMatchers("/api/account/reset-password/finish").permitAll().antMatchers("/api/**").authenticated()
.antMatchers("/management/health").permitAll().antMatchers("/management/info").permitAll()
.antMatchers("/management/prometheus")
.hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS)
.antMatchers("/management/prometheus").permitAll()
.antMatchers("/management/jhimetrics")
.hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS)
.antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN);