Skip to content

Commit

Permalink
Opens actuator entrypoint to everyone (#313)
Browse files Browse the repository at this point in the history
Co-authored-by: Hervé Le Meur <[email protected]>
  • Loading branch information
alecharp and lemeurherve authored May 23, 2023
1 parent f813f2d commit 10c69c1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.authorizeHttpRequests(request ->
request
.requestMatchers(HttpMethod.GET, "/js/*", "/style.css", "/svg/*").permitAll()
.requestMatchers(HttpMethod.GET, "/api/scores", "/", "/probes", "/probes/*", "/scores", "/scores/*").permitAll()
.requestMatchers(HttpMethod.GET,
"/api/scores",
"/",
"/probes", "/probes/*",
"/scores", "/scores/*",
"/actuator/*"
).permitAll()
.anyRequest().authenticated()
);
return http.build();
Expand Down

0 comments on commit 10c69c1

Please sign in to comment.