← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469458] [NEW] Fernet tokens use different string format for expires time

 

Public bug reported:

The change in format breaks parsing the 'expires' string in existing
applications. Is this an intentional change?

# keystone --debug token-get
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://172.29.236.3:5000/v2.0/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 172.29.236.3
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 3574
+-----------+----------------------------------+
|  Property |              Value               |
+-----------+----------------------------------+
|  expires  |       2015-06-28T08:28:34Z       |
|     id    | 1a50033b3a094828a8cde4cbf12024ed |
| tenant_id | a3a5cf8eb83f416db3878731bd9e6453 |
|  user_id  | ad39420d02c04c2da946b92d28b710c0 |
+-----------+----------------------------------+


# keystone --debug token-get
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://172.29.236.3:5000/v2.0/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 172.29.236.3
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 4193
+-----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|  Property |                                                                                           Value                                                                                            |
+-----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|  expires  |                                                                                2015-06-28T08:39:41.644518Z                                                                                 |
|     id    | gAAAAABVjwoNAZCVs00uR16DkY9mCqd5CivXy7UXRpYldZTlTTVYRj2hhpIXpLnOFrPSFZwSu-6xjSNSTZ5WCupiV8fpQ9RbNjw5lroBqzS2qCgh1WPpPYQiiul0MED6hKk-AQH-Of72OjpriHHoronHrtwIu-POnL20_8akatQm6Y-Y42aQz9w%3D |
| tenant_id |                                                                              010d5126c9714ced8cf5be87eb2cec5b                                                                              |
|  user_id  |                                                                              2156173ddaf04f29b66345768b42ca61                                                                              |
+-----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1469458

Title:
  Fernet tokens use different string format for expires time

Status in OpenStack Identity (Keystone):
  New

Bug description:
  The change in format breaks parsing the 'expires' string in existing
  applications. Is this an intentional change?

  # keystone --debug token-get
  /usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://172.29.236.3:5000/v2.0/tokens
  INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 172.29.236.3
  DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 3574
  +-----------+----------------------------------+
  |  Property |              Value               |
  +-----------+----------------------------------+
  |  expires  |       2015-06-28T08:28:34Z       |
  |     id    | 1a50033b3a094828a8cde4cbf12024ed |
  | tenant_id | a3a5cf8eb83f416db3878731bd9e6453 |
  |  user_id  | ad39420d02c04c2da946b92d28b710c0 |
  +-----------+----------------------------------+

  
  # keystone --debug token-get
  /usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://172.29.236.3:5000/v2.0/tokens
  INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 172.29.236.3
  DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 4193
  +-----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  |  Property |                                                                                           Value                                                                                            |
  +-----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  |  expires  |                                                                                2015-06-28T08:39:41.644518Z                                                                                 |
  |     id    | gAAAAABVjwoNAZCVs00uR16DkY9mCqd5CivXy7UXRpYldZTlTTVYRj2hhpIXpLnOFrPSFZwSu-6xjSNSTZ5WCupiV8fpQ9RbNjw5lroBqzS2qCgh1WPpPYQiiul0MED6hKk-AQH-Of72OjpriHHoronHrtwIu-POnL20_8akatQm6Y-Y42aQz9w%3D |
  | tenant_id |                                                                              010d5126c9714ced8cf5be87eb2cec5b                                                                              |
  |  user_id  |                                                                              2156173ddaf04f29b66345768b42ca61                                                                              |
  +-----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

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


Follow ups

References