fix(opax): accept GCE VM metadata credentials for ADC check

This commit is contained in:
Chris Christiansen 2026-05-30 14:47:15 +00:00
parent 8f344823ef
commit fbdbf14552

View File

@ -68,7 +68,7 @@ if [[ -z "${OPAX_LOADED-}" ]]; then
true
run_check "Application Default Credentials (ADC)" \
"gcloud auth application-default print-access-token --quiet" \
"curl -sf -H 'Metadata-Flavor: Google' 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token' | grep -q access_token || gcloud auth application-default print-access-token --quiet" \
"Run: gcloud auth application-default login" \
true