|
87 | 87 | sections:
|
88 | 88 |
|
89 | 89 |
|
90 |
| - - title: Add Spring Boot dependency and plugin milestone repository |
91 |
| - helper: org.springframework.sbm.boot.upgrade_27_30.report.helper.AddSpringBootRepositoriesHelper |
92 |
| - change: |- |
93 |
| - As currently only milestone releases exist these are required |
94 |
| - affected: |- |
95 |
| - You want to update to 3.0 so you're affected |
96 |
| - remediation: |
97 |
| - description: |- |
98 |
| - Add Spring Boot milestone repositories. |
99 |
| - recipe: sbu30-add-milestone-repositories |
100 |
| - gitHubIssue: 441 |
101 |
| - contributors: |
102 |
| - - "Fabian Krüger[@fabapp2]" |
| 90 | +# Note re required anymore now that 3.0 is released. Kept for reference |
| 91 | +# - title: Add Spring Boot dependency and plugin milestone repository |
| 92 | +# helper: org.springframework.sbm.boot.upgrade_27_30.report.helper.AddSpringBootRepositoriesHelper |
| 93 | +# change: |- |
| 94 | +# As currently only milestone releases exist these are required |
| 95 | +# affected: |- |
| 96 | +# You want to update to 3.0 so you're affected |
| 97 | +# remediation: |
| 98 | +# description: |- |
| 99 | +# Add Spring Boot milestone repositories. |
| 100 | +# recipe: sbu30-add-milestone-repositories |
| 101 | +# gitHubIssue: 441 |
| 102 | +# contributors: |
| 103 | +# - "Fabian Krüger[@fabapp2]" |
103 | 104 |
|
104 | 105 | - title: Upgrade Dependencies
|
105 | 106 | helper: org.springframework.sbm.boot.upgrade_27_30.report.helper.UpgradeDependenciesHelper
|
|
132 | 133 | - "Fabian Krüger[@fabapp2]"
|
133 | 134 |
|
134 | 135 |
|
| 136 | + - title: Actuator Endpoints Sanitization |
| 137 | + helper: org.springframework.sbm.boot.upgrade_27_30.report.helper.ActuatorEndpointsSanitizationHelper |
| 138 | + change: |- |
| 139 | + Since, the `/env` and `/configprops` endpoints can contains sensitive values, all values are always masked by default. |
| 140 | + This used to be case only for keys considered to be sensitive. |
| 141 | + |
| 142 | + Instead, this release opts for a more secure default. |
| 143 | + The keys-based approach has been removed in favor of a role based approach, similar to the health endpoint details. |
| 144 | + Whether unsanitized values are shown or not can be configured using a property which can have the following values: |
| 145 | + |
| 146 | + - `NEVER` - All values are sanitized. |
| 147 | + - `ALWAYS` - All values are present in the output (sanitizing functions will apply). |
| 148 | + - `WHEN_AUTHORIZED` - Values are present in the output only if a user is authorized (sanitizing functions will apply). |
| 149 | + |
| 150 | + 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. |
| 151 | + |
| 152 | + Sanitization for the QuartzEndpoint is also configurable in the same way. |
| 153 | + affected: |- |
| 154 | + The scan found a dependency to actuator on the classpath. |
| 155 | + |
| 156 | + <#list matchingBuildFiles as match> |
| 157 | + * file://${match.absolutePath}[`${match.sourcePath}`]<#lt> |
| 158 | + </#list> |
| 159 | + remediation: |
| 160 | + possibilities: |
| 161 | + - title: Verify the new sanitization fulfills your requirements |
| 162 | + description: |- |
| 163 | + Please verify that none of the sanitized values must be plain text to meet your requirements. |
| 164 | + If some sanitized values are required in plain text a custom `SanitizingFunction` must be provided. |
| 165 | + Please see the documentation about https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/howto.html#howto.actuator.sanitize-sensitive-values.customizing-sanitization[Customizing Sanitization^, role="ext-link"] |
| 166 | + for further information on how to do this. |
| 167 | + resources: |
| 168 | + - https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/howto.html#howto.actuator.sanitize-sensitive-values[Sanitize Sensitive Values^, role="ext-link"] |
| 169 | + - https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/howto.html#howto.actuator.sanitize-sensitive-values.customizing-sanitization[Customizing Sanitization^, role="ext-link"] |
| 170 | +# Not available until upgrade to the latest rewrite version which is currently blocked |
| 171 | +# |
| 172 | +# - title: Reset behavior to prior 3.0 |
| 173 | +# description: |- |
| 174 | +# Because Spring Boot Migrator can't tell if the now sanitized properties are required in plain-text, |
| 175 | +# the only automated change we can do is setting `management.endpoint.configprops.show-values`, |
| 176 | +# `management.endpoint.env.show-values` and `management.endpoint.quartz.show-values` to `ALWAYS`. |
| 177 | +# This means the application does not benefit from the new and more secure configuration in Spring Boot 3.0.0. |
| 178 | +# We strongly recommend you adjust this configuration to your needs. |
| 179 | +# |
| 180 | +# WARNING: This would result in some values not being sanitized when in 2.7 they would have been. |
| 181 | +# recipe: sbu30-225-actuator-endpoint-sanitization |
| 182 | + projects: |
| 183 | + - spring-boot |
| 184 | + gitHubIssue: 445 |
| 185 | + contributors: |
| 186 | + - "Fabian Krüger[@fabapp2]" |
| 187 | + |
135 | 188 | - title: Changes to Data Properties
|
136 | 189 | helper: org.springframework.sbm.boot.upgrade_27_30.report.helper.ChangesToDataPropertiesHelper
|
137 | 190 | change: |-
|
|
226 | 279 | `@Autowired` annotation.
|
227 | 280 | sources:
|
228 | 281 | - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M2-Release-Notes#constructingbinding-no-longer-needed-at-the-type-level[Spring Boot Release Notes]
|
229 |
| - - https://docs.spring.io/spring-boot/docs/3.0.0-M4/api/org/springframework/boot/context/properties/ConstructorBinding.html[@ConstructorBinding API] |
230 |
| - - https://docs.spring.io/spring-boot/docs/3.0.0-M4/api/org/springframework/boot/context/properties/ConfigurationProperties.html[@ConfigurationProperties API] |
| 282 | + - https://docs.spring.io/spring-boot/docs/3.0.0/api/org/springframework/boot/context/properties/ConstructorBinding.html[@ConstructorBinding API] |
| 283 | + - https://docs.spring.io/spring-boot/docs/3.0.0/api/org/springframework/boot/context/properties/ConfigurationProperties.html[@ConfigurationProperties API] |
231 | 284 | affected: |-
|
232 | 285 | We found usage of `@ConstructorBinding` in following files:
|
233 | 286 |
|
|
0 commit comments