Skip to content

CTM-589 Fix up content security policy - #497

Open
aednichols wants to merge 4 commits into
masterfrom
aen/ctm_589
Open

aednichols wants to merge 4 commits into
masterfrom
aen/ctm_589

Conversation

@aednichols

Copy link
Copy Markdown

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

aednichols and others added 4 commits October 20, 2026 21:30
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
aednichols requested a review from davidangb October 20, 2026 20:44
@aednichols
aednichols requested a review from a team as a code owner October 20, 2026 20:44
@aednichols
aednichols requested review from jgainerdewar and marctalbott and removed request for a team October 20, 2026 20:44
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant