Spring Plugin PGP Signature cannot be verified
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- java
- Domain
- build-system, security
Research direction
Start with PublicKeyUtils.loadPublicKeyRing at PublicKeyUtils.java:144 and follow the key-loading path through PGPKeysCache.loadKeyFromFile and receiveKey. Reproduce the failure with the Maven command and keyserver settings from the report, then verify the result against SignatureUtils.checkSignature and CheckMojo.processArtifactSignature. Done means the reported revoked-key response is handled correctly and signature verification has a regression test.
Written by the indexing model from the issue text.
Description
Hi,
I think, the artifact on maven central cannot be verified as the public GPG key is revoked.
Error message while running the plugin to verify the signatures (truncated stacktrace):
Caused by: org.bouncycastle.openpgp.PGPException: org.bouncycastle.openpgp.PGPSignatureList found where PGPPublicKeyRing expected
at org.bouncycastle.openpgp.PGPPublicKeyRingCollection.<init> (Unknown Source)
at org.simplify4u.plugins.pgp.PublicKeyUtils.loadPublicKeyRing (PublicKeyUtils.java:144)
at org.simplify4u.plugins.keyserver.PGPKeysCache.loadKeyFromFile (PGPKeysCache.java:230)
at org.simplify4u.plugins.keyserver.PGPKeysCache.receiveKey (PGPKeysCache.java:275)
at org.simplify4u.plugins.keyserver.PGPKeysCache.lambda$null$2 (PGPKeysCache.java:181)
at org.simplify4u.plugins.keyserver.PGPKeysCache$KeyServerListOne.execute (PGPKeysCache.java:372)
at org.simplify4u.plugins.keyserver.PGPKeysCache.lambda$getKeyRing$b1186df7$1 (PGPKeysCache.java:181)
at io.vavr.control.Try.of (Try.java:75)
at org.simplify4u.plugins.keyserver.PGPKeysCache.getKeyRing (PGPKeysCache.java:181)
at org.simplify4u.plugins.pgp.SignatureUtils.lambda$checkSignature$91862a76$1 (SignatureUtils.java:304)
at io.vavr.control.Try.of (Try.java:75)
at org.simplify4u.plugins.pgp.SignatureUtils.checkSignature (SignatureUtils.java:304)
at org.simplify4u.plugins.pgp.SignatureUtils.checkSignature (SignatureUtils.java:362)
at org.simplify4u.plugins.CheckMojo.processArtifactSignature (CheckMojo.java:243)
Maven Command:
cd $CI_PROJECT_DIR/project/dir && mvn org.simplify4u.plugins:pgpverify-maven-plugin:1.17.0:check
-Dpgpverify.keyserversLoadBalance=false
-Dpgpverify.keyserver=https://keyserver.ubuntu.com
-Dpgpverify.keysMapLocation=`pwd`/../../.mvn/keysmap.properties
If I look up the key, it seems to be revoked:
https://keyserver.ubuntu.com/pks/lookup?search=0x9A2C7A98E457C53D&fingerprint=on&op=index
- Dominant language
- Java
- Stars
- 481
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-projects/spring-plugin
-
Release 4.2 M2Openin: infrastructure
Difficulty 5/5 Over a week Newbie friendliness 20/100
spring-projects/spring-plugin#158 ·
-
Upgrade to Spring Framework 7.1 M2Possibly taken @odrotbohm claimed this 15 days ago. Openin: infrastructure type: dependency-upgrade
spring-projects/spring-plugin#156 · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
spring-projects/spring-plugin#74 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
spring-projects/spring-plugin#73 · 2 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
All issues in spring-projects/spring-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
geonetwork/geonetwork#227 ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Netcracker/qubership-testing-platform-tdm3#138 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
synthetichealth/synthea#1726 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bisq-network/bisq#8097 ·
Maintainers usually reply within 1 day
-
area/frontend good first issue kind/cooldown
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day