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

Jenkins Agent NodeJS20 fails when using helm secrets as it is not able to find the gpg keyring #1001

Closed
matzehecht opened this issue Mar 14, 2024 · 0 comments · Fixed by #1002
Labels
bug Something isn't working

Comments

@matzehecht
Copy link
Contributor

Describe the bug
The build fails while trying to deploy using helm secrets, as helm secrets searches for the gpg keyring to be able to load the decryption key. As the group does not have permissions to list the contents of the /home/jenkins/.gnupg/ directory, it is not able to find the /home/jenkins/.gnupg/pubring.kbx keyring.
This was already reported in the past for the older NodeJS agents (see #945) and fixed in August (see #946 ).

To Reproduce
Steps to reproduce the behavior:

  1. Go to start a build with jenkins-agent-nodejs20 and helm secrets.

Expected behavior
It should not fail.

Screenshots
N/A

Affected version (please complete the following information):

  • OpenShift: 4.13
  • OpenDevStack 4.x

Log Output (ensure to remove any confidential information like tokens, project names, etc.

gpg: WARNING: unsafe ownership on homedir '/home/jenkins/.gnupg'
gpg: failed to create temporary file '/home/jenkins/.gnupg/.#lk0x000055cdf4aea630.pod-a9f2400a-43e3-4e43-a689-d3d8e99846eb-2q12k-lp876.1536': Permission denied
gpg: keyblock resource '/home/jenkins/.gnupg/pubring.kbx': Permission denied
gpg: no writable keyring found: Not found
gpg: key 5C7B5D6E8D98EF46: failed to re-lookup public key: No public key
gpg: error reading ****: No public key
gpg: import from **** failed: No public key
gpg: Total number processed: 0
gpg:       secret keys read: 1

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant