Project

General

Profile

Actions

Bug #35588

closed

Prevent the deletion of content credentials when they are in use

Added by Chris Roberts over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Credentials
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Chris Roberts over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

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

Updated by Ian Ballou over 1 year ago

  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.7.0 added
Actions #5

Updated by Chris Roberts over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF