Skip to content

Conversation

@labkey-adam
Copy link
Contributor

@labkey-adam labkey-adam commented Feb 21, 2025

Rationale

Admins need a way to allow browsers to retrieve resources from trusted external hosts as CSP exceptions.

https://docs.google.com/document/d/1aUreAxpjOi75Iqx0ZfdRJLrL-pUGFWAPYLdIsJTcO2A/edit?tab=t.0#heading=h.4rg4h5vuek0

Related Pull Requests

Changes

  • Provide new admin page, action, persistence, and registration of admin-provided external hosts. Currently supports connect-src, font-src, frame-src, image-src, and style-src, though others can be added easily (see Directive).
  • Add new startup properties to configure same
  • Reduce CSP filter's per-request work to a single substitution
  • Metrics for all configured CSPs (type, CSP substituted, CSP not substituted)

@labkey-adam labkey-adam requested a review from Sigmonia February 24, 2025 23:19
Copy link
Contributor

@Sigmonia Sigmonia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, only some minor nits

labkey-adam and others added 3 commits February 25, 2025 20:32
….java

Co-authored-by: Ian Sigmon <labkey-ians@users.noreply.github.com>
Co-authored-by: Ian Sigmon <labkey-ians@users.noreply.github.com>
@labkey-adam labkey-adam merged commit 061bda3 into develop Feb 27, 2025
8 checks passed
@labkey-adam labkey-adam deleted the fb_admin_csp_sources branch February 27, 2025 17:59
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.

4 participants