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 to mint remote desktop sessions (#10923)

Adam Eivy3a5bb195da84
diff --git a/server/lib/hostControlRoutes.js b/server/lib/hostControlRoutes.js
index 0a49b4d048..b9a2b8d8c3 100644
--- a/server/lib/hostControlRoutes.js
+++ b/server/lib/hostControlRoutes.js
@@ -136,6 +136,9 @@ export const HOST_CONTROL_ROUTES = Object.freeze([
// 20 minutes each (#10922).
'POST /api/rigging/models/:id',
'POST /api/rigging/models/:id/retarget',
+ // A remote desktop session token proxies interactive mouse/keyboard/screen
+ // control of the host desktop; a peer's Basic credential must not mint one (#10923).
+ 'POST /api/remote-desktop/sessions',
// Universe Builder authoring (#10669) can dispatch tool-capable text/vision
// providers or image agents, including API-first CLI/TUI fallback. Authorize
diff --git a/server/lib/hostControlRoutes.test.js b/server/lib/hostControlRoutes.test.js
index 34a4b8d3c8..c7163b4de6 100644
--- a/server/lib/hostControlRoutes.test.js
+++ b/server/lib/hostControlRoutes.test.js
@@ -612,6 +612,10 @@ describe('3D model rigging host-workers (#10922)', () => {
const protectedRoutes = [
'POST /api/rigging/models/:id',
'POST /api/rigging/models/:id/retarget',
+
+describe('Remote desktop session policy (#10923)', () => {
+ const protectedRoutes = [
+ 'POST /api/remote-desktop/sessions',
];
it('gates each route and maps every entry to a mounted route', () => {
@@ -626,6 +630,8 @@ describe('3D model rigging host-workers (#10922)', () => {
it('keeps reads open', () => {
for (const [method, path] of [
['GET', '/api/rigging/models/:id'],
+
+ ['GET', '/api/remote-desktop/status'],
]) expect(isHostControlRoute(method, path), `${method} ${path}`).toBe(false);
});
});