Bug 2217928

Summary: [RFE] Need api call to delete host puppet certificates in Satellite 6.
Product: Red Hat Satellite Reporter: Akshay Kapse <akapse>
Component: PuppetAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.5CC: emil.solinski, lstejska, rlavi
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Akshay Kapse 2023-06-27 13:54:12 UTC
1. Proposed title of this feature request
- Ability to delete host puppet certificates using api call.

2. What is the nature and description of the request?
- Adding functionality that would remove Puppet certificates.
- Puppet certificates are not getting removed from Satellite even after deleting the host and these needs to be removed manually. An api call will be helpful in this but there is no such option in api.
    
3. Why does the customer need this? (List the business requirements here)
- Automation of the server reinstallation process. (Systems are connected using curl or subscription-manager...)
- Delegating permisons for server reinstallation to individuals outside the Satellite administrators group.

    
4. How would the customer like to achieve this? (List the functional requirements here)
- Enable the removal of the Puppet certificate from a Satellite server or capsule using the Satellite API. When removing a host object via the Satelllite API, the associated Puppet certificat of the removed server should also be deleted.

5. Is there already an existing RFE upstream or in Red Hat Bugzilla?
- No, old https://bugzilla.redhat.com/show_bug.cgi?id=1456782 but got closed as wontfix.

6. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. satellite 7.0)?
- Is it preferable to implement this functionality in Satellite version 6.11.x, if not possible, version 6.12.x of Satellite is also acceptable.

7. Is the sales team involved in this request and do they have any additional input?
-  No