Skip to content
vetkitChecksChangelogDocumentationBlogComparisons

Spring Boot YAML show-values: always unmasks actuator env

Rule ID: vetkit.spring.actuator.env-values-unmasked-yaml

Actuator shows configuration values unmasked (show-values: always under management.endpoint.env/configprops). Spring Boot 3 masks passwords and keys by default; this setting prints them to anyone who can reach the endpoint.

Last updated:

Suite: Security

yaml

Actuator shows configuration values unmasked (show-values: always under management.endpoint.env/configprops). Spring Boot 3 masks passwords and keys by default; this setting prints them to anyone who can reach the endpoint.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use when_authorized together with Spring Security roles for the Actuator endpoints, or keep the default never.

References

Source: packages/engine/rules/sast/config.yml.

Related checks

Check your own repository for this

vetkit runs this rule as part of a repository audit, alongside secret scanning, dependency vulnerabilities, code quality and AI code risk checks. It reads a temporary checkout and never executes your code.

Start with the free Security Quick Scan · See how the platform works

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.