Report if an expiring certificate is externally signed#366
Report if an expiring certificate is externally signed#366rcritten merged 1 commit intofreeipa:masterfrom
Conversation
There was a problem hiding this comment.
One minor grammatical fix needed. One non-blocking nit.
Other questions:
-
IPACertfileExpirationCheckalso emits a certmonger should renew this message. Does it also need to be updated to avoid providing conflicting info? -
Should
IPACAChainExpirationCheckalso get this treatment? Noting that the RFE is "Report if caSigningCert is tracked but externally signed"
This is intended for externally-signed IPA CA certificates. It should not duplicate user-provided certificats because this check, IPACertmongerExpirationCheck, is based on certmonger tracking and we don't track, by default, user-provided certs. Fixes: freeipa#104 Signed-off-by: Rob Crittenden <rcritten@redhat.com>
By default, certmonger only tracks IPA issued certificates so this should be ok. Theoretically a user could force tracking on a user-provided cert so I guess this is something we could add later. I just have no idea how prevalent this is.
In this case I think the current warnings are ok. These are not certmonger-tracked certs but those loaded by ipa-cacert-manage. I think that the current warning is hint enough to take a look at the CA for an event that will happen soon. Unfortunately most people seem to run healthcheck after the fact. |
|
I file #371 for IPACertfileExpirationCheck |
IPACertmongerExpirationCheck and report that they will not auto-renew Related : freeipa/freeipa-healthcheck#104 Related : freeipa/freeipa-healthcheck#366 Signed-off-by: Sumedh Sidhaye <ssidhaye@redhat.com>
This is intended for externally-signed IPA CA certificates. It should not duplicate user-provided certificats because this check, IPACertmongerExpirationCheck, is based on certmonger tracking and we don't track, by default, user-provided certs.
Fixes: #104
Summary by Sourcery
Enhance the certificate expiration check to load and parse certmonger certificates, detect externally signed certificates, and append a notice that such certificates won’t auto-renew in both warning and error messages; update tests to cover these cases.
New Features:
Enhancements:
Tests: