-
Notifications
You must be signed in to change notification settings - Fork 459
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
Problem creating a keyring in Ubuntu 22 #1201
Comments
It'll be easier to troubleshoot this if you provide the puppet code you're using. Also, there is no need to censor the key IDs, those are not secret. If the key is in binary format, it needs to be named with a |
GM, I am not sure it is a format problem, because the key had the .asc extension and I created it on Linux with
However, I have changed my key from ASCII-armored to binary and it currently works. However, there are cases in which this is not possible. For example, I have the same problem with Wazuh. The key is ASCII-armored, but it does not have the .asc extension. I am using the module with Foreman, the relevant conf is: wazuh: Again, if I download the key with curl and import with gpg it works, but not with puppet. It would be preferable to have an internal control of the key format, if possible, or to pass the information with an option. Thank you! |
Update: the problem seems to be that if the original key is ASCII-armored, it is saved by puppet as ASCII independently of the keyring extension. So, if the latter is .gpg, it does not work because the system expects a binary file. |
The filename you use with puppet has to match the content of the file, so that the resulting file on the filesystem has the correct name. Puppet doesn't care about the content of the file, it just writes to disk whatever it is given. It is So I don't think there is a bug here. |
Indeed, https://packages.wazuh.com/key/GPG-KEY-WAZUH is ASCII-armored, so your code with |
Thanks for your input. Things work now. |
Describe the Bug
I'm using puppet to store a keyring to a file
Expected Behavior
The module creates a file, but it cannot be read by apt and apt-key
Steps to Reproduce
Steps to reproduce the behavior:
Environment
The text was updated successfully, but these errors were encountered: