Bug 2229331

Summary: The customer would like to see the curl commands created via global registration
Product: Red Hat Satellite Reporter: Waldirio M Pinheiro <wpinheir>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.13.3CC: ahumbe, lstejska, msunil, rlavi, saydas
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: All   
OS: All   
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 Waldirio M Pinheiro 2023-08-05 00:39:42 UTC
Description of problem:
The customer would like to see the curl commands created via global registration with all the parameters, for reuse purposes. Instead, it's necessary to recreate the command all the time, assuming the customer doesn't make any notes.

Also, assuming that keys are created with no expiration date, they will be around, and eventually, no one will be able to tell what are them, once there is no way to retrieve them.

Version-Release number of selected component (if applicable):
All of them with this feature.

How reproducible:
100%

Steps to Reproduce:
1. Create the global registration key
2. Leave the page
3.

Actual results:
There is no way to retrieve the curl command once again for reuse.

Expected results:
Be able to list all the commands, with all the parameters already set.

Additional info:

Comment 1 Sayan Das 2023-08-05 06:06:01 UTC
CC'ing Manu, who may have a customer requesting this 

And everyone in support almost every day asks for something like this.

In addition to that,

A user should be able to see :

* What all tokens were created for global registration ( only if they are still active )

* When they were created

* What is their expiry date


The jwt_secrets table shows when it was created and updated but not the expiry of the same.

Comment 2 Leos Stejskal 2023-08-08 12:39:32 UTC
Possibly duplicate to https://bugzilla.redhat.com/show_bug.cgi?id=1920184,
however, I'll keep it open as it has been requested already few times.