We have two methods designed to safely pack & unpack values in this scenario:
https://github.com/openstack/keystone/blob/f3e3a653f9c9ce0f9a7ba842eff118e5887eb388/keystone/token/providers/fernet/token_formatters.py#L336-L362
But we must be using the variants of those calls that do not expect to encounter value errors:
https://github.com/openstack/keystone/blob/f3e3a653f9c9ce0f9a7ba842eff118e5887eb388/keystone/token/providers/fernet/token_formatters.py#L285-L311
We have two methods designed to safely pack & unpack values in this scenario:
https:/ /github. com/openstack/ keystone/ blob/f3e3a653f9 c9ce0f9a7ba842e ff118e5887eb388 /keystone/ token/providers /fernet/ token_formatter s.py#L336- L362
But we must be using the variants of those calls that do not expect to encounter value errors:
https:/ /github. com/openstack/ keystone/ blob/f3e3a653f9 c9ce0f9a7ba842e ff118e5887eb388 /keystone/ token/providers /fernet/ token_formatter s.py#L285- L311