Configure Kratos session settings (todo §3); branded cookie, 720h lifespan, 24h sliding-refresh window

This commit is contained in:
2026-06-17 11:27:56 +02:00
parent d6960c9bad
commit 0313f48112
3 changed files with 19 additions and 1 deletions

View File

@@ -76,6 +76,18 @@ identity:
- id: default
url: file:///etc/config/kratos/identity.schema.json
# "Stay signed in" backbone: a long-lived Kratos session that the app re-mints the
# short-lived (~10m) JWT off (§4). Sliding refresh — an active session is extended
# back to full lifespan only once it's within earliest_possible_extend of expiry,
# so frequent users never lapse without a DB write per request.
session:
lifespan: 720h # 30 days
earliest_possible_extend: 24h
cookie:
name: plainpages_session
persistent: true # survive browser restarts
same_site: Lax
# Dev throwaways — production supplies real secrets via env (§3). cipher = 32 chars.
secrets:
cookie: