Comment 4 for bug 1642988

Revision history for this message
Jose Castro Leon (jose-castro-leon) wrote : Re: Avoid encoding of project id in fernet tokens

I completely understand the reasons for using hex format on the fernet tokens.
But this is a long story, we started with the LDAP backend and picking a uuid format (with dashes). Then we kept the project ids when migrated to SQL identity. As we have a setup with more than 3k projects, and now more than 12 openstack components changing the ID format is not possible.

The problem is not the encoding, when we decode them we don't have the dashes and the select query on the backend will fail, because there is no uuid comparison just an equal

I know that avoid converting them makes the tokens bigger, but at least allows us to move to fernet.
_
Adam, on fernet they are several different formatters, are you thinking in changing them all?