Skip to content

Conversation

@labkey-adam
Copy link
Contributor

Rationale

Modules need the ability to allow specific font, style, frame, etc. hosts that they require

Related Pull Requests

@labkey-matthewb
Copy link
Contributor

@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?

@labkey-willm
Copy link
Contributor

@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 */\
Copy link
Contributor

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.

Copy link
Contributor Author

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.).

@labkey-adam labkey-adam merged commit 4c483bb into develop Feb 20, 2025
5 checks passed
@labkey-adam labkey-adam deleted the fb_csp_allow_list branch February 20, 2025 02:13
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.

6 participants