Skip to content

Commit e79a864

Browse files
authored
chore: Bump to major version 3 (#543)
1 parent dd1ae9a commit e79a864

21 files changed

+48
-35
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ For detailed info about using chamber, please read
88

99
## v3.0 Breaking Changes
1010

11-
_Version 3.0 has not yet been released. Changes described here are forward-looking._
12-
1311
* **Use of the SSM Parameter Store's path-based API is now required.** Support
1412
added in v2.0 to avoid it has been removed. The `CHAMBER_NO_PATHS` environment
1513
variable no longer has any effect. You must migrate to the new storage format
16-
using the instructions below.
14+
using the instructions below, using a 2.x version of chamber.
1715
* **The `--min-throttle-delay` option no longer has any effect.** Support for
1816
specifying a minimum throttle delay has been removed from the underlying AWS
1917
SDK with no direct replacement. Instead, set the new `--retry-mode` option to
2018
"adaptive" to use an experimental model that accounts for throttling errors.
19+
* **Context arguments are required for `Store` methods.** This is a consequence
20+
of migrating to a new AWS SDK. This change has no effect for CLI users, but
21+
those using chamber as a library must update their code to pass contexts.
22+
* **The deprecated `NewS3Store` constructor has been removed.** Use
23+
`NewS3StoreWithBucket` instead.
2124

2225
## v2.0 Breaking Changes
2326

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

5457
```bash
55-
go install github.com/segmentio/chamber/v2@latest
58+
go install github.com/segmentio/chamber/v3@latest
5659
```
5760

5861
### Caveat About `chamber version` and `go install`
@@ -443,7 +446,7 @@ you can use `CHAMBER_AWS_REGION` to override just for chamber.
443446
### Custom SSM Endpoint
444447
445448
If you'd like to use a custom SSM endpoint for chamber, you can use `CHAMBER_AWS_SSM_ENDPOINT`
446-
to override AWS default URL.
449+
to override the default URL.
447450
448451
## AWS Secrets Manager
449452
Chamber supports AWS Secrets Manager as an optional backend. For example:
@@ -453,6 +456,16 @@ chamber -b secretsmanager write myservice foo fah
453456
chamber -b secretsmanager write myservice foo2 fah2
454457
```
455458
459+
### Custom Secrets Manager Endpoint
460+
461+
If you'd like to use a custom Secrets Manager endpoint for chamber, you can use
462+
`CHAMBER_AWS_SECRETS_MANAGER_ENDPOINT` to override the default URL.
463+
464+
> [!WARNING]
465+
> Prior to v3.0.0, the endpoint could also be overridden with `CHAMBER_AWS_SSM_ENDPOINT`. This
466+
> has been deprecated and will stop working in a future chamber release. Please use
467+
> `CHAMBER_AWS_SECRETS_MANAGER_ENDPOINT` instead.
468+
456469
## S3 Backend (Experimental)
457470
458471
By default, chamber store secrets in AWS Parameter Store. We now also provide an

cmd/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55

66
analytics "github.com/segmentio/analytics-go/v3"
7-
"github.com/segmentio/chamber/v2/store"
8-
"github.com/segmentio/chamber/v2/utils"
7+
"github.com/segmentio/chamber/v3/store"
8+
"github.com/segmentio/chamber/v3/utils"
99
"github.com/spf13/cobra"
1010
)
1111

cmd/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/alessio/shellescape"
1010
analytics "github.com/segmentio/analytics-go/v3"
11-
"github.com/segmentio/chamber/v2/utils"
11+
"github.com/segmentio/chamber/v3/utils"
1212

1313
"github.com/spf13/cobra"
1414
)

cmd/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88

99
analytics "github.com/segmentio/analytics-go/v3"
10-
"github.com/segmentio/chamber/v2/environ"
10+
"github.com/segmentio/chamber/v3/environ"
1111
"github.com/spf13/cobra"
1212
)
1313

cmd/export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/magiconair/properties"
1313

1414
analytics "github.com/segmentio/analytics-go/v3"
15-
"github.com/segmentio/chamber/v2/utils"
15+
"github.com/segmentio/chamber/v3/utils"
1616
"github.com/spf13/cobra"
1717
"gopkg.in/yaml.v3"
1818
)

cmd/find.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"text/tabwriter"
88

9-
"github.com/segmentio/chamber/v2/store"
9+
"github.com/segmentio/chamber/v3/store"
1010
"github.com/spf13/cobra"
1111
)
1212

cmd/find_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/segmentio/chamber/v2/store"
8+
"github.com/segmentio/chamber/v3/store"
99
"github.com/stretchr/testify/assert"
1010
)
1111

cmd/history.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"text/tabwriter"
77

88
analytics "github.com/segmentio/analytics-go/v3"
9-
"github.com/segmentio/chamber/v2/store"
10-
"github.com/segmentio/chamber/v2/utils"
9+
"github.com/segmentio/chamber/v3/store"
10+
"github.com/segmentio/chamber/v3/utils"
1111
"github.com/spf13/cobra"
1212
)
1313

cmd/import.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"os"
77

88
analytics "github.com/segmentio/analytics-go/v3"
9-
"github.com/segmentio/chamber/v2/store"
10-
"github.com/segmentio/chamber/v2/utils"
9+
"github.com/segmentio/chamber/v3/store"
10+
"github.com/segmentio/chamber/v3/utils"
1111
"github.com/spf13/cobra"
1212
"gopkg.in/yaml.v3"
1313
)

cmd/list-services.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sort"
77
"text/tabwriter"
88

9-
"github.com/segmentio/chamber/v2/utils"
9+
"github.com/segmentio/chamber/v3/utils"
1010
"github.com/spf13/cobra"
1111
)
1212

0 commit comments

Comments
 (0)