Short names are used instead of FQDNs for subjAltNames in certificates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Etcd Charm |
New
|
Undecided
|
Unassigned | ||
Kubernetes API Load Balancer |
New
|
Undecided
|
Unassigned | ||
Kubernetes Control Plane Charm |
New
|
Undecided
|
Unassigned | ||
Kubernetes Worker Charm |
New
|
Undecided
|
Unassigned |
Bug Description
For a given unit a short name returned from gethostname will be requested as a SAN (subjAltName) when a cert is requested from a CA (Vault, easyrsa).
Instead getnameinfo(
socket.
('hostname-
Example from a generated cert:
X509v3 Subject Alternative Name:
While fqdn is pretty-
Code: https:/
sans.
If Name Constraints (https:/
With self-signed CA certificates similar constraints may apply.
https:/
getnameinfo is a proper way to retrieve an fqdn provided that a DNS setup is correct for a given node.
Also:
http://
" The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete."
getnameinfo RFC and manpage:
https:/
http://