2.4-2.5: Secure Info Endpoint
Release Notes
The /info actuator endpoint is no longer exposed over the web by default.
Additionally, if Spring Security is on the classpath and your application doesn't have a custom security configuration, the endpoint requires authenticated access by default.
Condition
org.springframework.boot:spring-boot-actuatoris on classpath (MUST)org.springframework.security:spring-security-webis on classpath (OPTIONAL)- Does a custom security configuration exist (OPTIONAL)
Description with only actuator on classpath
The scan found
org.springframework.boot:spring-boot-actuatoron the classpath. The actuator/infoendpoint is no longer exposed over the web by default. If the/infoendpoint needs to be accessible over the web you'll need to declare it as exposed over web. See Exposing Endpoints. Neither Spring Security nor a security configuration was found. You should take care to secure HTTP endpoints in the same way that you would any other sensitive URL. See Securing HTTP Endpoints for further information.If you used the
/infoendpoint for health-checks you might consider using the/healthendpoint instead.
Description with actuator and security on classpath without custom security configuration
The scan found
org.springframework.boot:spring-boot-actuatorandorg.springframework.security:spring-security-core-*on the classpath but no custom security configuration.The actuator
/infoendpoint is no longer exposed over the web by default. If the/infoendpoint needs to be accessible over the web you'll need to declare it as exposed over web. See Exposing Endpoints.No security configuration was found and the
/infoendpoint now requires authenticated access by default using basic authentication with the default user nameduserand the random password that's logged at startup, see Security for further information.If you want to change the authentication bahaviour you can provide a custom security config for the
/infoendpoint. This also allows you to preserve the old behaviour by deactivating authentication in the custom security config. See Securing HTTP Endpoints for further information.If you used the
/infoendpoint for health-checks you might consider using the/healthendpoint instead.
Description with actuator and security on classpath with custom security configuration
The scan found
org.springframework.boot:spring-boot-actuatorandorg.springframework.security:spring-security-core-*on the classpath and custom security configuration(s) in these classes [list of security configurations]. The actuator/infoendpoint is no longer exposed over the web by default. If the/infoendpoint needs to be accessible over the web you'll need to declare it as exposed over web. See Exposing Endpoints. Spring security and a custom security configuration was found. You should take care to provide a security configuration for the/infoendpoint. See Securing HTTP Endpoints for further information.If you used the
/infoendpoint for health-checks you might consider using the/healthendpoint instead.