Repository navigation
Add X.509 path length rollover regression test - #542
jacob-hughes wants to merge 1 commit into
Conversation
Covers valid and invalid certificate chains around path length constraint handling.
6f3e40b to
92c3863
Compare
|
I rebased this onto current |
|
This pull request's reviews are posted as pull request reviews: see the review of |
|
@clanky-the-clanker review |
There was a problem hiding this comment.
✅ Approved — This is a test-only change. The fixture generation and the expected results for the valid and invalid path length cases are consistent, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
The certificates and keys are test-only fixtures. The change reuses existing test keys and adds no new secrets.
📖 AGENTS.md: ✅ LGTM
This pull request does not change tooling or architecture in a way that needs AGENTS.md updates.
📋 Code Quality: ✅ LGTM
- Chain wiring: In
scripts/generate-cert.sh, each certificate's issuer and subject keys and identifiers line up. Int2 and the self-issued rollover share a subject name, but each chain still builds to exactly one path. - Test expectations: The expected result for each case in
boring/src/x509/tests/path_len.rsis correct:- The valid chain verifies, because the self-issued rollover does not count toward the path length.
- A rollover with pathlen 0 fails with
PATH_LENGTH_EXCEEDED. - An Int2 with pathlen 0 also fails with
PATH_LENGTH_EXCEEDED.
- Verify helper and fixtures: The helper follows the existing
trusted_first.rspattern and checks the shared fixture time. The new serials do not collide with existing ones, and the new PEM files are registered.
📝 Documentation: ✅ LGTM
No documentation changes are needed.
Reviewed commit: 92c38631
Covers valid and invalid certificate chains around path length constraint handling.