chore(HNT-2502): stop accepting CognitoAdmin-Prod tokens#380
Merged
Conversation
The CognitoAdmin-Prod user pool (us-east-1_1alKls4qw) has been deprecated in favor of MozillaAuthProxy-Prod (us-east-1_qYkccPmmu) since admin-api#150 (2022-06). The curation-admin-tools frontend completed its migration to the new pool in curation-admin-tools#840 (2024-07), and the legacy pool has had zero user-record modifications since 2024-07-23. No live clients point at it. Remove the legacy issuer from admin-api's accepted set so expired/replayed tokens from that pool can no longer be used. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mmiermans
commented
Apr 23, 2026
| environment: process.env.NODE_ENV || 'development', | ||
| }, | ||
| auth: { | ||
| //Cognito is deprecated in favor of Mozilla Auth Proxy, but we still need to support it |
Contributor
Author
There was a problem hiding this comment.
The "we still need to support it" statement was probably made because of a desire in 2022 to gradually migrate users to the new pool without disruption. The pool has no user activity since 2024.
| const keys = await Promise.all([ | ||
| ...getCognitoJwks(), | ||
| ...getMozillaAuthProxyJwks(), | ||
| ...getPocketJwks(), |
Contributor
Author
There was a problem hiding this comment.
I think this could be removed too?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Stop accepting JWTs from the deprecated
CognitoAdmin-Prodpool (us-east-1_1alKls4qw). OnlyMozillaAuthProxy-Prodand the Pocket JWK set remain. Less auth-flow complexity, less attack surface.Investigation
Admin-api started accepting both pools in #150 (2022-06) so front-ends could migrate gradually. curation-admin-tools#840 (2024-07) was the last migration. Nothing active remains on the legacy pool:
App clients on the legacy pool:
CurationAdminToolsBackstagePocket/backstagearchived 2024-01; callback domains no longer resolve.localhost-Prod-PKCElocalhost-curation-admin-toolson the new pool (2024-06).AWSElasticsearch-server-logDeployment steps
CognitoAdmin-Prodin AWS (separate ticket).References