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

Refactor: read custom Content Security Policy config from env #292

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

thekaveman
Copy link
Member

Makes updates to deployed apps easier, since we can just update the environment and restart - vs. having to change the code and redeploy.

⚠️ Update your local .env file with the new settings. Add the values that were previously hard-coded in settings.py using the new environment variables introduced in this PR.

helper removes empty items from split lists
@github-actions github-actions bot added the deployment-dev [auto] Changes that will trigger a deploy if merged to dev label Jan 24, 2022
@machikoyasuda
Copy link
Member

Copy link
Member

@machikoyasuda machikoyasuda left a comment

Choose a reason for hiding this comment

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

Got this working locally and ran thru the app successfully 👍

.env.test will have to be updated so that Lighthouse/Cypress tests can be run in the correct environment.

need to be able to load external styles so Lighthouse tests don't fail
the accessibility checks (for e.g. bad color contrast ratio)
Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

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

These changes look good to me 👍 Definitely makes it easier to update those settings.

Props to @machikoyasuda for mentioning the Lighthouse errors!

@machikoyasuda machikoyasuda merged commit 7f9b382 into dev Jan 25, 2022
@machikoyasuda machikoyasuda deleted the refactor/csp-settings branch January 25, 2022 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment-dev [auto] Changes that will trigger a deploy if merged to dev
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants