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
Hi,
I was trying to remove a user the other day and discovered that listing auth/token/lookup-accessor always fails with a timeout. I then checked the audit log and realized that I had 200k(!) token accessors and the list command was taking quite long. Upon further investigation, a lot of the accessors point to already expired tokens. I think the large amount comes from the fact that we generate one time approle tokens that expires after a certain number of uses.
The question is, is there a convenient way to "garbage collect" these token accessors so that managing the valid accessors is easier?
Thanks.
Yu Zhou
unread,
Mar 9, 2018, 1:45:42 PM3/9/18
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
Correction: the listing command was on auth/token/accessors.
Vishal Nayak
unread,
Mar 9, 2018, 6:15:42 PM3/9/18
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,
What version of Vault are you using? We have seen similar issues in
the past wherein the accessor entries were not getting properly
cleared out. The issue was resolved and an endpoint (auth/token/tidy)
was added to bring the storage back to a sane state. Could you please
try that and see if it resolves the problem?
Also, since there are a lot of entries, even this endpoint might
timeout before it scans all of the entries. You might have to run it
multiple times.
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
Hi Vishal,
Thanks for your quick response. I tried running the command you suggested, and it did timeout as well. So I ran it multiple times. Each time it ran I can see that vault/consul started to consume significant CPU/mem. But even after ~20 runs, I'm still getting timeout on the list command.
Any suggestions? I ran the following command:
vault write -f auth/token/tidy
Vishal Nayak
unread,
Mar 18, 2018, 4:43:28 PM3/18/18
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,
Which version of Vault are you using? Did running the tidy operation
reduce the number of stale entries in the storage?