Skip to content

Commit

Permalink
Merge pull request #31 from weseek/imprv/disable-credential-passing
Browse files Browse the repository at this point in the history
- Add disable credential passing command
  • Loading branch information
haruhikonyan committed Jul 22, 2020
2 parents a6c8726 + 86dc480 commit ceadf6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/boto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if [ -n "${GCP_PROJECT_ID}" ] && [ -n "${GCP_SERVICE_ACCOUNT_KEY_JSON_PATH}" ];
elif [ -n "${GCP_ACCESS_KEY_ID}" ] && [ -n "${GCP_SECRET_ACCESS_KEY}" ]; then
echo '[DEBUG] Using HMAC authorization'

# Disable credential passing (ref. https://cloud.google.com/storage/docs/gsutil_install)
${GCLOUDCLI} config set pass_credentials_to_gsutil false

# Using HMAC authorization
cat <<- HERE > /root/.boto
[Credentials]
Expand Down

0 comments on commit ceadf6c

Please sign in to comment.