[Openstack-security] [Bug 1484237] Re: token revocations not always respected when using fernet tokens
    OpenStack Infra 
    1484237 at bugs.launchpad.net
       
    Fri Sep 11 17:47:31 UTC 2015
    
    
  
Reviewed:  https://review.openstack.org/216236
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=9450cd9699c002adcdb8f64c95ffa2c002717568
Submitter: Jenkins
Branch:    master
commit 9450cd9699c002adcdb8f64c95ffa2c002717568
Author: Dolph Mathews <dolph.mathews at gmail.com>
Date:   Fri Aug 21 18:38:26 2015 +0000
    Handle tokens created and quickly revoked with insufficient timestamp precision
    
    In the event that the revocation event is created at the exact same
    timestamp as the token's creation timestamp, the event's issued_before
    will equal the token's issued_at and will thus not be revoked (according
    to the current code).
    
    This is much more likely to occur when a token's issue_at timestamp is
    rounded to whole seconds (rather than carrying microsecond level
    precision), as they are with Fernet and MySQL.
    
    Change-Id: If1f5e546463f189a0b487140a620def545006c25
    Closes-Bug: 1484237
    Related-Bug: 1488208
** Changed in: keystone
       Status: In Progress => Fix Committed
-- 
You received this bug notification because you are a member of OpenStack
Security, which is subscribed to OpenStack.
https://bugs.launchpad.net/bugs/1484237
Title:
  token revocations not always respected when using fernet tokens
Status in Keystone:
  Fix Committed
Status in OpenStack Security Advisory:
  Won't Fix
Bug description:
  A simple test that shows that fernet tokens are not always being
  invalidated.
  Simple test steps:
  1) gets a token
  2) deletes a token
  3) tries to validate the deleted token
  When I run this in production on 10 tokens, I get about a 20% success
  rate on the token being detected as invalid, 80% of the time, keystone
  tells me the token is valid.
  I have validated that the token is showing in the revocation event
  table.
  I've tried a 5 second delay between the calls which did not change the
  behavior.
  My current script (below) will look for 204 and 404 to show failure
  and will wait forever. I've let it wait over 5 minutes, it seems to me
  that either keystone knows immediately that the token is invalid or
  not at all.
  I do not have memcache enabled on these nodes.
  The same test has a 100% pass rate with UUID tokens.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1484237/+subscriptions
    
    
More information about the Openstack-security
mailing list