Merge pull request #34051 from izeye

* pr/34051:
  Update "Customizing Sanitization" documentation

Closes gh-34051
pull/34503/head
Moritz Halbritter 2 years ago
commit 18985d037a

@ -66,13 +66,10 @@ NOTE: When `show-values` is set to `ALWAYS` or `WHEN_AUTHORIZED` any sanitizatio
[[howto.actuator.sanitize-sensitive-values.customizing-sanitization]] [[howto.actuator.sanitize-sensitive-values.customizing-sanitization]]
==== Customizing Sanitization ==== Customizing Sanitization
Sanitization can be customized in two different ways. To take control over the sanitization, define a `SanitizingFunction` bean.
To take more 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. 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. 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. 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.

Loading…
Cancel
Save