Better documentation around increment

Fixes #5701
This commit is contained in:
Jeff Mitchell 2018-11-06 17:42:20 -05:00
parent 4b1d816be7
commit 6e4f990902

View file

@ -51,9 +51,15 @@ Along with the lease ID, a _lease duration_ can be read. The lease duration is
a Time To Live value: the time in seconds for which the lease is valid. A a Time To Live value: the time in seconds for which the lease is valid. A
consumer of this secret must renew the lease within that time. consumer of this secret must renew the lease within that time.
When renewing the lease, the user can request a specific amount of time from When renewing the lease, the user can request a specific amount of time they
now to extend the lease. For example: `vault renew my-lease-id 3600` would want remaining on the lease, termed the `increment`. This is not an increment
request to extend the lease of "my-lease-id" by 1 hour (3600 seconds). at the end of the current TTL; it is an increment _from the current time_. For
example, `vault renew my-lease-id 3600` would request that the TTL of the lease
be adjusted to 1 hour (3600 seconds). Having the increment be rooted at the
current time instead of the end of the lease makes it easy for users to reduce
the length of leases if they don't actually need credentials for the full
possible lease period, allowing those credentials to expire sooner and
resources to be cleaned up earlier.
The requested increment is completely advisory. The backend in charge of the The requested increment is completely advisory. The backend in charge of the
secret can choose to completely ignore it. For most secrets, the backend does secret can choose to completely ignore it. For most secrets, the backend does