Skip to content

Commit 5382ed9

Browse files
toppercodesampagent
andcommitted
axiom_token: default rotation grace period to 48h
Amp-Thread-ID: https://ampcode.com/threads/T-019cb105-9ca1-77fd-86f5-da5b5605cb01 Co-authored-by: Amp <amp@ampcode.com>
1 parent 3359641 commit 5382ed9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

axiom/resource_tokens.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ const (
3434
Read = "read"
3535
Update = "update"
3636
Delete = "delete"
37-
defaultRotationGracePeriod = 5 * time.Minute
37+
defaultRotationGracePeriod = 48 * time.Hour
3838
rotationGracePeriodField = "rotation_grace_period"
39-
rotationGracePeriodDescription = "How long the previous token remains valid when this token is regenerated during an update (for example: 30s, 5m, 1h). Defaults to 5m when omitted."
39+
rotationGracePeriodDescription = "How long the previous token remains valid when this token is regenerated during an update (for example: 30s, 5m, 1h). Defaults to 48h when omitted."
4040
)
4141

4242
func NewTokenResource() resource.Resource {

docs/resources/token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ description: |-
2525
- `description` (String) The description of the token
2626
- `expires_at` (String) The time when the token expires. If not set, the token will not expire. Must be in RFC3339 format
2727
- `org_capabilities` (Attributes) The organisation capabilities available to the token (see [below for nested schema](#nestedatt--org_capabilities))
28-
- `rotation_grace_period` (String, Write-Only) How long the previous token remains valid when this token is regenerated during an update (for example: 30s, 5m, 1h). Defaults to 5m when omitted.
28+
- `rotation_grace_period` (String, Write-Only) How long the previous token remains valid when this token is regenerated during an update (for example: 30s, 5m, 1h). Defaults to 48h when omitted.
2929

3030
### Read-Only
3131

0 commit comments

Comments
 (0)