Skip to content

Commit

Permalink
chore: Bump to major version 3 (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavanki authored Aug 8, 2024
1 parent dd1ae9a commit e79a864
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 35 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ For detailed info about using chamber, please read

## v3.0 Breaking Changes

_Version 3.0 has not yet been released. Changes described here are forward-looking._

* **Use of the SSM Parameter Store's path-based API is now required.** Support
added in v2.0 to avoid it has been removed. The `CHAMBER_NO_PATHS` environment
variable no longer has any effect. You must migrate to the new storage format
using the instructions below.
using the instructions below, using a 2.x version of chamber.
* **The `--min-throttle-delay` option no longer has any effect.** Support for
specifying a minimum throttle delay has been removed from the underlying AWS
SDK with no direct replacement. Instead, set the new `--retry-mode` option to
"adaptive" to use an experimental model that accounts for throttling errors.
* **Context arguments are required for `Store` methods.** This is a consequence
of migrating to a new AWS SDK. This change has no effect for CLI users, but
those using chamber as a library must update their code to pass contexts.
* **The deprecated `NewS3Store` constructor has been removed.** Use
`NewS3StoreWithBucket` instead.

## v2.0 Breaking Changes

Expand Down Expand Up @@ -52,7 +55,7 @@ at the time of release.
If you have a functional go environment, you can install with:

```bash
go install github.com/segmentio/chamber/v2@latest
go install github.com/segmentio/chamber/v3@latest
```

### Caveat About `chamber version` and `go install`
Expand Down Expand Up @@ -443,7 +446,7 @@ you can use `CHAMBER_AWS_REGION` to override just for chamber.
### Custom SSM Endpoint
If you'd like to use a custom SSM endpoint for chamber, you can use `CHAMBER_AWS_SSM_ENDPOINT`
to override AWS default URL.
to override the default URL.
## AWS Secrets Manager
Chamber supports AWS Secrets Manager as an optional backend. For example:
Expand All @@ -453,6 +456,16 @@ chamber -b secretsmanager write myservice foo fah
chamber -b secretsmanager write myservice foo2 fah2
```
### Custom Secrets Manager Endpoint
If you'd like to use a custom Secrets Manager endpoint for chamber, you can use
`CHAMBER_AWS_SECRETS_MANAGER_ENDPOINT` to override the default URL.
> [!WARNING]
> Prior to v3.0.0, the endpoint could also be overridden with `CHAMBER_AWS_SSM_ENDPOINT`. This
> has been deprecated and will stop working in a future chamber release. Please use
> `CHAMBER_AWS_SECRETS_MANAGER_ENDPOINT` instead.
## S3 Backend (Experimental)
By default, chamber store secrets in AWS Parameter Store. We now also provide an
Expand Down
4 changes: 2 additions & 2 deletions cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/alessio/shellescape"
analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/utils"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/environ"
"github.com/segmentio/chamber/v3/environ"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/magiconair/properties"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"text/tabwriter"

"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v3/store"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/find_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v3/store"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"text/tabwriter"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/list-services.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"text/tabwriter"

"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"text/tabwriter"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"text/tabwriter"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/aws/aws-sdk-go-v2/aws"
analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v3/store"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/tag-delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/tag-read.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"text/tabwriter"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/tag-write.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"text/tabwriter"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

analytics "github.com/segmentio/analytics-go/v3"
"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions environ/environ.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strings"

"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v2/utils"
"github.com/segmentio/chamber/v3/store"
"github.com/segmentio/chamber/v3/utils"
)

// environ is a slice of strings representing the environment, in the form "key=value".
Expand Down
2 changes: 1 addition & 1 deletion environ/environ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sort"
"testing"

"github.com/segmentio/chamber/v2/store"
"github.com/segmentio/chamber/v3/store"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/segmentio/chamber/v2
module github.com/segmentio/chamber/v3

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/segmentio/chamber/v2/cmd"
"github.com/segmentio/chamber/v3/cmd"
)

var (
Expand Down

0 comments on commit e79a864

Please sign in to comment.