Expired admin token not auto-refreshed

Bug #923573 reported by Gabe Westmaas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Dan Prince

Bug Description

If an admin token is expired, then glance will not function correctly since the admin user is not able to connect to keystone. The admin_user and admin_password seem to not be utilized which is how a new token could be retrieved.

Revision history for this message
Jay Pipes (jaypipes) wrote :

Hi Gabe!

I don't quite understand this one. What is an admin token?

-jay

Revision history for this message
Gabe Westmaas (westmaas) wrote :

Hm, just realized this is probably on the keystone project instead. An admin_token is the token the middleware uses to authenticate to the identity service so that it can validate a user token.

I also was having some discussions around this, and giving the admin user and password is actually a lot more powerful than just giving it a token - I'm not sure what people's security policies will allow, but maybe a better approach is to use an admin token that doesn't expire automatically instead of having it auto-renew the token.

affects: glance → keystone
Dan Prince (dan-prince)
Changed in keystone:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :

+1 for either A) tokens without expiration dates ("api keys"?) or, B) actually authenticating with keystone using credentials to retrieve an admin token whenever necessary.

Keystone supports (B) today; the middleware just has to take advantage of it.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3669

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/3669
Committed: http://github.com/openstack/keystone/commit/f76477c7b19aeade22ef00bccc1b652cc37d7349
Submitter: Jenkins
Branch: master

commit f76477c7b19aeade22ef00bccc1b652cc37d7349
Author: Dan Prince <email address hidden>
Date: Wed Feb 1 15:17:26 2012 -0500

    Update auth_token middleware to support creds.

    Updates to the auth_token middleware to support admin_user and
    admin_password in addition to the existing admin_token. If an
    admin_token isn't specified then a call to obtain the admin_token
    is made. If an admin token expires the username and password can
    also be used to obtain a fresh token.

    Also, added a test for case for middleware where token isn't
    specified.

    Fixes LP Bug #923573.

    Change-Id: I643efec310cbb9a175607cc17f0c077f261b1d6d

Changed in keystone:
status: In Progress → Fix Committed
Joseph Heck (heckj)
Changed in keystone:
milestone: none → essex-4
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.