Skip to content

core: update SPIFFE certificate extraction to comply with X509-SVID spec - #12961

Open
kannanjgithub wants to merge 1 commit into
grpc:masterfrom
kannanjgithub:x5c-spiffe-bundle-rework
Open

core: update SPIFFE certificate extraction to comply with X509-SVID spec#12961
kannanjgithub wants to merge 1 commit into
grpc:masterfrom
kannanjgithub:x5c-spiffe-bundle-rework

Conversation

@kannanjgithub

Copy link
Copy Markdown
Contributor
  • Modify SpiffeUtil.extractCert to ignore all but the first certificate if the x5c JWK parameter contains multiple values.
  • Modify SpiffeUtil.extractCert to skip the JWK entry (continue) instead of stopping execution (break) or throwing when x5c is missing or contains an empty list, complying with the requirement that entries without x5c must be ignored.

@kannanjgithub
kannanjgithub requested a review from gtcooke94 July 31, 2026 09:53
- Modify `SpiffeUtil.extractCert` to ignore all but the first certificate if the `x5c` JWK parameter contains multiple values.
- Modify `SpiffeUtil.extractCert` to skip the JWK entry (`continue`) instead of stopping execution (`break`) or throwing when `x5c` is missing or contains an empty list, complying with the requirement that entries without `x5c` must be
     ignored.
- Update `SpiffeUtilTest.java` to treat multi-cert, missing `x5c`, and empty `x5c` list cases as success cases, asserting that the valid certificates are successfully extracted.
- Add `spiffebundle_ignored_keys.json` to verify the combination of missing `x5c`, empty `x5c` list, and multi-cert parameters.
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