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(security): require operator authority for voice fine-tune start (#11074)

Adam Eivyd82504f20064
diff --git a/server/lib/hostControlRoutes.js b/server/lib/hostControlRoutes.js
index ac055413e8..b1e30c3c2d 100644
--- a/server/lib/hostControlRoutes.js
+++ b/server/lib/hostControlRoutes.js
@@ -245,6 +245,8 @@ export const HOST_CONTROL_ROUTES = Object.freeze([
'POST /api/system/maintenance',
'POST /api/system/maintenance/resume',
'POST /api/voice/studio/setup',
+ // Voice fine-tune start spawns a Python trainer on the host (#11074).
+ 'POST /api/voice/profiles/:id/fine-tune/start',
// Instances: runs the Tailscale CLI and writes a TLS certificate and private
// key into the install's cert directory.
diff --git a/server/lib/hostControlRoutes.test.js b/server/lib/hostControlRoutes.test.js
index 5d3d409596..2c35da0e36 100644
--- a/server/lib/hostControlRoutes.test.js
+++ b/server/lib/hostControlRoutes.test.js
@@ -718,6 +718,27 @@ describe('Music Video cover/promotion and POST LLM drill policy (#10989)', () =>
});
});
+describe('Voice fine-tuning policy (#11074)', () => {
+ const protectedRoutes = [
+ 'POST /api/voice/profiles/:id/fine-tune/start',
+ ];
+
+ 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/voice/profiles/:id/fine-tune'],
+ ]) expect(isHostControlRoute(method, path), `${method} ${path}`).toBe(false);
+ });
+});
+
describe('3D model rigging host-workers (#10922)', () => {
const protectedRoutes = [
'POST /api/rigging/models/:id',