[Security] git verify-commit everywhere
See original GitHub issueIntroducing a script https://github.com/rootzoll/raspiblitz/pull/2683/commits/d51440216436acbf82f16e4728f29b3ea0ec1fca to verify the checked out git commits with the BTCpay update: https://github.com/rootzoll/raspiblitz/pull/2683
All scripts installing services built from the source code can have a header like:
PGPsigner="nicolasdorier"
PGPpubkeyLink="https://keybase.io/nicolasdorier/pgp_keys.asc"
PGPpubkeyFingerprint="AB4CFA9895ACA0DBE27F6B346618763EF09186FE"
and can run:
# pin version
sudo -u $installingUser git reset --hard $version
# PGP verify
sudo -u $installingUser /home/admin/config.scripts/blitz.git-verify.sh "${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
to reduce trust in the download source.
Failing to verify the PGP signature on the checked commit breaks the installation.
Can implement this on all services as we go on applying the pinned updates.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How (and why) to sign Git commits - With Blue Ink
Authenticate your commits, plus get them the "Verified" badge on GitHub.
Read more >Signed Git commits in VS Code - DEV Community
This means, Git provides the possibility to verify that commits are actually from a trusted source using the GNU Privacy Guard (GPG).
Read more >Show whether commits are verified with GPG key on UI
It would be nice if Azure DevOps would show whether a commit is verified (has a valid GPG key that signed the commit)...
Read more >Git - git-verify-commit Documentation - Git SCM
Validates the GPG signature created by git commit -S. OPTIONS. --raw. Print the raw gpg status output to standard error instead of the...
Read more >502060 – git update hook to validate gpg signatures on commits
The Git commit-signing design explicitly signs the entire commit, including blob contents, to avoid this security problem.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

PR merged for final testing
Works so far good with RCs … closing foir release.