RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1661338 - krb5 pkinit_anchors should default to FILE:/etc/pki/tls/certs/ca-bundle.crt
Summary: krb5 pkinit_anchors should default to FILE:/etc/pki/tls/certs/ca-bundle.crt
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: krb5
Version: 7.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Robbie Harwood
QA Contact: Filip Dvorak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-20 21:42 UTC by Robbie Harwood
Modified: 2023-09-07 19:38 UTC (History)
8 users (show)

Fixed In Version: krb5-1.15.1-38.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1661339 (view as bug list)
Environment:
Last Closed: 2020-03-31 19:41:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-10340 0 None None None 2023-09-07 19:38:22 UTC
Red Hat Product Errata RHBA-2020:1029 0 None None None 2020-03-31 19:41:40 UTC

Description Robbie Harwood 2018-12-20 21:42:51 UTC
+++ This bug was initially created as a clone of Bug #1508081 +++

krb5 pkinit_anchors should default to FILE:/etc/pki/tls/certs/ca-bundle.crt

When setting up a system for pkinit, it seems odd that the trusted anchors doesn't default to the system provided trust anchors.  This can lead to extra configuration work on the users to set a system expected value.

krb5 should default kinit_anchors to the official ca-bundle packaged with the distribution.

Comment 1 Patrik Kis 2018-12-21 09:21:46 UTC
How this change differs from bug 1508081?

Comment 2 Robbie Harwood 2018-12-21 17:03:27 UTC
(In reply to Patrik Kis from comment #1)
Same change, but a follow-on to make it actually useful.  Our parser demands that this field start with "FILE:" and it currently doesn't in the default config file.

Comment 7 James Ralston 2019-10-02 22:01:56 UTC
Please do not do this.

The current behavior of pkinit.so is to include *every* CA certificate discovered by the pkinit_anchors setting in the AS-REQ request.

ca-bundle.crt currently has around 138 certificates. For a large site, setting pkinit_anchors to FILE:/etc/pki/tls/certs/ca-bundle.crt is effectively a DoS amplification attack against the KDC.

pkinit_anchors should be set by the local administrator configuring PKINIT to contain only the CA certificates the need to be present for the particular smartcard in use. It should not be set globally.

Additionally, note that when the parser encounters the syntactically incorrect "pkinit_anchors = /etc/pki/tls/certs/ca-bundle.crt" setting, it silently aborts the PKINIT attempt, which is fiendishly difficult to debug.

For more details, see BZ#1757506.

Comment 8 Robbie Harwood 2019-10-03 17:48:40 UTC
Please keep replies to a single bug.  It reduces the chance that they'll get lost, and if you're just saying the same things, you're just making more clutter to sift through.  I've replied on the RHEL-8 version.

Comment 9 toasty 2019-10-21 19:33:04 UTC
Hello All, 

I added 02498479 to the list of cases.

Comment 11 errata-xmlrpc 2020-03-31 19:41:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1029


Note You need to log in before you can comment on or make changes to this bug.