Repository navigation
Epic JWT key: tolerate any PEM escaping (jwks.json was 500) - #16
Merged
Merged
Conversation
The vault sync re-escaped CLIENT_JWT_PRIVATE_KEY, Compose turned it into lines ending in a backslash, and /.well-known/jwks.json 500d after the 2026-10-10 deploy, breaking MyChart token exchange. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
/.well-known/jwks.json and jwks-sandbox.json returned 500 (ERR_OSSL_PEM_NO_START_LINE) after the 2026-10-10 deploy recreated the container. app.env held CLIENT_JWT_PRIVATE_KEY with one escape level too many, so Compose produced lines ending in a backslash. Epic fetches this JWKS on every private_key_jwt token exchange, so the bug broke MyChart connects.
Hotfixed on dev2 by correcting app.env. This change collapses any run of backslashes before
nor a newline, so the next vault sync can't break it again. Verified that a raw PEM and three escaped variants all parse.🤖 Generated with Claude Code