File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
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 @@ -2403,6 +2403,22 @@ how to register handlers in the servlet container.
2403
2403
2404
2404
2405
2405
2406
+ [[howto-sanitize-sensible-values]]
2407
+ === Sanitize sensible values
2408
+ Information returned by the `env` and `configprops` endpoints can be somewhat sensitive
2409
+ so keys matching a certain pattern are sanitized by default (i.e. their values are
2410
+ replaced by `******`).
2411
+
2412
+ Spring Boot uses sensible defaults for such keys: for instance, any key ending with the
2413
+ word "password", "secret", "key" or "token" is sanitized. It is also possible to use a
2414
+ regular expression instead, such as `*credentials.*` to sanitize any key that holds the
2415
+ word `credentials` as part of the key.
2416
+
2417
+ The patterns to use can be customized using the `endpoints.env.keys-to-sanitize` and
2418
+ `endpoints.configprops.keys-to-sanitize` respectively.
2419
+
2420
+
2421
+
2406
2422
[[howto-use-actuator-with-jersey]]
2407
2423
=== Actuator and Jersey
2408
2424
Actuator HTTP endpoints are only available for Spring MVC-based applications. If you want
You can’t perform that action at this time.
0 commit comments