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

Allow gov.uk domains to embed pages #325

Merged
merged 2 commits into from Oct 9, 2023
Merged

Allow gov.uk domains to embed pages #325

merged 2 commits into from Oct 9, 2023

Conversation

AgaDufrat
Copy link
Contributor

@AgaDufrat AgaDufrat commented Oct 9, 2023

We initially added the strict and OWASP recommended 'none' directive based on the assumption that only side-by-side-browser tool (retired in November 2022) was preventing us from implementing it.

However some other internal GOV.UK apps use iframes:

  • Search Admin
    • Best bets (queries)
    • External links (recommended-links)
  • Content Publisher (Preview feature)

This policy will still ensure sufficient security yet will allow internal GOV.UK domains to embed pages. It's added to the global base policy because given the number of frontend application it may be difficult to predict which frontend app renders the page that we want to iframe. It will reduce the need to apply a CSP modification in individual apps.

Trello

We initially added the strict and OWASP recommended 'none' directive based on
the assumption that only side-by-side-browser tool (retired in November 2022)
was preventing us from implementing it.

However some other internal GOV.UK apps use iframes:
- Search Admin
    - Best bets (queries)
    - External links (recommended-links)
- Content Publisher (Preview feature)

This policy will still ensure sufficient security yet will allow internal
GOV.UK domains to embed pages.  It's added to the global base policy because
given the number of frontend application it may be difficult to predict which
frontend app renders the page that we want to iframe. It will reduce the need
to apply a CSP modification in individual apps.
@AgaDufrat AgaDufrat merged commit 37f62a6 into main Oct 9, 2023
5 checks passed
@AgaDufrat AgaDufrat deleted the update-csp branch October 9, 2023 12:06
Copy link
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

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

Nice job 🚀

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.

None yet

3 participants