Skip to content

Fix Google Cloud Storage client authorization with non-default credentials

Stan Hu requested to merge sh-fix-gcs-creds into release/2.7-gitlab

Previously we were creating a GCS client with the default application credentials. Now we need to use the OAuth Token Source to ensure we have access.

Also fix error handling of Delete response. The GCS integration tests were failing because storage.Delete returned storage.ErrObjectNotExist if the file were not found, and we need to check that error instead of casting it to googleapi.Error.

Edited by Stan Hu

Merge request reports