-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Signing-only subkeys fail to import #58
Comments
Hi @jasonkarns, I will take a look this week on this issue. Thanks for your input and concise report. Btw maybe linked to #39 (comment) |
Agree, thread in #39 sounds similar. I also exported with Looks like openpgp.js supposedly supports this now? openpgpjs/openpgpjs#865 But this action is already using a version that includes that patch so 🤷 ... |
I'm having the same problem, and for me it traces back to https://github.com/crazy-max/ghaction-import-gpg/blob/master/src/openpgp.ts#L33 A signing-only key will not have an encryption key, so it fails there it seems. If I remove that line, this removes the error for me. I don't know how much knock-on damage that does though. |
So does that mean that a sub key will work fine so long as the sub key is signing+encryption? While this bug/feature should still remain open, that would at least unblock me by allowing sub keys. (I haven't tried importing sub keys with additional capabilities yet). |
I've confirmed that using a Sign+Encrypt subkey works as expected, so that's at least a workaround. (It works in my particular case... however, there are other scenarios where one can not add an additional encryption subkey because it's generally expected that there be only a single encrypting subkey.) Regardless, there is a slight bug (minor annoyance, really) when using only a subkey: this action reports a warning during workflow cleanup that the secret key is missing. This annotation is displayed on the workflow summary, as well as in detail within the workflow log output.
My assumption is that this action is attempting to delete the secret key that was added. However, if the secret key contains only a subkey, then the deletion fails. |
I'm currently using a fork that makes https://github.com/crazy-max/ghaction-import-gpg/blob/master/src/openpgp.ts#L33 optional. |
I had the same issue with a sign only key. I just added a enctyption subkey and this also works when importing both and not just the sign-only subkey |
GH action doesn't support sign-only keys. [1]: crazy-max/ghaction-import-gpg#58
GH action doesn't support sign-only keys. [1]: crazy-max/ghaction-import-gpg#58
…rking with the new gpg key due to crazy-max/ghaction-import-gpg#58
Hi, I see a several merges but the issue is still open. Is there still more to do here? |
@jason-swissre Look closely; they're all merged to other repositories ;) GitHub will show when someone mentions an issue elsewhere, so those merges just show a lot of people are running into this. |
I started something in #112. Can someone try it with |
@crazy-max Hi. I have tried to use crazy-max/ghaction-import-gpg@subkey and it works. Previous version v4 was failed with ##[error]Could not find valid encryption key packet in key |
Behaviour
It appears that the action fails to accept signing-only subkeys when attempting to import the key.
Steps to reproduce this issue
Expected behaviour
I'd expect the key to be registered successfully such that commit and tag signing works as usual.
Since the private key needs to be stored within Actions' Secrets, it is beneficial to limit the exposed surface area of the key. For that reason, I only want the signing subkey to be stored as the secret, not the entire master secret key. (That way revocation is straightforward, in the event the key is compromised.)
Demonstration of local commit sign with signing-subkey only:
Actual behaviour
When the import-gpg action runs, it generates an error:
Configuration
Logs
log.txt
The text was updated successfully, but these errors were encountered: