You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vault
I have a situation where I am running docker containers which fetch secrets from vault during start up of a container. So in this case, even if the max TTL of the auth token is reached, it doesn't affect adversely as I will have all the secrets available in memory of container locally.
However, I am wondering if the secrets also have a max TTL just like tokens? In other words, will all the secrets expire after a fixed period of time? That is bad for me, since a container that starts up after all secrets have expired will have no secrets to fetch in vault.
Jeff Mitchell
unread,
Dec 19, 2016, 3:40:05 PM12/19/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vault...@googlegroups.com
Hi PJ,
It depends on the backend. If the response that comes back includes a
non-empty lease_id in the JSON, it's a secret where Vault is managing
the lifetime. As of now, only the KV (generic), transit, and PKI
backends do not return leases -- the rest of the secrets will be
revoked when the TTL runs out.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vault
Thank you for the insights Jeff.
So in case of consul secret backend, does consul token have a max TTL? Is it derived from mount's max TTL?
Jeff Mitchell
unread,
Dec 28, 2016, 11:09:12 AM12/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vault...@googlegroups.com
Hi PJ,
The lease for the Consul token will have a max TTL after which it will
be revoked (although if a regular TTL expires without being renewed
this can happen earlier). There's a detailed write-up at
https://www.vaultproject.io/docs/concepts/tokens.html if you like!