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

[BUG] "Error creating signature: No pinentry" #519

Open
git-hyagi opened this issue Jun 30, 2023 · 2 comments
Open

[BUG] "Error creating signature: No pinentry" #519

git-hyagi opened this issue Jun 30, 2023 · 2 comments
Labels

Comments

@git-hyagi
Copy link
Contributor

Describe the bug
Configuring signing services with a passphrase in the gpg key will fail with:

Traceback (most recent call last):
  File "/usr/bin/pulpcore-manager", line 33, in <module>
    sys.exit(load_entry_point('pulpcore==3.23.2', 'console_scripts', 'pulpcore-manager')())
...
    signed = self.sign(
  File "/usr/lib/python3.9/site-packages/pulpcore/app/models/content.py", line 807, in sign
    raise RuntimeError(str(completed_process.stderr))
RuntimeError: b'time="2023-06-29T16:26:58Z" level=fatal msg="Error creating signature: No pinentry"\n'

To Reproduce
Steps to reproduce the behavior:
Follow the steps from https://github.com/pulp/pulp-oci-images/blob/latest/docs/signing_script.md, but in the Creating a gpg key step, define a passhrase (instead of passing the %no-ask-passphrase parameter).

git-hyagi added a commit to git-hyagi/pulp-oci-images that referenced this issue Jun 30, 2023
@mikedep333
Copy link
Member

FYI: The example script shows a password inside the script, but it does not work successfully.

We are going to assume users will set the PASSWORD env variable separately for a real secure solution, we just need to make the example script work.

And the solution to making the example script work seems to be to install the pinentry package. Specifically, it seems to make gpg --passphrase work.

@Janr2
Copy link

Janr2 commented Jul 21, 2023

Just a note.

This worked for me without the package.

gpg --pinentry-mode loopback etc .....

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

Successfully merging a pull request may close this issue.

3 participants