You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: x509_v2 mishandles some GeneralNames #70041
There are some valid GeneralName values that are not accepted by salt.utils.x509._parse_general_names and invalid ones that are. It also does not differentiate properly between regular GeneralNames and the ones used in the nameConstraints extension. Most of them affect the URI type. Some shoutouts:
nameConstraints URI: Must be in the same format as DNS, but .foo.bar is not accepted and https://foo.bar is.
URI: We automatically encode unicode in the hostname portion according to IDNA. We should automatically encode other segments according to IRI.
URI: IPv6 addresses as hostname result in an exception.
URI: One without an authority (like mailto:[email protected]) is silently dropped.
URI: Regular ones require a scheme, but we don't.
URI: The hostname can be an explicit absolute root (foo.bar.), which is rejected.
email: We IDNA-encode the domain, but we don't check for unicode in the local (user) part, which is invalid. Unicode email addresses should be put into an otherName of SmtpUTF8Mailbox type.
IP: A regular IPAddress must contain a single address, but we additionally accept network ranges.
nameConstraints IP: IPAddress must contain a network range, but we additionally accept IP addresses.
DNS: While not following more modern TLS specs, foo*.bar.baz and foo.*.bar used to be valid wildcard definitions and could still be used by other specs. They result in an exception currently.
Type of salt install
Official deb
Major version
3006.x, 3007.x, 3008.x
What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)
Activity
dwoz commentedon Oct 16, 2026
This was fixed in v3006.28 and v3007.15. If you can still reproduce it on either release, please comment and we'll reopen.