From 89793a84e5ab5a2f8db76e437a5c9ac64e0d28a2 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 15 Oct 2024 17:52:12 -0700 Subject: [PATCH] Fix case used for examples in "Sanitize Sensitive Values" Closes gh-42702 --- .../modules/reference/pages/actuator/endpoints.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc index 1aa859002de..29431b99bcb 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc @@ -298,9 +298,9 @@ Values can only be viewed in an unsanitized form when: The `show-values` property can be configured for sanitizable endpoints to one of the following values: -- `NEVER` - values are always fully sanitized (replaced by `+******+`) -- `ALWAYS` - values are shown to all users (as long as no `SanitizingFunction` bean applies) -- `WHEN_AUTHORIZED` - values are shown only to authorized users (as long as no `SanitizingFunction` bean applies) +- `never` - values are always fully sanitized (replaced by `+******+`) +- `always` - values are shown to all users (as long as no `SanitizingFunction` bean applies) +- `when-authorized` - values are shown only to authorized users (as long as no `SanitizingFunction` bean applies) 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. By default, any authenticated user is authorized. @@ -315,7 +315,7 @@ Unauthorized users, or users without the `admin` role, will see only sanitized v management: endpoint: env: - show-values: WHEN_AUTHORIZED + show-values: when-authorized roles: "admin" ----