Skip to content

feat(desktop): use a fresh signing key; add genkey/verify#2467

Merged
esengine merged 1 commit into
main-v2from
feat/desktop-signing-key
May 31, 2026
Merged

feat(desktop): use a fresh signing key; add genkey/verify#2467
esengine merged 1 commit into
main-v2from
feat/desktop-signing-key

Conversation

@esengine

Copy link
Copy Markdown
Owner

The v1 minisign private key wasn't recoverable (no local backup, and a GitHub secret can't be read back), so the desktop updater uses a fresh minisign key pair instead of reusing v1's — v2 is an independent update line anyway.

  • internal/update: embed the new public key (ID AF12CA46F4A9EBB0).
  • cmd/sign: genkey <dir> generates a pair; verify <file> checks a .minisig against the embedded key (a sign/verify self-test).
  • README: updated verification key.

Verified locally: go test ./... green; signed an artifact with the new private key and verify confirmed it against the embedded public key.

Before the first desktop-v* release, set MINISIGN_PRIVATE_KEY / MINISIGN_PASSWORD secrets (the key generated into ~/.reasonix-keys).

The v1 minisign private key wasn't recoverable (no local backup, and a GitHub
secret can't be read back), so the desktop updater uses a brand-new minisign
key pair rather than reusing v1's. v2 is an independent update line, so a fresh
key is cleaner regardless.

- internal/update: embed the new public key (ID AF12CA46F4A9EBB0).
- cmd/sign: add `genkey <dir>` (generate a key pair) and `verify <file>`
  (check a .minisig against the embedded key — a sign/verify self-test).
- README: update the verification public key.

The private key and password live only in ~/.reasonix-keys locally; set them as
the MINISIGN_PRIVATE_KEY / MINISIGN_PASSWORD secrets before the first release.
@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label May 31, 2026
@esengine esengine merged commit 55d408d into main-v2 May 31, 2026
3 checks passed
@esengine esengine deleted the feat/desktop-signing-key branch May 31, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant