Skip to content

Commit

Permalink
blob/gcsblob: Use less-empty creds for unauthenticated mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
vangent committed Sep 16, 2023
1 parent 62b022f commit a1f42cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blob/gcsblob/gcsblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (o *lazyCredsOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*blob.
fmt.Printf("Warning: unable to load GCP Default Credentials: %v", err)
// Use empty credentials, in case the user isn't going to actually use
// them; e.g., getting signed URLs with GoogleAccessID=-.
creds = &google.Credentials{}
creds, _ = google.CredentialsFromJSON(ctx, []byte(`{"type": "service_account"}`))
}

// Populate default values from credentials files, where available.
Expand Down

0 comments on commit a1f42cf

Please sign in to comment.