Skip to content

Add isolated asymmetric signing for Topcoder access tokens - #57

Merged
jmgasper merged 2 commits into
developfrom
jwt-asymmetric-access-token-signing
Nov 8, 2026
Merged

jmgasper merged 2 commits into
developfrom
jwt-asymmetric-access-token-signing

Conversation

@jmgasper

@jmgasper jmgasper commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Topcoder login tokens currently use a shared HMAC key distributed to API verifiers. This adds an RS256 signing path backed by an isolated AWS KMS RSA key, while retaining the Topcoder issuer. The private key stays in KMS; the new public /v6/authorizations/.well-known/jwks.json endpoint exposes verification keys only.

Login and service-account authorization still construct claims after existing authentication and role lookup. RS256 binds issuer, API audience, user subject, issuance time, expiry and token ID on the server. Signing failures never fall back to HMAC. The infrastructure template limits signing to a dedicated Identity task role, explicitly denies other principals and retains keys on stack deletion.

Deployment is staged: the default remains HS256 until the coordinated issuer/verifier cutover. Public keys can be published beforehand. docs/asymmetric-access-tokens.md documents configuration, key isolation, browser refresh compatibility, retiring keys and the fleet migration with tc-core-library-js PR #8. No KMS resources are created by application startup, and the existing one-time-proof key remains separate.

Validation: 46 targeted signer, public-route and authorization tests pass; changed-file lint, application build and CloudFormation template validation pass. The full suite has the same nine failing suites / 67 failing tests on the unchanged develop baseline; the new signer tests pass. Production asymmetric signing has not been enabled by this PR.

@jmgasper
jmgasper merged commit f70fbc8 into develop Nov 8, 2026
7 checks passed
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.

1 participant