From 74c80ddaec3d1a4d21a756465aa58fdf273ecf5a Mon Sep 17 00:00:00 2001 From: Michael Hebelka Date: Fri, 7 Dec 2018 18:26:09 -0500 Subject: [PATCH] Add scope to oauth token for gcs backup storage client Signed-off-by: Michael Hebelka --- go/vt/mysqlctl/gcsbackupstorage/gcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/mysqlctl/gcsbackupstorage/gcs.go b/go/vt/mysqlctl/gcsbackupstorage/gcs.go index b6fbcfdc69c..54bea5aa3af 100644 --- a/go/vt/mysqlctl/gcsbackupstorage/gcs.go +++ b/go/vt/mysqlctl/gcsbackupstorage/gcs.go @@ -230,7 +230,7 @@ func (bs *GCSBackupStorage) client(ctx context.Context) (*storage.Client, error) // the creation context, so we create a new one, but // keep the span information. ctx = trace.CopySpan(context.Background(), ctx) - authClient, err := google.DefaultClient(ctx) + authClient, err := google.DefaultClient(ctx, storage.ScopeFullControl) if err != nil { return nil, err }