diff --git a/salt/common/tools/sbin/so-user b/salt/common/tools/sbin/so-user index 62ba737b1..f0c064d03 100755 --- a/salt/common/tools/sbin/so-user +++ b/salt/common/tools/sbin/so-user @@ -241,7 +241,7 @@ function syncAll() { staleCount=$(echo "select count(*) from identity_credentials where updated_at >= Datetime('now', '-${usersFileAgeSecs} seconds');" \ | sqlite3 "$databasePath") if [[ "$staleCount" == "0" ]]; then - fail "Users are already in sync. Run 'FORCE_SYNC=1 $0 sync' to force a full sync anyway." + return 1 fi fi syncElastic diff --git a/salt/soc/files/kratos/kratos.yaml b/salt/soc/files/kratos/kratos.yaml index 80340af4f..b1174af58 100644 --- a/salt/soc/files/kratos/kratos.yaml +++ b/salt/soc/files/kratos/kratos.yaml @@ -1,5 +1,9 @@ {%- set WEBACCESS = salt['pillar.get']('global:url_base', '') -%} {%- set KRATOSKEY = salt['pillar.get']('kratos:kratoskey', '') -%} +{%- set SESSIONTIMEOUT = salt['pillar.get']('kratos:sessiontimeout', '24h') -%} + +session: + lifespan: {{ SESSIONTIMEOUT }} selfservice: methods: