Support sub-second accuracy in Fernet's creation timestamp

Bug #1513541 reported by Lance Bragstad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Won't Fix
Medium
Unassigned

Bug Description

The fernet token provider has sub-second format, but it is currently truncated to .000000Z. This is because the library (pyca/cryptography [0]) that keystone relies on for generating fernet tokens uses integer timestamps instead of floats, which loses sub-second accuracy. We should find a way to support sub-second accuracy in Fernet's creation timestamp so that we don't hit token revocation edge cases, like the ones documented here - https://review.openstack.org/#/c/227995/ .

This will likely have to be a coordinated effort between the cryptography development community and the maintainers of the Fernet specification [1].

This bug is to track that we include the corresponding fix (via version bump of cryptography) for keystone.

[0] https://github.com/pyca/cryptography
[1] https://github.com/fernet/spec

Tags: fernet
tags: added: fernet
Changed in keystone:
importance: Undecided → Medium
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

As discussed at the midcycle, the direction we are moving is towards no subsecond support anywhere instead.

Changed in keystone:
status: New → Won't Fix
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.