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

Missing PGP Public Key #246

Closed
MartinKroupaETN opened this issue Mar 26, 2024 · 6 comments
Closed

Missing PGP Public Key #246

MartinKroupaETN opened this issue Mar 26, 2024 · 6 comments
Labels
agent-java community Issues and PRs created by the community triage Issues and PRs that need to be triaged

Comments

@MartinKroupaETN
Copy link

Describe the bug

I would like to ask you to provide the public PGP key to verify the signature of the jul-ecs-formatter-1.6.0.jar.
I found a PGP public key on the hkps://keys.openpgp.org keyserver, but it did not contain a user ID with a verified email address and therefore was not imported into my system.

Steps to reproduce

$ curl -LOs "https://repo.maven.apache.org/maven2/co/elastic/logging/jul-ecs-formatter/1.6.0/jul-ecs-formatter-1.6.0.jar.asc"

$ gpg --verify jul-ecs-formatter-1.6.0.jar.asc
gpg: assuming signed data in 'jul-ecs-formatter-1.6.0.jar'
gpg: Signature made Po 19. února 2024, 14:21:37 CET
gpg:                using RSA key 1B30324253E3599F1A9873C1DB69C945CDE13051
gpg: Can't check signature: No public key

$ gpg --list-packets jul-ecs-formatter-1.6.0.jar.asc
# off=0 ctb=89 tag=2 hlen=3 plen=307
:signature packet: algo 1, keyid DB69C945CDE13051
	version 4, created 1708348897, md5len 0, sigclass 0x00
	digest algo 10, begin of digest f2 8f
	hashed subpkt 33 len 21 (issuer fpr v4 1B30324253E3599F1A9873C1DB69C945CDE13051)
	hashed subpkt 2 len 4 (sig created 2024-02-19)
	subpkt 16 len 8 (issuer key ID DB69C945CDE13051)
	data: [2045 bits]

$ gpg --keyserver hkps://keys.openpgp.org --verbose --recv-keys DB69C945CDE13051
gpg: enabled compatibility flags:
gpg: data source: https://keys.openpgp.org:443
gpg: armor header: Comment: 1B30 3242 53E3 599F 1A98  73C1 DB69 C945 CDE1 3051
gpg: pub  rsa2048/DB69C945CDE13051 2024-01-12  
gpg: key DB69C945CDE13051: new key but contains no user ID - skipped
gpg: Total number processed: 1
gpg:           w/o user IDs: 1
@github-actions github-actions bot added agent-java community Issues and PRs created by the community triage Issues and PRs that need to be triaged labels Mar 26, 2024
@SylvainJuge
Copy link
Member

Hi, this is the same symptom as was reported in elastic/apm-agent-java#3523, which is due to a change in the signing keys. Until recently all Elastic artifacts were signed with a single key which was widely available in most key servers.

This new public key however isn't yet available on all key servers though.

@MartinKroupaETN
Copy link
Author

Any progress?
The key is still only at hkps://keys.openpgp.org, but the DB69C945CDE13051 keyid doesn't contain a user ID, so I can't verify it.

$ gpg --keyserver keyring.debian.org --verbose --recv-keys DB69C945CDE13051
gpg: enabled compatibility flags:
gpg: no running dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: keyserver receive failed: No keyserver available

$ gpg --keyserver hkps://keyserver.ubuntu.com --verbose --recv-keys DB69C945CDE13051
gpg: enabled compatibility flags:
gpg: data source: https://185.125.188.27:443
gpg: keyserver receive failed: No data

$ gpg --keyserver hkps://pgp.mit.edu --verbose --recv-keys DB69C945CDE13051
gpg: enabled compatibility flags:
gpg: data source: https://pgp.mit.edu:443
gpg: keyserver receive failed: No data

@SylvainJuge
Copy link
Member

Hi @MartinKroupaETN , sorry if this issue hasn't seen any progress in a while, I've notified the people in charge and hopefully this should be solved soon.

@SylvainJuge
Copy link
Member

Hi @MartinKroupaETN , the key should now be properly fixed:

I get the following with gpg --keyserver keys.openpgp.org --recv DB69C945CDE13051:

gpg: key DB69C945CDE13051: public key "[email protected] <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Can you confirm it works on your side so we can close this issue ?

@MartinKroupaETN
Copy link
Author

Hi @SylvainJuge ,

yes, verification with DB69C945CDE13051 keyid is already working.

Thank you

@SylvainJuge
Copy link
Member

Thanks for your patience and for double-checking @MartinKroupaETN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java community Issues and PRs created by the community triage Issues and PRs that need to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants