Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { createCookieSessionStorage, redirect, Session } from "react-router";
|
||||
import { loadRequiredWebConfig, resolveSessionCookiePolicy } from "@toolctrl/config";
|
||||
import { loadRequiredWebConfig, resolveSessionCookiePolicy } from "@hivegrid/config";
|
||||
import { getMyTenants, getTenant } from "./db/tenants.db.server";
|
||||
import { randomBytes, timingSafeEqual } from "crypto";
|
||||
import { getUser } from "./db/users.db.server";
|
||||
@@ -9,7 +9,10 @@ import { createScopedLogger } from "./logger.server";
|
||||
|
||||
const sessionLogger = createScopedLogger("session");
|
||||
|
||||
export const IMPERSONATION_SESSION_TTL_MS = 60 * 60 * 1000;
|
||||
// AK-P19 (DoD #4): platform-operator impersonation is capped at 30 minutes.
|
||||
// `validateImpersonationSessionState` reports `stale_started_at` past this
|
||||
// window so the impersonated tenant session can no longer act.
|
||||
export const IMPERSONATION_SESSION_TTL_MS = 30 * 60 * 1000;
|
||||
|
||||
export type ImpersonationSessionValidationReason =
|
||||
| "not_impersonating"
|
||||
@@ -149,7 +152,7 @@ export const storage = createCookieSessionStorage({
|
||||
...resolveSessionCookiePolicy({
|
||||
nodeEnv: webConfig.nodeEnv,
|
||||
routing: webConfig.routing,
|
||||
name: "RJ_session",
|
||||
name: "hivegrid_session",
|
||||
maxAge: 60 * 60 * 24 * 30,
|
||||
}),
|
||||
secrets: webConfig.sessionSecret ? [webConfig.sessionSecret] : [],
|
||||
|
||||
Reference in new issue
Block a user