-
Notifications
You must be signed in to change notification settings - Fork 10
Support adding module-specific resource hosts to more CSP directives #996
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
Conversation
|
@labkey-willm How do we deal with branching/versions of this file. Do we need to leave ${LABKEY.ALLOWED.CONNECTIONS} so we don't break on images with versions of LK from previous branches? |
as Stuart said in chat, "when the change is merged to the server repo, new PR's will be created in DockerFile and syseng-chef-server repos. As long as we don't merge the syseng-chef-server change until after 25.2 is deployed, we should be ok. We will need to merge the syseng-chef-server PR before we we do our first 25.3 deployment." |
| object-src 'none' ; /* These tags are not currently used by LKS */\ | ||
| style-src 'self' 'unsafe-inline' ; /* We currently have a few inline <style> tags that we are weeding out */\ | ||
| style-src 'self' 'unsafe-inline' ${STYLE.SOURCES} ; /* We currently have a few inline <style> tags that we are weeding out */\ | ||
| img-src 'self' data: ; /* Limit image loading locations */\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will be surprised if we don't end up fielding a request to customize img-src at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, probably. It will be very easy to add more directives in follow-on PRs... perhaps even the UI one coming up. I was mostly focused on getting the infrastructure in place and tested, and resolving immediate failures caused by the recent CSP changes (ReactJS hot reloading, CDS tests, etc.).
Rationale
Modules need the ability to allow specific font, style, frame, etc. hosts that they require
Related Pull Requests