Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the subject base from the IPA configuration, not REALM #254

Merged
merged 2 commits into from
Mar 29, 2022

Conversation

rcritten
Copy link
Collaborator

Use the subject base from the IPA configuration, not REALM

The expected certificates were hardcoded with O={REALM} which
would return false-positives if the customer defined their
own certificate subject base.

Also add a search filter to only retrieve the certificate(s) we
want to examine rather than the entire contents.

Fixes: #253

Signed-off-by: Rob Crittenden rcritten@redhat.com

The expected certificates were hardcoded with O={REALM} which
would return false-positives if the customer defined their
own certificate subject base.

Also add a search filter to only retrieve the certificate(s) we
want to examine rather than the entire contents.

Fixes: freeipa#253

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Notice this while ensuring I didn't have any leftovers during
development.

Related: freeipa#253

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
@flo-renaud flo-renaud self-assigned this Mar 29, 2022
Copy link
Contributor

@flo-renaud flo-renaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rcritten thanks for the patch, LGTM. Tested on an ipa server installed with --ca-subject "CN=Custom CA Authority,O=Other" --subject-base "O=MySubjectBase":

  • without the patch, ipa-healthcheck returns 4 errors while it should not (ocspSigningCert cert-pki-ca, subsystemCert cert-pki-ca, auditSigningCert cert-pki-ca and Server-Cert cert-pki-ca)
  • with the patch, ipa-healthcheck returns 0 error.

@rcritten
Copy link
Collaborator Author

Thanks for the review.

@rcritten rcritten merged commit 715bd0d into freeipa:master Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors with IPADogtagCertsMatchCheck
2 participants