Repository navigation
CTM-589 Fix up content security policy - #497
Open
aednichols wants to merge 4 commits into
Open
aednichols wants to merge 4 commits into
aednichols wants to merge 4 commits into
Conversation
Adds a servlet filter that sets a restrictive CSP (no inline script or style) on every response, including error dispatches, so the Swagger page and error pages are covered. Tests check the header, that the Swagger CSS/JS files are served, and that swagger-ui.html has no inline script or style blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aednichols
requested review from
jgainerdewar and
marctalbott
and removed request for
a team
October 20, 2026 20:44
|
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.



The first two commits bring the code into compliance with the header by de-inlining resources into files. The last commit actually adds the new header. So the only actual new, production code is
ContentSecurityPolicyFilter.java.Similar to DataBiosphere/terra-scientific-pipelines-service#480