3.0.0-M5: Actuator Endpoints Sanitization #445
Labels
3.0.0
Spring Boot 3.0.0
good first issue
Good for newcomers
type: enhancement
New feature or request
upgrade:boot-report
Milestone
Uh oh!
There was an error while loading. Please reload this page.
From the Release Notes
What needs to be done
As Spring Boot migrator can't tell if non-sanitized properties are required, the best to prevent errors after upgrading to 3.0.0 is to reset the behaviour and inform the user about the change and its implications.
Report
Condition
Application is a Boot 3.0.0 application and actuator dependency is on the classpath
Section
title:
Actuator Endpoints Sanitization
paragraph:
Since, the
/env
and/configprops
endpoints can contains sensitive values, all values are always masked by default. This used to be case only for keys considered to be sensitive.Instead, this release opts for a more secure default. The keys-based approach has been removed in favor of a role based approach, similar to the health endpoint details. Whether unsanitized values are shown or not can be configured using a property which can have the following values:
NEVER
- All values are sanitized.ALWAYS
- All values are present in the output (sanitizing functions will apply).WHEN_AUTHORIZED
- Values are present in the output only if a user is authorized (sanitizing functions will apply).For JMX, users are always considered to be authorized. For HTTP, users are considered to be authorized if they are authenticated and have the specified roles.
Sanitization for the QuartzEndpoint is also configurable in the same way.
relevance-paragraph:
The scan found a dependency to actuator on the classpath. The Actuator endpoint sanitization changed in Spring Boot 3.0.0.
Because Spring Boot Migrator can't tell if the now sanitized properties are required in plain-text, the default in 2.7 will be reset. This means the application does not benefit from the new and more secure configuration in Spring Boot 3.0.0.
We strongly recommend you adjust this configuration to your needs.
todos:
management.endpoint.configprops.show-values
,management.endpoint.env.show-values
andmanagement.endpoint.quartz.show-values
.Recipe
Condition
Application is a Boot 3.0.0 application and actuator dependency is on the classpath
Action
Set the propertiesmanagement.endpoint.configprops.show-values
,management.endpoint.env.show-values
andmanagement.endpoint.quartz.show-values
toALWAYS
No action, users need to manually configure to their needs
The text was updated successfully, but these errors were encountered: