Why is it important whether it is set in the database? Are you experiencing an error or seeing incorrect behavior? Can you show exactly what behavior you are seeing and what behavior you're expecting? The underlying implementation in the database should not be important, you should only be interacting with the REST APIs.
The expiry may be set in the database, but it is ignored in the code:
https:/ /opendev. org/openstack/ keystone/ src/commit/ 07abf2fa4d5c2bc 5dc1c77d700ac35 89d1169d3f/ keystone/ identity/ backends/ sql_model. py#L181- L188
Why is it important whether it is set in the database? Are you experiencing an error or seeing incorrect behavior? Can you show exactly what behavior you are seeing and what behavior you're expecting? The underlying implementation in the database should not be important, you should only be interacting with the REST APIs.