Skip to content

Commit 9018c86

Browse files
author
dlorenc
authored
Explicitly disable auth for the sigstore-tuf-root. (#528)
I had expired credentials that were causing this to fail. The bucket is public, so we should just not use auth (which apparently requires being explicit). Signed-off-by: Dan Lorenc <[email protected]>
1 parent bfd42e5 commit 9018c86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ require (
2828
golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985 // indirect
2929
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
3030
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b
31+
google.golang.org/api v0.50.0
3132
k8s.io/api v0.22.0
3233
k8s.io/apimachinery v0.22.0
3334
k8s.io/client-go v0.22.0

pkg/cosign/tuf/store.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222

2323
"cloud.google.com/go/storage"
2424
"github.com/theupdateframework/go-tuf/client"
25+
"google.golang.org/api/option"
2526
)
2627

2728
type GcsRemoteOptions struct {
@@ -47,7 +48,7 @@ func GcsRemoteStore(ctx context.Context, bucket string, opts *GcsRemoteOptions,
4748
store := gcsRemoteStore{ctx: ctx, bucket: bucket, opts: opts, client: client}
4849
if client == nil {
4950
var err error
50-
store.client, err = storage.NewClient(ctx)
51+
store.client, err = storage.NewClient(ctx, option.WithoutAuthentication())
5152
if err != nil {
5253
return nil, err
5354
}

0 commit comments

Comments
 (0)