Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(workflows): keep runtime registry out of deployment tracing

Rahman0e86c622cc6c
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index f977a6a6..77b368a4 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -13,6 +13,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `workflows` keep runtime registry out of deployment tracing
- `browser` retain private viewer connectivity without server access
- `release` align Node support and read-only browser reconnects
- `extensions` lock project controls until initial inspection
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index ff31ef07..e41fc9c6 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -3,7 +3,7 @@
- Keep the native automation/session editor unchanged and mounted while switching to external workflow editors such as n8n. The new wrapper consumes explicit workflow placements in the existing owner-reviewed surface registry, not app-store HTML or credential values.
- Share the registry outside the MCP transport without adding another store. Owner-only no-store metadata and revision-checked, explicitly reviewed configuration APIs/CLI preserve exact origins, unrelated entries, safe sandbox permissions and remote-only fallback. Configuration input cannot carry paths or credentials.
- Workflow-only placements never grant an MCP Page nested-frame origin. Load frames only on demand, preserve editor state when switching, expose top-level sign-in/open/reload actions and keyboard-accessible tabs. Browser login remains external-service-owned; framing never means MCP token forwarding or authentication bypass.
-- Add registry/access tests and an isolated browser journey with synthetic stores; keep live n8n signed-out frame evidence separate from logged-in editor claims.
+- Add registry/access tests and a mandatory isolated browser journey with synthetic stores. Live n8n frame checks wait for actual nonblank paint as well as visible controls; keep the synthetic approved parent and signed-out proof distinct from authenticated editor claims.
- The strict release build caught project-wide tracing of the dynamic registry path. Mark that owner-local runtime read as a non-build input, matching other private stores; the warning-fatal release gate remains unchanged.
## 2026-09-18 — Keep private viewer routing client-verifiable
diff --git a/lib/surfaces/config.ts b/lib/surfaces/config.ts
index 5b9b8a27..c601fa08 100644
--- a/lib/surfaces/config.ts
+++ b/lib/surfaces/config.ts
@@ -12,7 +12,8 @@ const DEFAULT_REGISTRY = resolve(homedir(), ".mso", "surface-apps.json");
export function surfaceRegistryPath(): string {
const value = process.env.MSO_SURFACE_APPS_FILE?.trim();
if (!value) return DEFAULT_REGISTRY;
- return resolve(value === "~" ? homedir() : value.startsWith("~/") ? `${homedir()}/${value.slice(2)}` : value);
+ // This is installation-owned runtime state, never an input to deployment tracing.
+ return resolve(/* turbopackIgnore: true */ value === "~" ? homedir() : value.startsWith("~/") ? `${homedir()}/${value.slice(2)}` : value);
}
const SAFE_SANDBOX = new Set([
"allow-downloads", "allow-forms", "allow-modals", "allow-orientation-lock",
diff --git a/scripts/e2e/release.mjs b/scripts/e2e/release.mjs
index 0ca2ac9a..abfa824f 100644
--- a/scripts/e2e/release.mjs
+++ b/scripts/e2e/release.mjs
@@ -12,6 +12,7 @@ import { releaseFixture } from "./release-fixture.mjs";
import { camoufoxConnectionJourney } from "./camoufox-connection.mjs";
execFileSync(process.execPath, ["scripts/e2e/mcp-page.mjs"], { stdio: "inherit" });
+execFileSync(process.execPath, ["scripts/e2e/workflow-embeds.mjs"], { stdio: "inherit" });
execFileSync(process.execPath, ["scripts/e2e/organization-flow.mjs"], { stdio: "inherit" });
const fixture = await releaseFixture();
let browser;
diff --git a/scripts/e2e/workflow-embeds.mjs b/scripts/e2e/workflow-embeds.mjs
index 2ce7204e..68f9f6ff 100644
--- a/scripts/e2e/workflow-embeds.mjs
+++ b/scripts/e2e/workflow-embeds.mjs
@@ -1,5 +1,6 @@
#!/usr/bin/env node
import { chromium, expect } from '@playwright/test';
+import sharp from 'sharp';
import { mkdir, writeFile } from 'node:fs/promises';
import path from 'node:path';
import { releaseFixture } from './release-fixture.mjs';
@@ -110,17 +111,26 @@ try {
const probeUrl = parentOrigin + '/__workflow_embed_policy_probe__';
// Synthetic parent document at the explicitly approved origin; the child is
// live n8n. No owner session, response-header rewrite or browser-security flag.
- await probe.route(probeUrl, route => route.fulfill({ contentType: 'text/html', body: '<!doctype html><html><head><title>n8n frame policy verification</title></head><body style="margin:0"><iframe title="Live n8n" style="width:100vw;height:100vh;border:0" referrerpolicy="no-referrer" sandbox="' + app.sandbox + '" src="' + liveOrigin + '/home/workflows"></iframe></body></html>' }));
+ await probe.route(probeUrl, route => route.fulfill({ contentType: 'text/html', body: '<!doctype html><html><head><title>n8n frame policy verification</title></head><body style="margin:0"><iframe title="Live n8n" style="display:block;width:100vw;height:100vh;border:0" referrerpolicy="no-referrer" sandbox="' + app.sandbox + '" src="' + liveOrigin + '/home/workflows"></iframe></body></html>' }));
await probePage.goto(probeUrl);
+ await probePage.bringToFront();
await expect(probePage.frameLocator('iframe').locator('input[type="password"]')).toBeVisible({ timeout:30000 });
- evidence.push({ liveProvider: liveOrigin, approvedParentOrigin: parentOrigin, parentDocumentIsSynthetic: true, signedOutLoginRendered: true, authenticatedEditorTested: false });
- if (process.env.E2E_EVIDENCE_DIR) {
- await mkdir(process.env.E2E_EVIDENCE_DIR, { recursive: true });
- await probePage.screenshot({ path: path.join(process.env.E2E_EVIDENCE_DIR, 'n8n-approved-parent-desktop.png'), fullPage: true });
- await probePage.setViewportSize({ width: 390, height: 844 });
- await expect(probePage.frameLocator('iframe').locator('input[type="password"]')).toBeVisible();
- await probePage.screenshot({ path: path.join(process.env.E2E_EVIDENCE_DIR, 'n8n-approved-parent-mobile.png'), fullPage: true });
- }
+ const capturePaint = async filename => {
+ let image;
+ await expect.poll(async () => {
+ image = await probePage.screenshot({ fullPage: false, animations: 'disabled' });
+ return (await sharp(image).stats()).entropy;
+ }, { timeout:10000, intervals:[100,250,500] }).toBeGreaterThan(0.1);
+ if (process.env.E2E_EVIDENCE_DIR) {
+ await mkdir(process.env.E2E_EVIDENCE_DIR, { recursive: true });
+ await writeFile(path.join(process.env.E2E_EVIDENCE_DIR, filename), image);
+ }
+ };
+ await capturePaint('n8n-approved-parent-desktop.png');
+ await probePage.setViewportSize({ width:390, height:844 });
+ await expect(probePage.frameLocator('iframe').locator('input[type="password"]')).toBeVisible();
+ await capturePaint('n8n-approved-parent-mobile.png');
+ evidence.push({ liveProvider: liveOrigin, approvedParentOrigin: parentOrigin, parentDocumentIsSynthetic: true, signedOutLoginRendered: true, paintVerified: true, authenticatedEditorTested: false });
await probe.close();
}
expect(errors).toEqual([]);