From 0bca966c19cec9742d53b68c665658ade205e478 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Fri, 3 Feb 2023 00:08:25 +0900 Subject: [PATCH] Update "Customizing Sanitization" documentation See gh-34051 --- .../spring-boot-docs/src/docs/asciidoc/howto/actuator.adoc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/actuator.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/actuator.adoc index 4f818dc08d6..28a8638948f 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/actuator.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/actuator.adoc @@ -66,13 +66,10 @@ NOTE: When `show-values` is set to `ALWAYS` or `WHEN_AUTHORIZED` any sanitizatio [[howto.actuator.sanitize-sensitive-values.customizing-sanitization]] ==== Customizing Sanitization -Sanitization can be customized in two different ways. - -To take more control over the sanitization, define a `SanitizingFunction` bean. +To take control over the sanitization, define a `SanitizingFunction` bean. The `SanitizableData` with which the function is called provides access to the key and value as well as the `PropertySource` from which they came. This allows you to, for example, sanitize every value that comes from a particular property source. Each `SanitizingFunction` is called in order until a function changes the value of the sanitizable data. -If no function changes its value, the built-in key-based sanitization is performed.