mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Merge pull request #1733 from hashicorp/f-vault-renew-root
Renew root tokens where applicable
This commit is contained in:
@@ -331,7 +331,7 @@ OUTER:
|
||||
v.client.SetWrappingLookupFunc(v.getWrappingFn())
|
||||
|
||||
// If we are given a non-root token, start renewing it
|
||||
if v.tokenData.Root {
|
||||
if v.tokenData.Root && v.tokenData.CreationTTL == 0 {
|
||||
v.logger.Printf("[DEBUG] vault: not renewing token as it is root")
|
||||
} else {
|
||||
v.logger.Printf("[DEBUG] vault: token lease duration is %v",
|
||||
|
||||
Reference in New Issue
Block a user