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.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
fix(mcp): trust verified ChatGPT Azure file host
Rahman9e1deb0345d8
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex fd347bf2..f72167ba 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -12,6 +12,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.**Fixed**+- `mcp` trust verified ChatGPT Azure file host- `integrations` preserve strict SC bundle validation- `integrations` make shell embed frameable- `integrations` add shell app and detect SC worktreesdiff --git a/lib/mcp/openai-file-upload.ts b/lib/mcp/openai-file-upload.tsindex 22a7805a..a8f96321 100644--- a/lib/mcp/openai-file-upload.ts+++ b/lib/mcp/openai-file-upload.ts@@ -15,6 +15,7 @@ export interface OpenAiProvidedFile {const MAX_FILE_BYTES = 20 * 1024 * 1024;const SUPPORTED_MIME = new Set(["image/png", "image/webp", "image/jpeg", "application/json", "application/zip"]);const WIRE_MIME = new Set([...SUPPORTED_MIME, "application/octet-stream"]);+const BUILTIN_AZURE_HOSTS = new Set(["oaisdmntprkoreacentral.blob.core.windows.net"]);const MIME_ALIASES = new Map([["application/x-zip-compressed", "application/zip"]]);const EXTENSION_MIME = new Map([[".png", "image/png"],@@ -39,7 +40,7 @@ function normalizeMime(value: string): string {}function configuredAzureHosts(): Set<string> {- const hosts = new Set<string>();+ const hosts = new Set<string>(BUILTIN_AZURE_HOSTS);for (const raw of (process.env.OS_MCP_OPENAI_FILE_HOSTS || "").split(",")) {const host = raw.trim().toLowerCase();if (!host) continue;@@ -58,8 +59,8 @@ function trustedDownloadUrl(raw: string): URL {const host = url.hostname.toLowerCase();// OpenAI-owned oaiusercontent hosts are trusted directly. Azure Blob accounts- // are accepted only by exact operator allowlist: a shared account-name prefix- // is not proof that an arbitrary Azure storage account belongs to OpenAI.+ // are accepted only as exact known hosts; one observed ChatGPT host is built in+ // and operators may add more. Shared prefixes are never ownership proof.const openAiContentHost = host === "files.oaiusercontent.com" || host.endsWith(".oaiusercontent.com");if (!openAiContentHost && !configuredAzureHosts().has(host)) {throw new HostError(`file.download_url host is not allowed: ${host}`);