8000 fix(pgp): ask keys.openpgp.org when gpg's keyserver has no key by hanthor · Pull Request #690 · hyprlab/hylki · GitHub
[go: up one dir, main page]

Skip to content

fix(pgp): ask keys.openpgp.org when gpg's keyserver has no key - #690

Closed
hanthor wants to merge 1 commit into
hyprlab:mainfrom
tuna-os:fix/keyserver-fallback
Closed

hanthor wants to merge 1 commit into
hyprlab:mainfrom
tuna-os:fix/keyserver-fallback

Conversation

@hanthor
@hanthor hanthor commented Nov 20, 2026
Copy link
Copy Markdown
Contributor

Fetch the sender's key and Fetch by address… ask WKD and then only the keyserver gpg is set up with, keyserver.ubuntu.com by default. That server lacks many keys. edward-en@fsf.org (the FSF's GnuPG test bot) is one: its WKD redirects fsf.org to www.fsf.org, which gpg refuses ("No data"), and keyserver.ubuntu.com has nothing for it. keys.openpgp.org has it.

When WKD and gpg's own keyserver find nothing, fetch_key now repeats the lookup (by address, then by key id) with --keyserver hkps://keys.openpgp.org, skipping WKD the second time.

Verified:

  • With gpg 2.4.9 and a fresh home whose dirmngr.conf names keyserver.ubuntu.com: --auto-key-locate clear,keyserver --locate-external-keys edward-en@fsf.org returns "No data"; the same with --keyserver hkps://keys.openpgp.org imports F357AA1A5B1FA42CFD9FE52A9FF2194CC09A61E8.
  • cargo test --bin hylki -- mail::pgp (36 passed), clippy clean for the file, tools/check-docs.py passes.

Not verified: clicking Fetch the sender's key in a build of this branch.

gpg asks only the keyserver it is set up with, keyserver.ubuntu.com by
default, which lacks many keys: edward-en@fsf.org is on keys.openpgp.org
but not there, and its WKD redirects to another host, which gpg refuses.
Fetch the sender's key and Fetch by address now ask keys.openpgp.org
when WKD and gpg's own keyserver find nothing.
hyprlab added a commit that referenced this pull request Nov 21, 2026
gpg asks only the keyserver it is set up with, keyserver.ubuntu.com by default, and its WKD refuses a redirect to another host, so edward-en@fsf.org was never found. Fetch the sender's key and Fetch by address now fall back to Hylki's own WKD and keys.openpgp.org lookups.

Co-Authored-By: James Reilly <5840441+hanthor@users.noreply.github.com>
@hyprlab
hyprlab commented Nov 21, 2026
Copy link
Copy Markdown
Owner

Got this merged, thanks for the PR!

@hyprlab
hyprlab commented Nov 22, 2026
Copy link
Copy Markdown
Owner

Agentic reply:

1.49.1 stable has been released and is live in the repo with this fix.

If you've installed Hylki as a Flatpak, running flatpak update will pick it up automatically. If not, download and install it first:

flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.flatpakref

AppImage, Debian and RPM installs: See Installing for update details.

@hyprlab hyprlab closed this Nov 22, 2026
somepaulo pushed a commit to somepaulo/hylki that referenced this pull request Nov 24, 2026
…#690)

gpg asks only the keyserver it is set up with, keyserver.ubuntu.com by default, and its WKD refuses a redirect to another host, so edward-en@fsf.org was never found. Fetch the sender's key and Fetch by address now fall back to Hylki's own WKD and keys.openpgp.org lookups.

Co-Authored-By: James Reilly <5840441+hanthor@users.noreply.github.com>
somepaulo pushed a commit to somepaulo/hylki that referenced this pull request Nov 24, 2026
A patch with the fixes since 1.49.0: hyprlab#678 (sending), hyprlab#679, hyprlab#689, hyprlab#690, hyprlab#691 with hyprlab#694, and two dialog and Settings fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0