Skip to content

Commit

Permalink
Merge pull request #2229 from kinvolk/alban/revert-setup-circleci-sec…
Browse files Browse the repository at this point in the history
…rets

Revert "bin/setup-circleci-secrets: possibly use generic credentials"
  • Loading branch information
Alfonso Acosta authored Feb 10, 2017
2 parents e7b8c59 + beec651 commit c179ce6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
16 changes: 3 additions & 13 deletions bin/setup-circleci-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ set -eu
# openssl enc -in do-setup-circleci-secrets.orig -out setup-circleci-secrets.orig -e -aes256 -pass stdin
# openssl base64 < setup-circleci-secrets.orig

echo "Checking script..."

if [ -z "${SECRET_SCRIPT}" ]; then
read -r -d '' SECRET_SCRIPT <<EOF
openssl base64 -d <<EOF | openssl enc \
-out bin/do-setup-circleci-secrets \
-d -aes256 -pass pass:"$1"
U2FsdGVkX193YHZJXNzxU9GqigQaXWrA0AKd+BIjRcx7bmmKn/zSgOv+FfApRRjn
KGBd2ulZw9CwsftX0HWHzVdtpgqbJUW+FEma8eNldau4/f+T+yWTVpCNQXGc3DvB
cWYhmkoTfGWmI2v/0/Bv2TYkw7MAfjCocdluFAv7sSvYnSgIjoYxD4XXkTjLWy1P
Expand Down Expand Up @@ -105,14 +104,5 @@ LrFefj0OWhRx4w7pblAnZqUSYunhhhUYimEG40GkM1ZI9b0vDmbgQP/UxMj1M2yB
aVSSW69rmjO7xjVuJnm+wNq2P3H3MFB5MaswXrn2Ah83K4oegpannt7H1nG+mWh/
DJcoVj5UyCTFEyZMdtVWloF4TOVODNNxA+zAE9fUgrI=
EOF
fi

echo "Decrypting script..."

echo "${SECRET_SCRIPT}" | base64 -d | openssl enc \
-out bin/do-setup-circleci-secrets \
-d -aes256 -pass pass:"$1"

echo "Script decrypted"

exec sh bin/do-setup-circleci-secrets
4 changes: 2 additions & 2 deletions integration/gce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -e
# shellcheck disable=SC1091
. ./config.sh

export PROJECT="${PROJECT:-scope-integration-tests}"
export TEMPLATE_NAME="${TEMPLATE_NAME:-test-template-5}"
export PROJECT=scope-integration-tests
export TEMPLATE_NAME="test-template-5"
export NUM_HOSTS=5
# shellcheck disable=SC1091
. "../tools/integration/gce.sh" "$@"

0 comments on commit c179ce6

Please sign in to comment.