OpenConext / OpenConext/OpenConext-deploy

Add security headers to engineblock

Open
#457 0 comments 0 reactions 1 assignee View on GitHub

@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):

frame-ancestors needs careful consideration.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.