-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
qubes gpg-client[-wrapper] incompatibility #4612
Comments
Do you see with what options qubes-gpg-client-wrapper is called? If you have any control over that command line, try adding |
So, |
BTW, is just created a custom Is that how it is supposed to be done or is there a more elegant way? |
Should default to |
@ThomasWaldmann |
@pganssle i know, but still this is a bug / incompatiblity in the qubes-gpg-client*. It is intended to implement the same cli api as gpg, but doesn't in this case. |
i'll try to fix this. shell scripts are not my strong point, though. |
I didn't find an easy fix, but keeping some notes here for someone who wants to try fixing it:
What I said above applies to gpg signing. There might be other cases that might have a different desired behaviour. |
borgbackup/borg#4301 switching to twine there (for whoever may find it useful). |
This is now fixed in the current wrapper script:
That is correct.
This is very difficult to implement in split-gpg, because split-gpg requires that GPG itself not write any files. Fortunately, there is a solution on the way. split-gpg2 is the eventual replacement for split-gpg. Instead of filtering the options that can be passed to GPG and running the GPG command server-side, split-gpg2 leaves the GPG command alone and instead provides a custom gpg-agent implementation. This has the advantage that all of these corner cases, and more, are handled automatically. It also has vastly reduced attack surface and does not require the |
This issue is being closed because:
If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment. |
This is a legitimate bug that impacts all versions of split-gpg1, but I don’t think it is worth fixing, especially given that split-gpg2 is nearly ready. |
Qubes OS version:
4.0.1-rc1 + updates
Affected component(s):
split-gpg setup / qubes-gpg-client[-wrapper]
Steps to reproduce the behavior:
try to upload a python package to pypi.org using:
Expected behavior:
Signing / upload succeeds.
Actual behavior:
Upload fails because
package.tar.gz.asc
does not exist.Usually gpg puts the signature there, but the qubes-gpg-client[-wrapper] emits it onto the screen (so uses stdout or stderr).
General notes:
Reporting that as I remember it, happened some days ago, see borgbackup/borg#4213.
Related issues:
The text was updated successfully, but these errors were encountered: