Conversation
Static analysis CLI that lints Spring Boot application.yml/properties files for security misconfigurations (Actuator exposure, hardcoded credentials, insecure DB/broker transport, permissive CORS, etc.) before deployment, with a CI-gatable exit code.
Author
|
Small update since opening this PR — a few improvements to the project itself (not to this PR's diff):
Happy to answer any questions about the tool, the rule set, or the validation runs in the README. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds spring-config-guard to the Tools > Testing section, in alphabetical order after SourceClear.
About the tool
A static analysis CLI that lints Spring Boot
application.{yml,properties}files for security misconfigurations before deployment — Actuator endpoints exposed viamanagement.endpoints.web.exposure.include=*, hardcoded credentials, insecure DB/broker TLS transport (useSSL=false, etc.), permissive CORS, and 12 other checks. Reports findings with a CI-gatable exit code, so it fails the build rather than getting discovered after the app is already running.Apache 2.0, no dependency on Spring Boot itself (it statically parses the config files). Validated against real-world repositories, including Spring Boot's own source and a real Spring Cloud Config Server backing repository (
spring-petclinic-microservices-config) via a dedicated Config Server mode.Disclosure: I'm the author.