Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

RHEL 9 repo packages are signed with SHA-1 which is disabled in RHEL 9 #1345

Open
hakong opened this issue Mar 21, 2024 · 2 comments
Open

RHEL 9 repo packages are signed with SHA-1 which is disabled in RHEL 9 #1345

hakong opened this issue Mar 21, 2024 · 2 comments

Comments

@hakong
Copy link

hakong commented Mar 21, 2024

Describe the bug
SHA-1 has been disabled by default in RHEL 9 due to insecurity, see: https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9

Thruk Version
n/a

To Reproduce
Steps to reproduce the behavior:

  1. Enable ConSol RHEL 9 stable repo on an RHEL 9 system
  2. Attempt to install thruk

Expected behavior
Packages should install.

Actual behavior
Packages are not installed.

warning: Signature not supported. Hash algorithm SHA1 not available.
Error: GPG check FAILED

Screenshots

Desktop (please complete the following information):
n/a

Additional context
Add any other context about the problem here.

@sni
Copy link
Owner

sni commented Mar 22, 2024

does this look similar in your setup:

%> rpm -Kv libthruk-3.00-0.rhel9.x86_64.rpm 
libthruk-3.00-0.rhel9.x86_64.rpm:
    Header V4 RSA/SHA512 Signature, key ID a57b9ed7: OK
    Header SHA256 digest: OK
    Header SHA1 digest: OK
    Payload SHA256 digest: OK
    MD5 digest: OK

%> sha256sum libthruk-3.00-0.rhel9.x86_64.rpm
bb3686848010ee2a86a9d858db053a658290fe86fe6996e50dddab5944a7cd07  libthruk-3.00-0.rhel9.x86_64.rpm

Looks like there is a sha512 signature.

i don't have any rhel9 available, it works fine on rocky 9 and alma 9. Is this a redhat thing?

@hakong
Copy link
Author

hakong commented Mar 22, 2024

Interesting. Just tested on a standalone system using the repo directly and that worked fine. In the original example the repository is mirrored using Foreman/Satellite and a client of that is trying to install thruk, and failing.

I switched over to the OpenSuse Build Service repo and that worked fine using Foreman/Satellite.

Using the repo directly:

ConSol labs repo: works
OpenSuse Build Service: works

Using the repo from a Foreman mirror:

ConSol labs repo: fails
OpenSuse Build Service works

I'll test this more at work next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants