You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the spring-boot actuator documentation located at https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/howto-actuator.html gives an incorrect regex example. stating: "It is also possible to use a regular expression instead, such as *credentials.* to sanitize any key that holds the word credentials as part of the key."
however, if done via code, such a regex (am targeting password for my development purposes, not credentials) generates an exception at startup: java.util.regex.PatternSyntaxException, dangling metacharacter '*'
and if done via application.yml property the application will not start, giving exception: org.yaml.snakeyaml.composer.ComposerException","exception_message":"found undefined alias password.*\n in 'reader', line 54, column 25:\n keys-to-sanitize: *password.*\n
the correct example for such a regex should be: .*credentials.*
The text was updated successfully, but these errors were encountered:
mbhave
changed the title
incorrect sanitizing regex example provided in actuator endpoint how-to docs
Rectify incorrect sanitizing regex example provided in how-to docs
Feb 22, 2022
the spring-boot actuator documentation located at https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/howto-actuator.html gives an incorrect regex example. stating: "It is also possible to use a regular expression instead, such as
*credentials.*
to sanitize any key that holds the word credentials as part of the key."however, if done via code, such a regex (am targeting password for my development purposes, not credentials) generates an exception at startup:
java.util.regex.PatternSyntaxException, dangling metacharacter '*'
and if done via application.yml property the application will not start, giving exception:
org.yaml.snakeyaml.composer.ComposerException","exception_message":"found undefined alias password.*\n in 'reader', line 54, column 25:\n keys-to-sanitize: *password.*\n
the correct example for such a regex should be:
.*credentials.*
The text was updated successfully, but these errors were encountered: