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): allow ChatGPT Australia file storage
rahmanef63921b772a46bf
diff --git a/lib/mcp/openai-file-upload.test.ts b/lib/mcp/openai-file-upload.test.tsindex 39abcc3d..42388c8b 100644--- a/lib/mcp/openai-file-upload.test.ts+++ b/lib/mcp/openai-file-upload.test.ts@@ -34,6 +34,22 @@ describe("ChatGPT file host allowlist", () => {expect(uploadInto).toHaveBeenCalledTimes(1);});+ it("accepts the observed OpenAI Australia East blob host", async () => {+ const result = await importOpenAiProvidedFile({+ file: {+ download_url: "https://oaisdmntpraustraliaeast.blob.core.windows.net/container/file.png?sig=redacted",+ file_id: "file_test_au",+ mime_type: "image/png",+ file_name: "file-au.png",+ size: 4,+ },+ dest: "/home/antinrml/generated-images",+ filename: "file-au.png",+ });+ expect(result.bytes).toBe(4);+ expect(uploadInto).toHaveBeenCalledTimes(1);+ });+it("rejects an unrelated Azure blob account", async () => {await expect(importOpenAiProvidedFile({file: {diff --git a/lib/mcp/openai-file-upload.ts b/lib/mcp/openai-file-upload.tsindex e647536f..fbddd9f5 100644--- a/lib/mcp/openai-file-upload.ts+++ b/lib/mcp/openai-file-upload.ts@@ -33,6 +33,9 @@ function trustedDownloadUrl(raw: string): URL {// Keep this exact: accepting arbitrary *.blob.core.windows.net would turn the// bridge into a server-side fetch primitive."oaisdmntprseasia.blob.core.windows.net",+ // ChatGPT-generated conversation files observed from the Australia East region.+ // Exact account only; never allow arbitrary Azure Blob hosts.+ "oaisdmntpraustraliaeast.blob.core.windows.net",]);if (!exactOpenAiHosts.has(host) && !host.endsWith(".oaiusercontent.com")) {throw new HostError(`file.download_url host is not allowed: ${host}`);