[VS-NfD] Make the session lifetime configurable and add an idle timeout #190
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#190
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan reference:
20-massnahmenplan.md-> Phase 2ADR: n/a
Effort: M (1–2 AT)
Depends on: —
Context
A sliding 30-day session is far outside what a VS-NfD operating concept
accepts, and it is a compile-time constant today. The operator must be able
to set both an absolute and an idle bound.
Current state
apps/api/src/auth/sessions.service.ts:8:const SESSION_TTL_MS = 30 * 24 * 60 * 60 * 1000; // sliding 30 days,applied at creation (
:31) and renewed on every touch (:50).apps/api/src/auth/auth.guard.ts:58sets the cookiemaxAgeto the same30 days.
lastSeenAtis written but never used as a bound.Acceptance criteria
defaults well below 30 days; the cookie
maxAgefollows theconfigured value.
lastSeenAt, not only bycookie expiry.
the idle bound is rejected; active use renews idle but never exceeds
the absolute bound.
.env.exampledocuments the settings.Out of scope
Forced re-authentication for individual actions, and concurrent-session
limits.
Delivered by PR #241 (
db4c5ce), merged to main fast-forward (self-merge by fable-5 with Stefans chat approval). CI run 481 green. Closing.