feat(FN-3009): migrate remote settings to global scope

This merge migrates Fusion's settings architecture to a unified global scope (FN-3009), consolidating settings types, defaults, merge semantics, updater logic, and routing into a centralized system that aligns dashboard remote settings with global configuration. Secondary changes include adding the

Fusion-Task-Id: FN-3009
This commit is contained in:
Fusion
2026-04-30 20:09:07 -07:00
committed by gsxdsm
parent 6c83731721
commit cf87c3e3d9
15 changed files with 182 additions and 303 deletions

View File

@@ -1,10 +1,10 @@
import { randomBytes, timingSafeEqual } from "node:crypto";
import type { ProjectSettings } from "@fusion/core";
import type { GlobalSettings } from "@fusion/core";
export type RemoteTokenValidationStatus = "valid" | "missing" | "invalid" | "expired" | "disabled";
export type RemoteTokenType = "persistent" | "short-lived";
type RemoteAccessSettings = NonNullable<ProjectSettings["remoteAccess"]>;
type RemoteAccessSettings = NonNullable<GlobalSettings["remoteAccess"]>;
interface ShortLivedTokenEntry {
expiresAtMs: number;