CAMEL-23250: Add Spring Boot auto-configuration for security policy properties#1766
Merged
CAMEL-23250: Add Spring Boot auto-configuration for security policy properties#1766
Conversation
…roperties Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
oscerd
approved these changes
Apr 25, 2026
davsclaus
approved these changes
Apr 26, 2026
Croway
approved these changes
Apr 26, 2026
Contributor
|
@gnodet the camel-core This would help Spring Boot users who read the |
Add a Security Policy section to spring-boot.adoc covering available camel.security.* properties, category overrides, allowed-properties exclusion, and per-environment policies via Spring profiles. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
Claude Code on behalf of Guillaume Nodet Added a Security Policy section to
Also applied the project formatter to the new source files. |
davsclaus
approved these changes
Apr 27, 2026
Croway
approved these changes
Apr 27, 2026
Contributor
|
LGTM |
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.
Summary
CamelSecurityPolicyConfigurationPropertiesto exposecamel.security.*properties via Spring Boot's@ConfigurationPropertiesCamelSecurityPolicyAutoConfigurationthat scans allcamel.*properties from the Spring Environment for security violations (insecure SSL, plain-text secrets, unsafe deserialization, dev features) and enforces the configured policy (allow/warn/fail)SecurityPolicyResultas a CamelContext plugin for health check integrationProperties exposed
Test plan
noSecurityPropertiesShouldStartNormally— context starts without security configpolicyAllowShouldIgnoreInsecureConfig— allow policy suppresses violationspolicyWarnShouldStartWithViolations— warn policy logs but allows startuppolicyFailShouldPreventStartup— fail policy throws and blocks startupcategoryOverrideShouldTakePrecedence— per-category override (e.g., SSL=allow) overrides global failcategoryOverrideWarnWhileGlobalFail— per-category warn while global is failallowedPropertiesShouldExcludeFromChecks— exclusion list worksmultipleViolationsDetected— multiple violations reportedinsecureDevPolicyOverride— dev category overrideinsecureSerializationPolicyOverride— serialization category override🤖 Generated with Claude Code
Claude Code on behalf of Guillaume Nodet