Skip to content

fix(x509svid): reject leaf SPIFFE IDs with root path#375

Open
maxlambrecht wants to merge 1 commit intospiffe:mainfrom
maxlambrecht:fix/x509svid-reject-root-path-spiffe-id
Open

fix(x509svid): reject leaf SPIFFE IDs with root path#375
maxlambrecht wants to merge 1 commit intospiffe:mainfrom
maxlambrecht:fix/x509svid-reject-root-path-spiffe-id

Conversation

@maxlambrecht
Copy link
Copy Markdown
Member

This change updates x509svid.Parse and x509svid.ParseRaw to reject leaf certificates whose SPIFFE ID has a root/empty path (for example, spiffe://example.org). This aligns with the SPIFFE X.509-SVID spec (SPIFFE spec Section 3.1 "Leaf Certificates"), which requires that leaf certificate SPIFFE IDs MUST have a non-root path component.

Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
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