Update fernet keys rotation and expiration
Keystone token expiration, rotation frequency and active keys values should follow the formula: max_active_keys = (token_expiration / rotation_frequency) + 2 max_active_keys by default is 3 token expiration set to 43200 (12h) rotation frequency set to 12 hours Change-Id: Ia04daec9b2905ef2d3f2d4fbb43557dda220dc70 Signed-off-by: Ruslan Khanbikov <rk760n@att.com>
This commit is contained in:
parent
25e50a34c6
commit
c3b2c944f8
@ -314,8 +314,11 @@ jobs:
|
|||||||
user: keystone
|
user: keystone
|
||||||
group: keystone
|
group: keystone
|
||||||
fernet_rotate:
|
fernet_rotate:
|
||||||
# weekly
|
# NOTE(rk760n): key rotation frequency, token expiration, active keys should statisfy the formula
|
||||||
cron: "0 0 * * 0"
|
# max_active_keys = (token_expiration / rotation_frequency) + 2
|
||||||
|
# as expiration is 12h, and max_active_keys set to 3 by default, rotation_frequency need to be adjusted
|
||||||
|
# 12 hours
|
||||||
|
cron: "0 */12 * * *"
|
||||||
user: keystone
|
user: keystone
|
||||||
group: keystone
|
group: keystone
|
||||||
history:
|
history:
|
||||||
@ -341,6 +344,8 @@ conf:
|
|||||||
max_token_size: 255
|
max_token_size: 255
|
||||||
token:
|
token:
|
||||||
provider: fernet
|
provider: fernet
|
||||||
|
# 12 hours
|
||||||
|
expiration: 43200
|
||||||
identity:
|
identity:
|
||||||
domain_specific_drivers_enabled: True
|
domain_specific_drivers_enabled: True
|
||||||
domain_config_dir: /etc/keystonedomains
|
domain_config_dir: /etc/keystonedomains
|
||||||
|
Loading…
Reference in New Issue
Block a user