Skip to content

Commit

Permalink
Update token renew docs (#12572)
Browse files Browse the repository at this point in the history
* Update docs for token renew api and cli

* Clarify api docs for renew/renew-self

* Update wording around periodic tokens
  • Loading branch information
pmmukh committed Sep 16, 2021
1 parent 681a931 commit fdd7599
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions command/token_renew.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ func (c *TokenRenewCommand) Flags() *FlagSets {
Default: 0,
EnvVar: "",
Completion: complete.PredictAnything,
Usage: "Request a specific increment for renewal. Vault is not required " +
"to honor this request. If not supplied, Vault will use the default " +
"TTL. This is specified as a numeric string with suffix like \"30s\" " +
"or \"5m\".",
Usage: "Request a specific increment for renewal. This increment may " +
"not be honored, for instance in the case of periodic tokens. If not " +
"supplied, Vault will use the default TTL. This is specified as a " +
"numeric string with suffix like \"30s\" or \"5m\".",
})

return set
Expand Down
12 changes: 8 additions & 4 deletions website/content/api-docs/auth/token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,10 @@ if there is a lease associated with it.

- `token` `(string: <required>)` - Token to renew. This can be part of the URL
or the body.
- `increment` `(string: "")` - An optional requested lease increment can be
provided. This increment may be ignored.
- `increment` `(string: "")` - An optional requested increment duration can be
provided. This increment may not be honored, for instance in the case of periodic tokens.
If not supplied, Vault will use the default TTL. This is specified as a numeric string
with suffix like "30s" or "5m".

### Sample Payload

Expand Down Expand Up @@ -386,8 +388,10 @@ possible only if there is a lease associated with it.

### Parameters

- `increment` `(string: "")` - An optional requested lease increment can be
provided. This increment may be ignored.
- `increment` `(string: "")` - An optional requested increment duration can be
provided. This increment may not be honored, for instance in the case of periodic tokens.
If not supplied, Vault will use the default TTL. This is specified as a numeric string
with suffix like "30s" or "5m".

### Sample Payload

Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/commands/token/renew.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ flags](/docs/commands) included on all commands.
### Command Options

- `-increment` `(duration: "")` - Request a specific increment for renewal.
Vault is not required to honor this request. If not supplied, Vault will use
Vault will not honor this request for periodic tokens. If not supplied, Vault will use
the default TTL. This is specified as a numeric string with suffix like "30s"
or "5m". This is aliased as "-i".

0 comments on commit fdd7599

Please sign in to comment.