Skip to content

Commit

Permalink
gcs: Fixed scopes for inline ServiceAccount option. (#1033)
Browse files Browse the repository at this point in the history
Without this that option was unusable.

Signed-off-by: Bartek Plotka <[email protected]>
  • Loading branch information
bwplotka authored Apr 15, 2019
1 parent dda20f0 commit 0571195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/objstore/gcs/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewBucket(ctx context.Context, logger log.Logger, conf []byte, component st

// If ServiceAccount is provided, use them in GCS client, otherwise fallback to Google default logic.
if gc.ServiceAccount != "" {
credentials, err := google.CredentialsFromJSON(ctx, []byte(gc.ServiceAccount))
credentials, err := google.CredentialsFromJSON(ctx, []byte(gc.ServiceAccount), storage.ScopeFullControl)
if err != nil {
return nil, errors.Wrap(err, "failed to create credentials from JSON")
}
Expand Down

0 comments on commit 0571195

Please sign in to comment.