Skip to content

Commit bb69339

Browse files
committed
Merge branch '2.0.x'
2 parents bd9299d + b47a727 commit bb69339

File tree

1 file changed

+16
-0
lines changed
  • spring-boot-project/spring-boot-docs/src/main/asciidoc

1 file changed

+16
-0
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)