OpenConext / OpenConext/OpenConext-deploy
Add security headers to engineblock
Open
@baszoetekouw is already working on this.
Since Oct 21, 2024.
- Dominant language
- Jinja
- Stars
- 16
- Forks
- 20
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 2
Description
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):
- https://github.com/OpenConext/OpenConext-engineblock/issues/1331
- https://github.com/OpenConext/OpenConext-engineblock/issues/1332
frame-ancestors needs careful consideration.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.