Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

Commit b176955

Browse files
committed
Fix Kubernetes readiness and liveness endpoints by giving higher precedence to anonymous paths
1 parent cc3dc47 commit b176955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/engineering/everest/starterkit/security/config/ResourceServerConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public void configure(HttpSecurity http) throws Exception {
7979
.csrf().disable()
8080
.sessionManagement().sessionCreationPolicy(STATELESS).and()
8181
.authorizeRequests(request ->
82-
request.antMatchers(ADMIN_USERS_PATHS).access("hasRole('ADMIN')")
83-
.antMatchers(ANONYMOUS_USER_PATHS).access("permitAll")
82+
request.antMatchers(ANONYMOUS_USER_PATHS).access("permitAll")
83+
.antMatchers(ADMIN_USERS_PATHS).access("hasRole('ADMIN')")
8484
.antMatchers(AUTHENTICATED_USER_PATHS).access("authenticated"));
8585
}
8686
}

0 commit comments

Comments
 (0)