Skip to content

[WHIT-3439] Gate /component-guide behind GOV.UK Signon#11478

Merged
TonyGDS merged 1 commit into
mainfrom
WHIT-3439-gate-component-guide-behind-signon
May 20, 2026
Merged

[WHIT-3439] Gate /component-guide behind GOV.UK Signon#11478
TonyGDS merged 1 commit into
mainfrom
WHIT-3439-gate-component-guide-behind-signon

Conversation

@TonyGDS
Copy link
Copy Markdown
Contributor

@TonyGDS TonyGDS commented May 20, 2026

Summary

Wraps the GovukPublishingComponents::Engine mount in a GDS::SSO::AuthorisedUserConstraint so /component-guide requires a signed-in Whitehall user.

This keeps the guide available in all environments — per commit 8b3a40aad6 (Feb 2025) that removed the dev-only gate — while ensuring it is no longer publicly accessible. The signin permission is the universal "logged in and authorised for this app" permission, so was used for the route constraint.

Jira

Test plan

  • After deploy to integration: confirm 302→signon for anonymous and 200 for authenticated, including sub-routes (/component-guide/button, /component-guide/button/preview)

@TonyGDS TonyGDS force-pushed the WHIT-3439-gate-component-guide-behind-signon branch from 4662489 to 804ee91 Compare May 20, 2026 13:47
Wraps the engine mount in a GDS::SSO::AuthorisedUserConstraint so the
component-guide requires a signed-in Whitehall user. This keeps the
guide available in all environments (per commit 8b3a40a) while
ensuring it is not publicly accessible.
@TonyGDS TonyGDS force-pushed the WHIT-3439-gate-component-guide-behind-signon branch from 804ee91 to f9eb01c Compare May 20, 2026 13:51
@TonyGDS TonyGDS merged commit 60d8f7d into main May 20, 2026
45 of 46 checks passed
@TonyGDS TonyGDS deleted the WHIT-3439-gate-component-guide-behind-signon branch May 20, 2026 15:22
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.

2 participants