Repository navigation
fix: backport HSTS configuration and route coverage to 2.x - #142
Merged
Merged
Conversation
Contributor
Author
|
Review of the 2.x backport (d2b988f). No blocking issues. I read the diff and ran Production config matches master: Minor items:
|
Contributor
Author
|
Follow-up review of 6834aa2. I read the diff and re-ran Fixed
No change needed
Skipped (accepted)
|
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.
Backport the merged master fix from #141 to 2.x for Checkmarx A02 (favicon HSTS).
Put header first in the packaged default/admin chains and seven direct-response routes. Add the same opt-in dedicated HTTPS ingress overlay with a late root-prefix response rule, so backend headers cannot override HSTS/no-store/nosniff or retain X-Powered-By. No full chains are copied into the overlay.
The overlay disables plaintext HTTP, including normal sidecar egress on localhost:9080. Do not apply it to a co-located sidecar needing that port; use a separate ingress instance or trusted TLS edge. Defaults retain HTTP and do not enable HSTS. No includeSubDomains/preload is added.
The production values and overlay match master. Tests use the 2.x SnakeYAML API instead of master's YAML utility. Validation:
mvn -q clean test— 31 tests, 0 failures, 0 errors, 9 existing skips. Five regression tests cover the real handler/configuration pipeline, direct/admin routes, favicon bytes, conflicting backend headers on 200/302/404/500 responses, and default plaintext proxy access.git diff --checkpasses.Public deployment verification and partner rescan remain required for closure.