1. Describe your incident:
Trying to install the Collector-Sidecar 1.2.0-1 on RHEL9 and getting “Error: GPG check FAILED” after installing the repository RPM. I tried ignoring the GPG check (yum --nogpgcheck install graylog-sidecar) however that fails with “package graylog-sidecar-1.2.0-1.x86_64 does not verify: Header V4 RSA/SHA1 Signature, key ID b1606f22: BAD”
2. Describe your environment:
RHEL 9
4. How can the community help?
Anyone else had this issue and found a solution?
Thanks! I grabbed the file itself (graylog-sidecar-1.2.0-1.x86_64.rpm) instead of using the repository, and it installs fine. There must be something different with RHEL9 and GPG key verifications with repositories. (I’m testing out RHEL 9, so this is good to know!)
– I found this link, which seems to indicate that RHEL 9 wants stronger GPG keys, which might be why it’s happening:
— according to poster pmatilai: This is due to RHEL 9 openssl outlawing SHA1 use in signatures. Nothing rpm can do about it.
I found a (temporary) fix before companies update their key to not use SHA-1 signatures:
update-crypto-policies --set LEGACY
(reboot)
( this can be reverted down the road by running the same command with DEFAULT as the name of the policy.)
PS - I previously needed to do this also on my Graylog server(s) running RHEL 8 to get Active Directory authentication working, since the certificates the Domain Controllers are using don’t meet the “default” crypto requirements
Setting the default crypto policy to Legacy is a working but unfavorable solution in my opinion. This lowers the acceptable cryptographic requirements for the entire system.
Is Graylog working on updating it’s repo to support the latest RHEL requirements - SHA256 for example?
From our DEV team: We are currently not working on updating the repository format to support the latest RHEL requirements. It would be great if @SalC could open a GitHub issue with the details. GitHub - Graylog2/fpm-recipes: Graylog package build recipes
Thank you!