polish up the release signature verification process

Open
#11,434 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
go

Research direction

Start with the release verification instructions and signer key references linked in the issue, including scripts/keys. Review how releases publish signature files and how the guide explains checksum verification and GPG trust. Update the instructions to cover combined signatures, the suggested checksum command, independent fingerprint references, and the trust warning; done when a user can follow the documented steps and understand the expected verification output.

Written by the indexing model from the issue text.

Description

Looking at https://github.com/lightningnetwork/lnd/releases/tag/v0.21.5-beta , I'd like to propose some changes to the release signature process:

  • Use a single combined signature file with a predictable name so that a user or script only need to know the version number to download all signatures for a release and verify them. Bitcoin Core already does this (https://bitcoincore.org/bin/bitcoin-core-31.1/SHA256SUMS.asc) and we should follow their lead. Support for a number of signatures in a single file has been in gpg for a number of years now, so I think it's safe to recommend now. Currently we have a separate file for each signer and we don't always have the same signers on every release.
  • We should recommend sha256sum --ignore-missing --check manifest-v0.21.5-beta.txt as a much simpler option than "re-compute the sha256 hash of the archive with shasum -a 256 , compare it with the corresponding one in the manifest file, and ensure they match exactly." --ignore-missing has been in sha256sum for a number of years now, so I think it's safe to recommend now.
  • Recommend at least one non GitHub.com reference required to be linked to for each signer for users to verify their pubkey key fingerprints so that we aren't exclusively relying on https://github.com/lightningnetwork/lnd/tree/master/scripts/keys as an authoritative key list of approved signers. We should provide links to all sources so users can easily locate public key fingerprints for each signer across a diverse distribution of different infrastructure providers.
  • We say "You should see the following if the verification was successful:"
gpg: Signature made Wed Sep 30 17:35:20 2020 PDT
gpg:                using RSA key 60A1FA7DA5BFF08BDCBBE7903BBD59E99B280306
gpg: Good signature from "Olaoluwa Osuntokun <[email protected]>" [ultimate]

but we never told the user they needed to trust the public key that was imported, so they won't see this same thing, instead they'll get "WARNING: This key is not certified with a trusted signature!" included in the output.

Dominant language
Go
Stars
8.2k
Forks
2.3k
Avg merge
1d 11h
Merged PRs (30d)
103

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lightningnetwork/lnd

All issues in lightningnetwork/lnd

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.