Skip to content

fix: enforce non-root path for X.509 SVID leaf SPIFFE IDs#417

Merged
maxlambrecht merged 2 commits intospiffe:mainfrom
maxlambrecht:fix/x509svid-leaf-spiffe-path
Mar 18, 2026
Merged

fix: enforce non-root path for X.509 SVID leaf SPIFFE IDs#417
maxlambrecht merged 2 commits intospiffe:mainfrom
maxlambrecht:fix/x509svid-leaf-spiffe-path

Conversation

@maxlambrecht
Copy link
Copy Markdown
Member

What

Enforce that X.509 SVID leaf certificates have a SPIFFE ID with a non-root path.

Why

X509-SVID.md §3.1 requires that leaf certificate SPIFFE IDs MUST have a non-root path component.
Previously, leaf SVIDs with spiffe://<trust-domain> were accepted, which is out of spec.

How tested

Unit tests in X509SvidTest:

  • Existing tests for valid leaf SVIDs (non-root paths) continue to validate happy-path behavior.
  • New tests using in-memory generated certificates and X509Svid.parseRaw verify:
    • Rejection of leaf SPIFFE IDs without a path.
    • Rejection of leaf SPIFFE IDs with a root-only path.

Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
@maxlambrecht maxlambrecht requested a review from rturner3 as a code owner March 18, 2026 17:12
@maxlambrecht maxlambrecht merged commit 8844a6b into spiffe:main Mar 18, 2026
8 checks passed
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.

2 participants