Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[RHEL] Include gpg key in repo packages #32

Closed
Klaas- opened this issue Feb 8, 2023 · 2 comments
Closed

[RHEL] Include gpg key in repo packages #32

Klaas- opened this issue Feb 8, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Klaas-
Copy link

Klaas- commented Feb 8, 2023

Describe the problem you are experiencing.
Example RHEL8 but it applies to all rhel versions.

http://packages.microsoft.com/rhel/8/prod/Packages/p/packages-microsoft-prod.rpm currently includes a single file /etc/yum.repos.d/microsoft-prod.repo with the contents:

[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/rhel/8/prod
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
sslverify=1

Describe any possible solutions that you would like to see.
Supply gpg key in rpm put it into /etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft-EL[789] and use it in the repository file like gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft-EL[789] maybe use different ones for rhel major releases so you can easily update it every couple of years :)

@sdherr
Copy link
Contributor

sdherr commented Jan 31, 2025

This change has been rolled out.

@sdherr sdherr closed this as completed Jan 31, 2025
@sdherr sdherr self-assigned this Jan 31, 2025
@Klaas-
Copy link
Author

Klaas- commented Feb 3, 2025

Thank you, seems to work as expected.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants