Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 2052904 - [RFE] Prevent the deletion of content credentials when they are in use in Satellite 6.x
Summary: [RFE] Prevent the deletion of content credentials when they are in use in Sat...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Credentials
Version: 6.10.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.13.0
Assignee: Chris Roberts
QA Contact: David Moore
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-10 09:17 UTC by momran
Modified: 2023-05-11 11:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:21:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35588 0 Normal Closed Prevent the deletion of content credentials when they are in use 2023-01-20 10:45:44 UTC
Github Katello katello pull 10298 0 None Merged Fixes #35588 - Prevent the deletion of content credentials when they are in use 2023-01-20 10:45:58 UTC
Red Hat Issue Tracker SAT-11254 0 None None None 2022-06-28 16:58:50 UTC
Red Hat Issue Tracker SAT-15759 0 None None None 2023-05-11 11:44:58 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:21:23 UTC

Description momran 2022-02-10 09:17:12 UTC
Description of problem:
=======================

Content credentials (e.g. GPG keys) that are in use by products or repositories in Satellite 6.x can be deleted. We need to implement a safety mechanism to prevent this from happening, and only allow content credentials that are no longer in use to be deleted.


Version-Release number of selected component (if applicable):
=============================================================
Red Hat Satellite 6.8, 6.9 and 6.10


How reproducible:
=================
Always


Steps to Reproduce:
===================

1. Create a GPG key in Red Hat Satellite's web UI under Content --> Content Credentials.

2. Create a custom product/repository in Red Hat Satellite's web UI, and configure it to use the GPG key created in step (1).

3. Go back to Content --> Content Credentials and deleted the GPG key.


Actual results:
===============

The GPG key is deleted.


Expected results:
=================

As the GPG key is still in use by an existing product/repository, the deletion of the GPG key should be blocked.

Comment 2 Chris Roberts 2022-06-28 16:56:40 UTC
This is a valid RFE, adding to our sprint backlog

Comment 6 Bryan Kearney 2022-10-10 16:03:50 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35588 has been resolved.

Comment 8 Brad Buckingham 2022-12-16 20:37:47 UTC
Satellite 6.13 SNAP3 has been confirmed to include these changes; therefore, aligning to 6.13 for verification.

Comment 14 errata-xmlrpc 2023-05-03 13:21:11 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 (Important: Satellite 6.13 Release), 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:2097


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