Repository navigation
feat(web): stop GitHub merge commits reading as Unverified - #701
Conversation
History imported from GitHub showed every merge as a red-flag "Unverified": GitHub signs web merges with its RSA web-flow key, which no profile can list. - A signature naming GitHub's web-flow key is checked against the keys GitHub publishes (bundled); one that checks reads "Signed by GitHub", one that does not is a bad signature. - A signature by a key on nobody's profile reads "Signed", neutral, and says Forge can't name the signer. The shared verdict (lib/rules/signature.ts, dg verify-commit) is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ey for unchecked OpenPGP An OpenPGP signature by a key on nobody's profile is never checked, so it reads "Unknown key" rather than "Signed". GitHub's 2017 key is dropped: it was retired in a precautionary rotation and a signature's date is the signer's to set. The service check re-checks the signature type and hash. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
A repository imported from GitHub showed every merge commit as Unverified. GitHub signs merges and edits made on github.com with its web-flow key. That is an RSA key, which can't go on a Forge profile: it doesn't fit a 300-byte entry, and the verifier only accepts Ed25519/ECDSA anyway. So no maintainer could fix the badge, and imported history looked tampered with.
What this changes:
968479A1…BB952194), the browser checks it with OpenPGP.js against the key GitHub publishes at github.com/web-flow.gpg, which is now bundled. A signature that names the key but does not check reads as a bad signature (red). The panel says GitHub signed it, not which member made it, and that GitHub does not vouch for the author shown.4AEE18F83AFDEB23) is deliberately not trusted. GitHub retired it in a precautionary rotation, and a signature's date is the signer's to set, so a backdated forgery made with it would still check.lib/rules/signature.ts, its Rust twin, the vectors, anddg verify-commit) is unchanged, and the guide says so.Tests: unit tests on real commit bytes cover:
The full web unit suite, typecheck, lint and copy lint all pass.
UI proof
The commit list of the mainnet
dash-forgerepo, with the owner's signing keys on their profile.Before (live site, master):
After (this branch, same repo and data):
The panel on a GitHub-signed merge:
🤖 Generated with Claude Code
Summary by CodeRabbit