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

Add security headers to engineblock #457

Open
2 tasks
baszoetekouw opened this issue Oct 21, 2024 · 0 comments
Open
2 tasks

Add security headers to engineblock #457

baszoetekouw opened this issue Oct 21, 2024 · 0 comments
Assignees

Comments

@baszoetekouw
Copy link
Member

baszoetekouw commented Oct 21, 2024

This CSP header is reported to work:

Retrieved CSP value: ["default-src 'self'; font-src 'self'; style-src 'self' 'sha256-c823gKh+osiEtapTIYig0VtEe3NHj+8T2vWNPUjhcNQ=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='; script-src 'unsafe-inline' 'self'; img-src 'self' https://*.openconext.org:* data:; frame-ancestors 'none'; form-action 'self' https:; base-uri 'none';"]

The style-src hash is necessary for the metadata page; the script-src: unsafe-inline for the json in the WAYF. Both should be fixed (by using an external stylesheet and by loading the json from an API-endpoint, respectively):

frame-ancestors needs careful consideration.

@baszoetekouw baszoetekouw self-assigned this Oct 21, 2024
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

No branches or pull requests

1 participant