Skip to content

Fix name policy panic on empty or short domain#2715

Open
kanywst wants to merge 1 commit into
smallstep:masterfrom
kanywst:fix/name-policy-empty-domain-panic
Open

Fix name policy panic on empty or short domain#2715
kanywst wants to merge 1 commit into
smallstep:masterfrom
kanywst:fix/name-policy-empty-domain-panic

Conversation

@kanywst

@kanywst kanywst commented Jun 18, 2026

Copy link
Copy Markdown

Closes #2714

A SAN with an empty domain (e.g. an email like a@) panicked during name-policy validation with a slice index out of range. Guard the empty and single-character domain cases in matchDomainConstraint. The existing matchDomainConstraint table test gets the two cases, which panic before this change and pass after.

@github-actions github-actions Bot added the needs triage Waiting for discussion / prioritization by team label Jun 18, 2026
@hslatman hslatman added this to the v0.30.3 milestone Jun 18, 2026
@hslatman hslatman self-assigned this Jun 26, 2026
@hslatman hslatman self-requested a review June 26, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs triage Waiting for discussion / prioritization by team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: name policy panics on a SAN with an empty domain (e.g. an email like "a@")

3 participants