question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Security] git verify-commit everywhere

See original GitHub issue

Introducing 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:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rootzollcommented, Nov 30, 2021

PR merged for final testing

0reactions
rootzollcommented, Feb 17, 2022

Works so far good with RCs … closing foir release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found