Skip to content

Commit

Permalink
FDP-94: Enable unauthorized access to actuator endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Sander Verbruggen <[email protected]>
  • Loading branch information
sanderv committed Nov 22, 2023
1 parent 90b85ed commit cd36f45
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public SoapEndpointMapping(final SoapEndpoint soapEndpoint) {

@Override
protected Object getHandlerInternal(@NotNull final HttpServletRequest request) {
return soapEndpoint;
if (request.getServletPath().startsWith("/actuator")) {
// Let Spring handle this routing
return null;
} else {
return soapEndpoint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class SecurityConfiguration {
fun filterChain(http: HttpSecurity): SecurityFilterChain =
http.authorizeHttpRequests {
it
.requestMatchers("/actuator/**").permitAll()
.anyRequest().authenticated()
}.x509 {
it
Expand Down
12 changes: 11 additions & 1 deletion application/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ logging:
org:
gxf:
soapbridge: DEBUG

spring:
kafka:
bootstrap-servers: localhost:9092
Expand Down Expand Up @@ -46,3 +45,14 @@ soap:
port: 443
protocol: https
time-out: 45

management:
server:
port: 8888
# ssl:
# enabled: false
# client-auth: none
endpoints:
web:
exposure:
include: health

0 comments on commit cd36f45

Please sign in to comment.