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 1883477 - [RFE] Automatic expired certificate purging
Summary: [RFE] Automatic expired certificate purging
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pki-core
Version: 9.2
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 9.2
Assignee: Endi Sukma Dewata
QA Contact: idm-cs-qe-bugs
Jana Heves
URL:
Whiteboard:
Depends On:
Blocks: 2184523
TreeView+ depends on / blocked
 
Reported: 2020-09-29 11:00 UTC by Arya Rajendran
Modified: 2023-12-13 09:52 UTC (History)
16 users (show)

Fixed In Version: pki-core-11.3.0-0.2.beta1.el9
Doc Type: Enhancement
Doc Text:
.Automatic purging of expired certificates This update adds an automatic mechanism to purge expired certificates and request records from the database. You can enable this feature based on certain policies, such as search size limit, search time limit, and retention time. To remove records safely, the CA needs to use the Random Certificate Serial Numbers v1 (RSNv3) to generate the certificate serial numbers and enrollment or renewal request IDs. The CA provides a pruning job that removes the following: * Certificates that have expired for some time. * Completed requests corresponding to the expired certificates. * Incomplete requests that have been idle for some time. You need to schedule this job to run regularly to remove a certain number of records each time it runs. The remaining records will be removed in the subsequent runs. For large deployments, you can distribute the job among the servers in the cluster.
Clone Of:
: 2184523 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:43:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-55156 0 None None None 2022-10-06 12:09:14 UTC
Red Hat Knowledge Base (Solution) 7011475 0 None None None 2023-05-07 11:22:09 UTC
Red Hat Product Errata RHSA-2023:2293 0 None None None 2023-05-09 07:44:35 UTC

Description Arya Rajendran 2020-09-29 11:00:37 UTC
This bug is created as a clone of upstream ticket:

https://pagure.io/dogtagpki/issue/1750

Currently there is no automatic mechanism to purge expired certificates and the corresponding request objects from the database, so over time the database can grow very large.

There should be an automatic mechanism to purge expired certificates which can be optionally enabled based on certain policies, for example:

database size limit
number of expired certificates
time elapsed since expiration date

Comment 6 François Cami 2020-10-06 13:54:49 UTC
Upstream PKI issue is now: https://github.com/dogtagpki/pki/issues/2307

Comment 7 François Cami 2020-10-06 13:56:36 UTC
Moving to Dogtag. As noted in the IPA upstream ticket:

I do not think we should prune these directly from Dogtag's DB.
Dogtag should have an interface to let IPA do it (if necessary).
There could even be rules configured on Dogtag side that keep some certificates, for instance those that expired within the past year as asked by the reporter.

Comment 14 Endi Sukma Dewata 2022-11-15 18:46:20 UTC
Fedora COPR build: https://copr.fedorainfracloud.org/coprs/g/pki/master/builds/

Comment 28 errata-xmlrpc 2023-05-09 07:43:41 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 (Moderate: pki-core security, bug fix, and enhancement update), 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/RHSA-2023:2293

Comment 30 Red Hat Bugzilla 2023-09-18 00:22:38 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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