Skip to content

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

fix: require operator authority for 3D model rigging and retarget routes (#10922)

Adam Eivyc057818e25af
diff --git a/server/lib/hostControlRoutes.js b/server/lib/hostControlRoutes.js
index 5e5a802736..0a49b4d048 100644
--- a/server/lib/hostControlRoutes.js
+++ b/server/lib/hostControlRoutes.js
@@ -132,6 +132,11 @@ import { isPlainObject } from './objects.js';
import { escapeRegExp } from './textUtils.js';
export const HOST_CONTROL_ROUTES = Object.freeze([
+ // Rigging and retargeting spawn Blender/Python workers on the host for up to
+ // 20 minutes each (#10922).
+ 'POST /api/rigging/models/:id',
+ 'POST /api/rigging/models/:id/retarget',
+
// Universe Builder authoring (#10669) can dispatch tool-capable text/vision
// providers or image agents, including API-first CLI/TUI fallback. Authorize
// the whole operation before image resolution, stores, runs or queue writes.
diff --git a/server/lib/hostControlRoutes.test.js b/server/lib/hostControlRoutes.test.js
index fcf01e18ef..34a4b8d3c8 100644
--- a/server/lib/hostControlRoutes.test.js
+++ b/server/lib/hostControlRoutes.test.js
@@ -607,3 +607,25 @@ describe('Caller-prompted AI outside Pipeline policy (#10908)', () => {
]) expect(isHostControlRoute(method, path), `${method} ${path}`).toBe(false);
});
});
+
+describe('3D model rigging host-workers (#10922)', () => {
+ const protectedRoutes = [
+ 'POST /api/rigging/models/:id',
+ 'POST /api/rigging/models/:id/retarget',
+ ];
+
+ 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/rigging/models/:id'],
+ ]) expect(isHostControlRoute(method, path), `${method} ${path}`).toBe(false);
+ });
+});