[Openstack-security] [Bug 1174499] Related fix merged to python-keystoneclient (master)

Openstack Gerrit 1174499 at bugs.launchpad.net
Mon May 5 20:20:31 UTC 2014


Reviewed:  https://review.openstack.org/92021
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=f2adf271e719647b8e3f8bd13dce84a35dfcb932
Submitter: Jenkins
Branch:    master

commit f2adf271e719647b8e3f8bd13dce84a35dfcb932
Author: Brant Knudson <bknudson at us.ibm.com>
Date:   Sun May 4 14:52:53 2014 -0500

    Fix client fixtures
    
    Some of the client fixtures used for testing were invalid. v2
    tokens must have 'access'/'token'/'expires', and v3 tokens must
    have 'token'/'expires_at'.
    
    Change-Id: I2614c7deed47c9758c2031418110108308634296
    Related-Bug: #1174499

-- 
You received this bug notification because you are a member of OpenStack
Security Group, which is subscribed to OpenStack.
https://bugs.launchpad.net/bugs/1174499

Title:
  Keystone token hashing is MD5

Status in OpenStack Dashboard (Horizon):
  New
Status in OpenStack Identity (Keystone):
  Fix Committed
Status in OpenStack API documentation site:
  Confirmed
Status in Python client library for Keystone:
  In Progress

Bug description:
  https://github.com/openstack/python-
  keystoneclient/blob/master/keystoneclient/common/cms.py

  def cms_hash_token(token_id):
      """
  return: for ans1_token, returns the hash of the passed in token
  otherwise, returns what it was passed in.
  """
      if token_id is None:
          return None
      if is_ans1_token(token_id):
          hasher = hashlib.md5()
          hasher.update(token_id)
          return hasher.hexdigest()
      else:
          return token_id

  
  MD5 is a deprecated mechanism, it should be replaces with at least SHA1, if not SHA256.
  Keystone should be able to support multiple Hash types, and the auth_token middleware should query Keystone to find out which type is in use.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1174499/+subscriptions




More information about the Openstack-security mailing list