Skip to content

Commit

Permalink
Authorize actuator path for all requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchosiax committed Oct 4, 2023
1 parent 0d4c7b1 commit 851dd51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class SecurityConfig {
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http.csrf().disable()
.authorizeHttpRequests()
.requestMatchers("/actuator/**").permitAll()
.requestMatchers("/web/**").hasRole("SCOPE_trust", "admin_system")
.requestMatchers("/user/**").hasAuthority("SCOPE_trust")
.and()
Expand Down
2 changes: 1 addition & 1 deletion config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<java.version>17</java.version>
<spring-cloud.version>2022.0.4</spring-cloud.version>
<kotlin.version>1.8.0</kotlin.version>
<spring.version>3.1.4</spring.version>
<spring.version>3.0.10</spring.version>
</properties>

<dependencies>
Expand Down

0 comments on commit 851dd51

Please sign in to comment.