I'm going to go with the
suggestion in the docs (under "Root Tokens") and stop using root tokens (and create them if needed using vault generate-root.)
So... is there any way to list accessors for tokens of a particular type, for example accessors for root tokens?
It's not hard to use /v1/auth/token/accessors?list=true to get accessors to all tokens, but that can be a big list, and I'm not interested in revoking all of them.
I can also revoke my favorite root token (probably with /v1/auth/token/revoke-self) and hope that the few others I created are descendants of it, but that is not a very authoritative technique.
I can also write code that gets the accessors and then walks through all of them and hit /v1/auth/token/lookup-accessor looking for "policies": [ "root" ], but I'm lazy!
Thanks for suggestions!
-Randy