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.

Add verification code to RC email

See original GitHub issue

The script that generates an RC and an email gives a suggested command to download the staging repo. If could also suggest a short script to verify sigs and hashes like the following.

for file in $(find . -type f -regex '.*\.\(pom\|jar\|gz\)'); do
  echo $file
  gpg --verify "$file".asc $file
  diff -Z "$file".md5 <(md5sum $file | cut -d ' ' -f 1)
  diff -Z "$file".sha1 <(sha1sum $file | cut -d ' ' -f 1)
done

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
keith-turnercommented, Oct 24, 2016

Instead of putting this info in the email, we should have the email point to web page with information on how to download and verify the release.

0reactions
ctubbsiicommented, Jun 13, 2017

Here’s one that checks all files downloaded:

function checkFile {
  echo '='
  echo "$1"
  gpg2 --verify "$1".asc "$1"
  echo "$(cat "$1".md5) *$1" >> MD5SUM
  echo "$(cat "$1".sha1) *$1" >> SHA1SUM
}
export -f checkFile
rm MD5SUM SHA1SUM
find . -type f -not -name '*.asc' -not -name '*.md5' -not -name '*.sha1' -exec bash -c 'checkFile "$0"' {} \;
md5sum --quiet -c MD5SUM
sha1sum --quiet -c SHA1SUM

This assumes the download of the staging repo skipped webserver generated content, and maven repo content, as in:

    wget -erobots=off --no-verbose \
      --recursive --level inf --no-parent --no-host-directories \
      --reject 'index.html,maven-metadata.xml*,archetype-catalog.xml' \
      -P download \
      "$url" 
Read more comments on GitHub >

github_iconTop Results From Across the Web

Get a verification code and sign in with two-factor authentication
With two-factor authentication, you'll need a verification code to sign in with your Apple ID on a new device or browser.
Read more >
Verify your Google Account
Open the email and find the verification code. To finish creating your account, enter the verification code when prompted. To see if your...
Read more >
Unable to sign in to RingCentral
The two-step verification process generates an email or text message with a security code. If you don't receive either an email or a...
Read more >
Microsoft account security info & verification codes
Select Add a new way to sign in or verify then choose how you would like to receive security codes. Tip: The email...
Read more >
Manage Your Credit Card Account - Bank of America
Security Guarantee. You can confidently use Online or Mobile Banking ...
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