Project

General

Profile

Actions

Feature #30428

open

Allow api access to gpgkey/content credentials via name

Added by Dirk Götz almost 5 years ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

At the moment you can get the GPG key or Content credentials via the api using one of the URLs:
https://katello.localhost/katello/api/v2/gpg_keys/1/content
https://katello.localhost/katello/api/v2/content_credentials/1/content

Now we have the problem that SLES requires us to import GPG keys before using them (zypper does not ask to import like yum/dnf). We solved this by exporting the keys to the filesystem and provide them for bootstraping via http://katello.localdomain/pub. But we want to get rid of the additional steps and redundant data so thought about using the API, but with the ID it is also not so easy, so it would be great if the name could be used like this:
https://katello.localhost/katello/api/v2/content_credentials/RPM-GPG-KEY-EPEL-7/content

Actions

Also available in: Atom PDF