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: require operator authority to provision a Tailscale certificate (#10111)
Adam Eivyeca4053bded3
diff --git a/server/lib/hostControlRoutes.js b/server/lib/hostControlRoutes.jsindex 7d38e094cb..b3b94138a1 100644--- a/server/lib/hostControlRoutes.js+++ b/server/lib/hostControlRoutes.js@@ -134,6 +134,10 @@ export const HOST_CONTROL_ROUTES = Object.freeze(['POST /api/runs','POST /api/voice/studio/setup',+ // Instances: runs the Tailscale CLI and writes a TLS certificate and private+ // key into the install's cert directory.+ 'POST /api/instances/provision-cert',+// Apps: create/edit choose the repo path and the start/build commands; the// lifecycle and launch routes run them under PM2 or the native launcher.'POST /api/apps',diff --git a/server/routes/hostControlFamilies.test.js b/server/routes/hostControlFamilies.test.jsindex fe86db0281..673de458f0 100644--- a/server/routes/hostControlFamilies.test.js+++ b/server/routes/hostControlFamilies.test.js@@ -101,6 +101,7 @@ const buildGatedApp = (remoteAddress) => {app.put('/api/settings', settingsWrite);app.put('/api/cos/config', cosConfigWrite);app.post('/api/voice/studio/setup', mediaHostAction);+ app.post('/api/instances/provision-cert', mediaHostAction);app.post('/api/apps/:id/launch-videos/publish', mediaHostAction);app.use(errorMiddleware);return app;@@ -130,6 +131,7 @@ const REFUSED_WRITES = [['post', '/api/loops/loop-1/trigger', {}],['post', '/api/providers/runtimes/install?runtime=codex', {}],['post', '/api/voice/studio/setup', {}],+ ['post', '/api/instances/provision-cert', {}],['post', '/api/apps/example-app/launch-videos/publish', {}],['put', '/api/github/repos/example.com%2Fexample', { flags: ['archived'] }],['post', '/api/github/repos/example.com%2Fexample/archive', {}],@@ -198,12 +200,13 @@ describe('host-control gate on agent, loop, provider and policy writes (#8721)',['post', '/api/feature-agents/agent-1/start'],['post', '/api/loops/loop-1/trigger'],['post', '/api/voice/studio/setup'],+ ['post', '/api/instances/provision-cert'],['post', '/api/apps/example-app/launch-videos/publish'],['post', '/api/github/repos/example%2Fexample/archive'],['put', '/api/settings', { codeReview: { reviewers: ['claude'] } }],['put', '/api/cos/config', { maxConcurrentAgents: 2 }],]) statuses.push((await call(local(), write, proxyClient)).status);- expect(statuses).toEqual([200, 200, 200, 200, 200, 200, 200]);+ expect(statuses).toEqual([200, 200, 200, 200, 200, 200, 200, 200]);}expect(github.setRepoArchived).toHaveBeenCalledWith('example/example', true);expect(featureAgents.activateFeatureAgent).toHaveBeenCalledTimes(2);@@ -212,6 +215,15 @@ describe('host-control gate on agent, loop, provider and policy writes (#8721)',});});+describe('host-control gate on Tailscale certificate provisioning (#10111)', () => {+ it('lets a remote caller with a verified operator session provision', async () => {+ isAuthEnabled.mockResolvedValue(true);+ const response = await request(remote()).post('/api/instances/provision-cert').set('Authorization', 'Bearer example-session').send({});+ isAuthEnabled.mockResolvedValue(false);+ expect(response.status).toBe(200);+ });+});+describe('host-control gate on settings keys that pick an executable (#8751)', () => {const STORED = {imageGen: {