This repository was archived by the owner on Jan 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +26
-8
lines changed
Expand file tree Collapse file tree 3 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,19 @@ WORKDIR /home/keybase
1313# Key fingerprint from https://keybase.io/docs/server_security/our_code_signing_key
1414RUN curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
1515RUN curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb.sig
16- RUN gpg --keyserver pgp.mit.edu --recv-keys "222B85B0F90BE2D24CFEB93F47484E50656D16C7" || \
17- gpg --keyserver keyserver.pgp.com --recv-keys "222B85B0F90BE2D24CFEB93F47484E50656D16C7" || \
18- gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "222B85B0F90BE2D24CFEB93F47484E50656D16C7"
16+ # GPG has no easy way of getting the ID associated with a key, so we do this :(
17+ # This line will error if the fingerprint of the key in the file does not match
18+ # Key fingerprint from https://keybase.io/docs/server_security/our_code_signing_key
19+ # Note that we do it this way rather than via the key servers since pulling from the
20+ # key servers caused a flakey build
21+ RUN gpg --with-colons --fingerprint $( \
22+ curl -sSL https://keybase.io/docs/server_security/code_signing_key.asc | \
23+ gpg --import 2>&1 | \
24+ grep -v created | \
25+ head -n 1 | \
26+ cut -d ' ' -f 3 | \
27+ cut -d ':' -f 1 \
28+ ) | grep fpr | cut -d ':' -f 10 | grep 222B85B0F90BE2D24CFEB93F47484E50656D16C7
1929RUN gpg --verify keybase_amd64.deb.sig keybase_amd64.deb
2030
2131# Silence the error from dpkg about failing to configure keybase since `apt-get install -f` fixes it
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ if [ -z "$CIRCLECI" ]; then
1717 cd ../
1818fi
1919
20-
2120# Ensure we have the correct environment variables
2221if [[ -f " tests/env.sh" ]]; then
2322 echo " env.sh already exists, skipping configuring new accounts..."
Original file line number Diff line number Diff line change @@ -10,12 +10,21 @@ USER keybase
1010WORKDIR /home/keybase
1111
1212# Download and verify the deb
13- # Key fingerprint from https://keybase.io/docs/server_security/our_code_signing_key
1413RUN curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
1514RUN curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb.sig
16- RUN gpg --keyserver pgp.mit.edu --recv-keys "222B85B0F90BE2D24CFEB93F47484E50656D16C7" || \
17- gpg --keyserver keyserver.pgp.com --recv-keys "222B85B0F90BE2D24CFEB93F47484E50656D16C7" || \
18- gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "222B85B0F90BE2D24CFEB93F47484E50656D16C7"
15+ # GPG has no easy way of getting the ID associated with a key, so we do this :(
16+ # This line will error if the fingerprint of the key in the file does not match
17+ # Key fingerprint from https://keybase.io/docs/server_security/our_code_signing_key
18+ # Note that we do it this way rather than via the key servers since pulling from the
19+ # key servers caused a flakey build
20+ RUN gpg --with-colons --fingerprint $( \
21+ curl -sSL https://keybase.io/docs/server_security/code_signing_key.asc | \
22+ gpg --import 2>&1 | \
23+ grep -v created | \
24+ head -n 1 | \
25+ cut -d ' ' -f 3 | \
26+ cut -d ':' -f 1 \
27+ ) | grep fpr | cut -d ':' -f 10 | grep 222B85B0F90BE2D24CFEB93F47484E50656D16C7
1928RUN gpg --verify keybase_amd64.deb.sig keybase_amd64.deb
2029
2130# Silence the error from dpkg about failing to configure keybase since `apt-get install -f` fixes it
You can’t perform that action at this time.
0 commit comments