Skip to content

Commit

Permalink
fix(container-pull): fixes issue with hardcoded registry (#338)
Browse files Browse the repository at this point in the history
This prevents govcloud users from having a correct pull token generated.
  • Loading branch information
carlosmmatos authored Jul 24, 2024
1 parent d819002 commit ad16e30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ if [ "$PULLTOKEN" ]; then
PARTIALPULLTOKEN=$(printf "%s:%s" "$ART_USERNAME" "$ART_PASSWORD" | base64 $BASE64_OPT)
# Generate and display token
# shellcheck disable=SC2086
IMAGE_PULL_TOKEN=$(printf '{"auths": { "registry.crowdstrike.com": { "auth": "%s" } } }' "$PARTIALPULLTOKEN" | base64 $BASE64_OPT)
IMAGE_PULL_TOKEN=$(printf '{"auths": { "%s": { "auth": "%s" } } }' "${cs_registry}" "$PARTIALPULLTOKEN" | base64 $BASE64_OPT)
echo "${IMAGE_PULL_TOKEN}"
exit 0
fi
Expand Down

0 comments on commit ad16e30

Please sign in to comment.