-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login tokens don't expire #4425
Comments
Hello, it sounds like there's a couple different things going on here. Currently, if the token you're logged in with is renewable, the Vault UI will renew that token so long as you're active in the UI. If you're inactive, after a threshold (I believe currently it's 3 minutes), it will stop auto-renewing and show a notice telling you as much. Once the token is expired, the UI will just render an notice that your token is expired and you'll still have to log out and log in. If you're not seeing the described behavior, it's certainly a bug.
This is how all authentication methods other than the token method work - every time you authenticate you will get a new token. |
Thank you for answering on both my threads Meirish! Well, yes i do get the message about me being away, but it says my auth token will be valid for 30 more days, even though i've put in ttl 1 minute, 5 minutes to test. Am i not configuring it correctly? I am using the UI and edit the Access, Authentification, Ldap and set default TTL at 5 minutes and maximum TTL at 10 minutes. After 10 minutes i should be prompted to relog, correct? What would be the equivalent command to do this in CLI to update the current Ldap configuration?Maybe it can work from there. Thank you for taking the time to answer! |
How are you setting the ttl/max ttl? On the mount or inside the ldap config? |
Hi Jefferai, thank you for answering! I am editing in the Access tab, Auth Methods category, ldap "folder" ( the other one is "token" ). I guess it is mount, but i am not very familiar and i don't want to confuse you. This is the copy paste from where i can configure: Ldap |
I can't reproduce:
As you can see, after successful login, the token gets a 5m ttl and attempts to go beyond that are not allowed. |
Thank you for helping me Jeff! I've used the tune command and it works correctly after it, but the config in the UI is still bugged. I've tuned for 2 minutes expiration time, but in the UI it remains with 10minutes as before, but it does work correctly, logging me off after 2 minutes. I will configure using the tune command and thank you very much for helping me! Best regards, |
Could be a bug in the UI (sounds like it). I’ll double-check. |
Yep, that was the case - the UI saves TTLs correctly when enabling an auth method, but not on mount tunes. Fixed in the linked PR though - thanks for reporting! |
Hi,
I am logging using LDAP, with File backend configured, and i want users to be forced to reconnect every 10 minutes if there is no movement in the UI Vault, but no matter what TTL and maximum TTL i use, i don't get logged out.
If i check my token duration it says it has 30 days life TTL and is renewable.
Also another issue would be that even though i have this 30 day TTL, i get a new token everytime i log in.
How do i implement this or is it a bug?
Vault v0.10.0
Linux
The text was updated successfully, but these errors were encountered: