Skip to content

Commit

Permalink
fix: Too strict Spring Security configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
johannmo committed Apr 25, 2024
1 parent 035beb0 commit 9931bd8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ public static class BasicAuthFilter extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and().csrf().disable();
http.authorizeRequests((autz)-> autz
http.authorizeRequests((autz) -> autz
.antMatchers("/health/**").permitAll()
.antMatchers("/manage/health/**").permitAll()
.antMatchers("/prometheus").permitAll()
.antMatchers("/manage/prometheus").permitAll()
.anyRequest().authenticated());
.antMatchers("/manage/prometheus").permitAll());
}
}

Expand Down

0 comments on commit 9931bd8

Please sign in to comment.