Skip to content

Commit 89793a8

Browse files
committed
Fix case used for examples in "Sanitize Sensitive Values"
Closes gh-42702
1 parent 1bd373d commit 89793a8

File tree

1 file changed

+4
-4
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ Values can only be viewed in an unsanitized form when:
298298

299299
The `show-values` property can be configured for sanitizable endpoints to one of the following values:
300300

301-
- `NEVER` - values are always fully sanitized (replaced by `+******+`)
302-
- `ALWAYS` - values are shown to all users (as long as no `SanitizingFunction` bean applies)
303-
- `WHEN_AUTHORIZED` - values are shown only to authorized users (as long as no `SanitizingFunction` bean applies)
301+
- `never` - values are always fully sanitized (replaced by `+******+`)
302+
- `always` - values are shown to all users (as long as no `SanitizingFunction` bean applies)
303+
- `when-authorized` - values are shown only to authorized users (as long as no `SanitizingFunction` bean applies)
304304

305305
For HTTP endpoints, a user is considered to be authorized if they have authenticated and have the roles configured by the endpoint's roles property.
306306
By default, any authenticated user is authorized.
@@ -315,7 +315,7 @@ Unauthorized users, or users without the `admin` role, will see only sanitized v
315315
management:
316316
endpoint:
317317
env:
318-
show-values: WHEN_AUTHORIZED
318+
show-values: when-authorized
319319
roles: "admin"
320320
----
321321

0 commit comments

Comments
 (0)