While investigating T291946 I noticed that karthoterian doesn't have its discovery name in SAN but only as Common Name instead.
msg="Error for HTTP request" err="Get https://10.2.2.13:443/osm-intl/6/23/24.png: x509: certificate is valid for kartotherian.svc.eqiad.wmnet, kartotherian.svc.codfw.wmnet, maps.wikimedia.org, not kartotherian.discovery.wmnet"
Karto's cergen entry looks like this:
kartotherian.discovery.wmnet: authority: puppet_ca expiry: null alt_names: [kartotherian.svc.eqiad.wmnet,kartotherian.svc.codfw.wmnet,maps.wikimedia.org] key: passwork: foo algorithm: ec
Checking Common Name is deprecated, I think cergen should add the cert's name to alt_names if not there already (we have a few cases where we already duplicate the .discovery.wmnet entry manually in alt_names). What do you think @Ottomata ?