-
Notifications
You must be signed in to change notification settings - Fork 253
Harden constitution validation for JWT, CA, and member keys #7924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
achamayou
merged 29 commits into
main
from
copilot/fix-constitution-validators-strictness
Jun 10, 2026
+800
−65
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c6fe4e2
Initial plan
Copilot fc6c0fc
Harden constitution validator inputs
Copilot 7c40d78
Validate JWKS embedded public keys
Copilot fe739aa
Clarify base64url byte length calculation
Copilot 0fc1214
Address validation review feedback
Copilot 0416dc7
Add P-521 EC key validation support
Copilot 4434f1f
Add changelog entry for validation hardening
Copilot bdfdd14
Clarify changelog validation scope
Copilot ce0d13d
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou ef579f0
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou 6ada538
Fix P-521 JWK serialisation and JWT issuer URL in tests
achamayou 7a0740f
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou b68c4b9
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou 92b94a6
Use base64url (not base64) for JWK n/e/x/y in JwtIssuer
achamayou 6e954a3
Accept intermediate CA bundles and bind EC alg to crv
6bdf382
Clean up constitution validators and expand CHANGELOG entry
f1b91ab
Split CHANGELOG validator entry and fix base64url RFC citation
d9b8c15
CHANGELOG: move #7924 entries to 7.0.5
222bed7
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou c0806d0
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou ce5d77a
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou 6de1419
Restrict CA bundle to root (self-signed) CAs only; reject intermediat…
Copilot 4c2f995
Fix intermediate CA test: use a proper CA cert signed by a different key
Copilot 9486d33
Harden splitX509CertBundle to validate PEM structure
Copilot 3dee01b
Fix duplicate cert handling: use replaceAll instead of replace
Copilot 4b5efff
Use single-pass regex replace for cleaner validation
Copilot 810c698
Merge branch 'main' into copilot/fix-constitution-validators-strictness
achamayou 297781c
Apply Python formatting to tests/ca_certs.py
Copilot 13249dd
Fix clang-tidy readability-container-data-pointer warning in crypto.cpp
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.