Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(security): require operator authority for LoRA training start and resume (#11073)
Adam Eivyef4a28c50eb7
diff --git a/server/lib/hostControlRoutes.js b/server/lib/hostControlRoutes.jsindex ac055413e8..8be2975f76 100644--- a/server/lib/hostControlRoutes.js+++ b/server/lib/hostControlRoutes.js@@ -522,6 +522,9 @@ export const HOST_CONTROL_ROUTES = Object.freeze(['POST /api/lora-datasets/:id/generate','POST /api/lora-datasets/:id/caption','POST /api/lora-datasets/:id/slice-reference-sheet',+ // LoRA training start/resume spawn detached trainer processes on the host GPU (#11073).+ 'POST /api/lora-training/runs',+ 'POST /api/lora-training/runs/:id/resume',// Code Animation contained execution (#9388): choosing the installed tool a// worker runs, and the containment check that spawns sandboxed processes.diff --git a/server/lib/hostControlRoutes.test.js b/server/lib/hostControlRoutes.test.jsindex 5d3d409596..2992aec680 100644--- a/server/lib/hostControlRoutes.test.js+++ b/server/lib/hostControlRoutes.test.js@@ -673,6 +673,29 @@ describe('Caller-prompted AI outside Pipeline policy (#10908)', () => {});});+describe('LoRA training run policy (#11073)', () => {+ const protectedRoutes = [+ 'POST /api/lora-training/runs',+ 'POST /api/lora-training/runs/:id/resume',+ ];++ it('gates each route and maps every entry to a mounted route', () => {+ const mounted = new Set(getApiRouteCatalog().routes.map(({ method, path }) => method + ' ' + path));+ for (const route of protectedRoutes) {+ const [method, path] = route.split(' ');+ expect(mounted.has(route), route).toBe(true);+ expect(hostControlRouteFor(method, path), route).toBe(route);+ }+ });++ it('keeps reads open', () => {+ for (const [method, path] of [+ ['GET', '/api/lora-training/runs'],+ ['GET', '/api/lora-training/runs/:id'],+ ]) expect(isHostControlRoute(method, path), `${method} ${path}`).toBe(false);+ });+});+describe('Music Video cover/promotion and POST LLM drill policy (#10989)', () => {const protectedRoutes = ['POST /api/music-video/:id/publish-kit/cover-art/design',