feat(admin): super-admin UI for session policy ceilings (SESSION_*_MINUTES_MIN/MAX) #170
Reference in New Issue
Block a user
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?
Follow-up from PR #168 (session-expiration-policy).
Motivation
PR #168 ships
Settings.SESSION_IDLE_MINUTES_MIN/MAXandSESSION_ABSOLUTE_MINUTES_MIN/MAXas env-var ceilings (15min..30d idle, 1h..90d absolute). Per-account owners can only set values within these bounds. Today the only way to change the bounds is to redeploy with new env vars — fine for self-managed deployments, awkward for a hosted multi-tenant instance where a customer asks for a higher absolute ceiling and we dont want to ship a deploy for them.Scope
admin/settings.py. Persist override values in the existing settings table or a newsystem_session_policyrow./admin/settings(or new/admin/session-policy): four inputs for the four bounds, with a one-line summary of how many accounts are currently using overrides within the existing bounds (helpful for understanding blast radius before tightening).admin.session_policy_bounds_update.Why deferred from #168
Plan §9 follow-up #1. Env-var ceilings were sufficient for v1 — bounds are unlikely to need adjustment in pilot. Revisit when a customer actually asks for a wider window than the env caps allow, or when we onboard a customer with tighter compliance needs than the env floor permits.
Dependencies
None. Lands cleanly on top of PR #168.
Effort
~half a day. Single page + 1 GET + 1 PATCH + audit-event type.