chore(server): purge HS256 from relayauth (RS256-only)#34
Merged
khaliqgant merged 3 commits intomainfrom Apr 24, 2026
Merged
Conversation
khaliqgant
added a commit
that referenced
this pull request
Apr 24, 2026
…auth fix(server): accept x-api-key on /v1/api-keys (close bootstrap footgun post-#34)
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.
What's Removed
signHs256) and theRELAYAUTH_SIGNING_ALGdispatcher/fallback.verifyHs256Signature) and all bearer-token call sites that depended on it.SIGNING_KEYandSIGNING_KEY_IDserver config/options/test bindings.octentries from the JWKS route.What's Kept
RELAYAUTH_SIGNING_KEY_PEMandRELAYAUTH_SIGNING_KEY_PEM_PUBLIC.signRs256and the JWK thumbprint-derivedkidbehavior.@relayauth/sdkTokenVerifier.Migration Guidance
SIGNING_KEYbinding./v1/tokensor by a trusted signer usingRELAYAUTH_SIGNING_KEY_PEM.RELAYAUTH_SIGNING_KEY_PEM.PR / Deployment Notes
Supersedes PR #33, the minimal
/v1/tokensRS256 fix. Reviewers can close #33 after this lands.Deploy ordering: merge this PR -> publish
@relayauth/server@0.2.5-> bump cloud dependency -> deploy -> JWKS returns only RS256 and theSIGNING_KEYbinding can stay removed permanently.Rollback: revert this PR and re-add the
SIGNING_KEYbinding on the relayauth worker. This is a broad revert, so fix-forward is preferred.Verification
cd packages/server && npm run typecheckcd packages/server && npm testcd packages/server && npm run test:e2enpx turbo test --filter=@relayauth/server