File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
spring-boot-project/spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2358,6 +2358,22 @@ of how to register handlers in the servlet container.
23582358
23592359
23602360
2361+ [[howto-sanitize-sensible-values]]
2362+ === Sanitize sensible values
2363+ Information returned by the `env` and `configprops` endpoints can be somewhat sensitive
2364+ so keys matching a certain pattern are sanitized by default (i.e. their values are
2365+ replaced by `******`).
2366+
2367+ Spring Boot uses sensible defaults for such keys: for instance, any key ending with the
2368+ word "password", "secret", "key" or "token" is sanitized. It is also possible to use a
2369+ regular expression instead, such as `*credentials.*` to sanitize any key that holds the
2370+ word `credentials` as part of the key.
2371+
2372+ The patterns to use can be customized using the `management.endpoint.env.keys-to-sanitize`
2373+ and `management.endpoint.configprops.keys-to-sanitize` respectively.
2374+
2375+
2376+
23612377[[howto-security]]
23622378== Security
23632379
You can’t perform that action at this time.
0 commit comments