--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/4ebc38ae-9a02-474b-826d-74d55480f518%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey Andy,All tokens are subject to a maximum validity duration in Vault, with the exception of root tokens.Even those can and should have limited validity but they can be created in a way that does notexpire. For all other types of tokens, Vault will enforce a lease duration.This means you cannot create a read-only token with a permanent life span. At mostyou can create one with a 30 day duration. If you use an AppID auth type, you can certainlyhave the application login periodically to get a new read-only token, which is the best wayto approach this.Best Regards,Armon Dadgar
vault write auth/app-id/map/app-id/foo value=my-policy token_duration=3600
vault write auth/app-id/map/user-id/bar value=foo token_duration=3600
Andy,It depends on the authentication mechanism that is used if they support renewal or not.For example, LDAP will re-check the credentials to ensure they are still valid and supportsrenewal.Best Regards,Armon Dadgar
Hi Andy,
Different backends support different options. App-ID does not support a duration parameter. You can see the docs for the backend here: https://vaultproject.io/docs/auth/app-id.html
--Jeff
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/036bf7fe-6566-4cc4-90e9-371004183139%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/9f82e790-51b9-43c2-98f4-3edbf6a2e30d%40googlegroups.com.
Those tokens will expire, though, so nothing will become cluttered. That's the point! :-)
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/dd0831d2-020c-4acf-b72e-98abea2e2da5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/036f4220-a115-4c77-81c3-cfa601188ebe%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/036f4220-a115-4c77-81c3-cfa601188ebe%40googlegroups.com.