From 18e1e555536b03ebd031f9631da4abb2a307d41f Mon Sep 17 00:00:00 2001 From: giancarlo Date: Tue, 10 May 2022 10:37:09 +0200 Subject: [PATCH] Updated permission for prometheus --- .../java/it/cnr/isti/epasmed/config/SecurityConfiguration.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java b/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java index 48dc0a3..04e6ac1 100755 --- a/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java +++ b/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java @@ -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);