feat(hydra): add variable HYDRA_BCRYPT_COST
This commit is contained in:
parent
daa8612bae
commit
9fb1118961
|
@ -56,6 +56,8 @@ hydra_log_leak_sensitive_values: no
|
||||||
# Durée de vie des "refresh_token"
|
# Durée de vie des "refresh_token"
|
||||||
hydra_ttl_refresh_token: "24h"
|
hydra_ttl_refresh_token: "24h"
|
||||||
|
|
||||||
|
hydra_bcrypt_cost: 8
|
||||||
|
|
||||||
# This value should not be changed after first deployment !
|
# This value should not be changed after first deployment !
|
||||||
hydra_secrets_seed: "{{ inventory_hostname }}"
|
hydra_secrets_seed: "{{ inventory_hostname }}"
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,10 @@ properties:
|
||||||
hydra_ttl_refresh_token:
|
hydra_ttl_refresh_token:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
hydra_brypt_cost:
|
||||||
|
type: number
|
||||||
|
description: Coût CPU pour calculer des hachages de secret (4-31)
|
||||||
|
|
||||||
# This value should not be changed after first deployment !
|
# This value should not be changed after first deployment !
|
||||||
hydra_secrets_seed:
|
hydra_secrets_seed:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -25,5 +25,6 @@ PODMAN_ARGS="\
|
||||||
{% endif %}
|
{% endif %}
|
||||||
-e 'HYDRA_SECRETS_SYSTEM={{ lookup('ansible.builtin.password', '/dev/null length=32 seed=hydra_secrets_seed') }}' \
|
-e 'HYDRA_SECRETS_SYSTEM={{ lookup('ansible.builtin.password', '/dev/null length=32 seed=hydra_secrets_seed') }}' \
|
||||||
-e 'HYDRA_OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT={{ lookup('ansible.builtin.password', '/dev/null length=32 seed=hydra_secrets_seed') }}' \
|
-e 'HYDRA_OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT={{ lookup('ansible.builtin.password', '/dev/null length=32 seed=hydra_secrets_seed') }}' \
|
||||||
|
-e 'HYDRA_BCRYPT_COST={{ hydra_bcrypt_cost }}' \
|
||||||
-v /etc/hydra/clients.d:/etc/hydra/clients.d \
|
-v /etc/hydra/clients.d:/etc/hydra/clients.d \
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in New Issue