-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Can't specify master key fingerprint in keys map file if sub key is used for signing. #30
Comments
The key ID always is a part of the fingerprint. One pgp key can contains master key and some sub keys. Almost all artifact are signed by master key, so problem not occured. We should correct this. Below outpout from gpg:
|
What needs to be done to support subkeys? I'm guessing on the retrieval side, you just need to iterate through the subkeys and push any keys with the signing flag set into the cache. If you can describe how you'd like it done, I could take a crack at it. |
@slawekjaranowski Still willing to work on supporting subkeys if you'd like :) |
I had a quick look through the code but couldn't see what exactly needs to happen. The use case looks like: given an artifact, a signature, and a key fingerprint, confirm that this is a valid signature of that artifact by a key with that fingerprint. So one needs to fetch the key based on the signature, and then somehow get from that to the fingerprint of the primary key rather than the subkey. But I don't understand the API the existing code is using well enough to say what (if anything) is missing. |
next example:
|
Maven Central now allows signing with ECDSA and also with Subkeys. I feel like we're going to see this become more and more of a problem. At one point I had a started a similar plugin to this one that called out to native gpg and that solved the problem. |
@exabrial - Do you have example of artifact signing with ECDSA? |
Yeah. You can use one of my other project's as an example: https://repo1.maven.org/maven2/com/github/exabrial/form-binding/1.2.0/ |
I confirm by test that ECDSA keys are working. |
Nice. That artifact isn't signed with a subkey, but it's great to see ECDSA working! |
Dependencies are now processed asynchronously by an Executor This closes s4u#30
E.g. the key used to sign junit: https://hkps.pool.sks-keyservers.net/pks/lookup?op=vindex&fingerprint=on&search=0xEFE8086F9E93774E
With
junit=0xEFE8086F9E93774E
in keys map file:With
junit=0x58E79B6ABC762159DC0B1591164BD2247B936711
in keys map file:It seems like although for most keys the id is the last few characters of the fingerprint, this isn't always true?
The text was updated successfully, but these errors were encountered: