Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply no-op CSP filter to extra webapps #738

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

labkey-adam
Copy link
Contributor

Rationale

Extra webapps are failing to load on standalone Tomcat when a CSP is configured in web.xml because ContentSecurityPolicyFilter is not accessible at filter registration time (the class was moved to the webapp). https://www.labkey.org/home/Developer/issues/Secure/issues-details.view?issueId=49733

Simplest solution (for now, to quickly unblock the labkey.org issue) is to throw a no-op filter with the same name into bootstrap. In my local testing, this gets applied to extra webapps whereas the "real" filter gets applied to the LabKey webapp.

Copy link
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

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

Did you test both embedded and standalone?

@labkey-adam
Copy link
Contributor Author

Did you test both embedded and standalone?

Only standalone. Are you able to test embedded on 24.2?

@labkey-adam labkey-adam merged commit 85c5ff2 into release24.2-SNAPSHOT Feb 23, 2024
4 of 5 checks passed
@labkey-adam labkey-adam deleted the 24.2_fb_csp_extra_webapps branch February 23, 2024 17:21
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.

2 participants