If subscription management certificates are used for ABRT, their CN contains UUID instead of FQDN. If no host with the name is not found, two other methods are tried:
- We ask Katello if it knows a host with the UUID supplied as hostname. If it does, it can also give us the corresponding Foreman host.
- Smart-proxy was modified to also send subjectAltName from the client certificate, which should contain the FQDN when subscription management certificates are used. If the previous method fails, we try to look up host with hostname corresponding to the subjectAltName supplied.
Fallback methods for host lookup
If subscription management certificates are used for ABRT, their CN
contains UUID instead of FQDN. If no host with the name is not found,
two other methods are tried:
- We ask Katello if it knows a host with the UUID supplied as hostname.
If it does, it can also give us the corresponding Foreman host.
- Smart-proxy was modified to also send subjectAltName from the client
certificate, which should contain the FQDN when subscription
management certificates are used. If the previous method fails, we try
to look up host with hostname corresponding to the subjectAltName
supplied.