Skip to content

Commit

Permalink
remove default bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Fuentes committed Aug 2, 2018
1 parent ff5fb8f commit 3d34550
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions store/s3store.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
)

const (
DefaultBucket = "chamber-secrets"
MaximumVersions = 100
BucketEnvVar = "CHAMBER_S3_BUCKET"

Expand Down Expand Up @@ -70,9 +69,10 @@ func NewS3Store(numRetries int) *S3Store {
Region: region,
})

bucket := DefaultBucket
if b, ok := os.LookupEnv(BucketEnvVar); ok {
bucket = b
bucket, ok := os.LookupEnv(BucketEnvVar)
if !ok {
fmt.Fprintf(os.Stderr, "Must set %s for s3 backend\n", BucketEnvVar)
os.Exit(1)
}

return &S3Store{
Expand Down

0 comments on commit 3d34550

Please sign in to comment.