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

pre-compute CSP's at build time and get rid of nonce-headers per request #222

Merged
merged 4 commits into from
Dec 25, 2023

Conversation

sebadob
Copy link
Owner

@sebadob sebadob commented Dec 25, 2023

This get's rid of the per-request computed nonce headers for the hardened CSP.

By now, the static adapter for svelte is capable of pre-computing the CSP's inside the HTML at build time using sha256 hashes. This means less work for the Rauthy backend for each single request, that involves returns any HTML content.

@sebadob sebadob merged commit 8fd2c99 into main Dec 25, 2023
@sebadob sebadob deleted the pre-computed-html-csp branch December 25, 2023 14:20
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.

1 participant