Ask Your Question
0

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

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

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
2

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 79 times

Last updated: Oct 14 '15