Project

General

Profile

Bug #35588

Prevent the deletion of content credentials when they are in use

Added by Chris Roberts about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Credentials
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

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.

Associated revisions

Revision 8cb5f411 (diff)
Added by Chris Roberts about 2 months ago

Fixes #35588 - Prevent the deletion of content credentials when they are in use (#10298)

History

#1 Updated by Chris Roberts about 2 months ago

  • Red Hat JIRA set to SAT-11254
  • Bugzilla link set to 2052904

#2 Updated by The Foreman Bot about 2 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10298 added

#3 Updated by Ian Ballou about 2 months ago

  • Triaged changed from No to Yes

#4 Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases Katello 4.7.0 added

#5 Updated by Chris Roberts about 2 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF