-
Notifications
You must be signed in to change notification settings - Fork 207
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
GPG Verification Failure for CloudWatch Agent on RHEL 8 #1277
Comments
Hello! |
Hello! |
This issue was marked stale due to lack of activity. |
I am experiencing this exact same issue. In the past we've been able to use Ansible to deploy the cloud watch agent without issue. However, we are now seeing this same behavior where the package shows as unsigned. Here are the commands I used for testing: [root@localhost STAGE S:E ~]# curl https://amazoncloudwatch-agent.s3.amazonaws.com/assets/amazon-cloudwatch-agent.gpg -o amazon-cloudwatch-agent.gpg [root@localhost STAGE S:E ~]# gpg --import amazon-cloudwatch-agent.gpg [root@localhost STAGE S:E ~]# gpg --fingerprint D58167303B789C72 [root@localhost STAGE S:E ~]# gpg --verify amazon-cloudwatch-agent.rpm.sig amazon-cloudwatch-agent.rpm [root@localhost STAGE S:E ~]# rpm -qpi amazon-cloudwatch-agent.rpm This is worrying since we dont have a signed version of this package available to us anymore. |
Describe the bug
The problem arises when attempting to install the CloudWatch agent on RHEL 8 using Ansible. The GPG verification for the agent fails, preventing successful installation, even after importing the GPG key.
Steps to reproduce
ansible.builtin.rpm_key
.ansible.builtin.dnf
.What did you expect to see?
The CloudWatch agent should be installed successfully, verified by the GPG key already imported to the RPM using the module
ansible.builtin.rpm_key
.What did you see instead?
The installation fails with the following error message when trying to install using the
ansible.builtin.dnf
module:What version did you use?
Version: 1.300041.0b681
Environment
OS: Red Hat Enterprise Linux 8
Additional context
Following the AWS documentation, it appears that the installer does not match the GPG key imported. Since the GPG verification fails, the installation cannot proceed. This issue persists even after downloading the latest version of the agent and importing the GPG key as mentioned in the documentation.
From the details provided below, it looks like the amazon-ssm-agent package is signed correctly, but the amazon-cloudwatch-agent package is not signed at all:
The text was updated successfully, but these errors were encountered: