How many auth-tokens can be created by an user/admin?

asked 2015-10-14 05:06:26 -0600

MrFirepak gravatar image

I'm creating a performance monitoring tool for OpenStack. What I'm doing right now is, collecting data from OpenStack every 5min once, through RESTAPI, by creating authentication token. But not revoking the token I have created. Is this correct approach? Is there any restriction on creating no.of tokens? What if a token created and not revoked? Will this cause any problem? Please suggest, the best practice on creating authentication token!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-14 12:00:29 -0600

updated 2015-10-14 12:01:27 -0600

Hi, There is no restriction in creating auth token for multiple times whereas by default keystone persist tokens in database even if it is expired and this might grow huge as you generate every 5mins. I would recommend to reuse the token and create if its gets expired or else just the flush the expired token stored in database periodically by executing below command

keystone-manage token_flush
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-10-14 05:06:26 -0600

Seen: 140 times

Last updated: Oct 14 '15