Commit bbdd6cc9 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '1.5.x'

parents ca329d3d 2c7b74db
...@@ -2439,11 +2439,11 @@ of how to register handlers in the servlet container. ...@@ -2439,11 +2439,11 @@ of how to register handlers in the servlet container.
=== Sanitize sensible values === Sanitize sensible values
Information returned by the `env` and `configprops` endpoints can be somewhat sensitive Information returned by the `env` and `configprops` endpoints can be somewhat sensitive
so keys matching a certain pattern are sanitized by default (i.e. their values are so keys matching a certain pattern are sanitized by default (i.e. their values are
replaced by `******`). replaced by `+******+`).
Spring Boot uses sensible defaults for such keys: for instance, any key ending with the Spring Boot uses sensible defaults for such keys: for instance, any key ending with the
word "password", "secret", "key" or "token" is sanitized. It is also possible to use a word "password", "secret", "key" or "token" is sanitized. It is also possible to use a
regular expression instead, such as `*credentials.*` to sanitize any key that holds the regular expression instead, such as `+*credentials.*+` to sanitize any key that holds the
word `credentials` as part of the key. word `credentials` as part of the key.
The patterns to use can be customized using the `management.endpoint.env.keys-to-sanitize` The patterns to use can be customized using the `management.endpoint.env.keys-to-sanitize`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment