You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To switch off the default web application security configuration completely or to combine multiple Spring Security components such as OAuth2 Client and Resource Server, add a bean of type `SecurityFilterChain` (doing so does not disable the `UserDetailsService` configuration or Actuator's security).
If you create a new Spring Boot 3 application like this
wilkinsona
changed the title
wrong docs on Security auto configuration, custom SecurityFilterChain and Actuator Security?
Documentation that describes the effect upon Actuator of defining your own SecurityFilterChain is inaccurate
Jul 22, 2024
Thanks for spotting and reporting this, @criztovyl. You're right that the docs are wrong. The javadoc for ManagementWebSecurityAutoConfiguration describes things accurately:
wilkinsona
changed the title
Documentation that describes the effect upon Actuator of defining your own SecurityFilterChain is inaccurate
The effect upon Actuator of defining your own SecurityFilterChain is documented inconsistently
Jul 29, 2024
If Spring Security is on the classpath and no other `SecurityFilterChain` bean is present, all actuators other than `/health` are secured by Spring Boot auto-configuration.
If you define a custom `SecurityFilterChain` bean, Spring Boot auto-configuration backs off and lets you fully control the actuator access rules.
Uh oh!
There was an error while loading. Please reload this page.
It seems this statement in docs is wrong or confusing (emphasis mine):
spring-boot/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/spring-security.adoc
Line 37 in ab3c579
If you create a new Spring Boot 3 application like this
https://start.spring.io/#!type=gradle-project&language=java&platformVersion=3.3.2&packaging=jar&jvmVersion=17&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&dependencies=security,web,actuator
with default configuration actuator is secured:
but when adding a SecurityFilterChain like this
or this
security is gone
The text was updated successfully, but these errors were encountered: