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 New Zealand file storage
rahmanef6360df358bc2dd
diff --git a/lib/mcp/openai-file-upload.test.ts b/lib/mcp/openai-file-upload.test.tsindex 42388c8b..d703c32f 100644--- a/lib/mcp/openai-file-upload.test.ts+++ b/lib/mcp/openai-file-upload.test.ts@@ -50,6 +50,22 @@ describe("ChatGPT file host allowlist", () => {expect(uploadInto).toHaveBeenCalledTimes(1);});+ it("accepts the observed OpenAI New Zealand North blob host", async () => {+ const result = await importOpenAiProvidedFile({+ file: {+ download_url: "https://oaisdmntprnznorth.blob.core.windows.net/container/file.png?sig=redacted",+ file_id: "file_test_nz",+ mime_type: "image/png",+ file_name: "file-nz.png",+ size: 4,+ },+ dest: "/home/antinrml/generated-images",+ filename: "file-nz.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 fbddd9f5..985484f7 100644--- a/lib/mcp/openai-file-upload.ts+++ b/lib/mcp/openai-file-upload.ts@@ -36,6 +36,9 @@ function trustedDownloadUrl(raw: string): URL {// ChatGPT-generated conversation files observed from the Australia East region.// Exact account only; never allow arbitrary Azure Blob hosts."oaisdmntpraustraliaeast.blob.core.windows.net",+ // ChatGPT-generated conversation files observed from the New Zealand North region.+ // Exact account only; arbitrary Azure Blob accounts remain rejected.+ "oaisdmntprnznorth.blob.core.windows.net",]);if (!exactOpenAiHosts.has(host) && !host.endsWith(".oaiusercontent.com")) {throw new HostError(`file.download_url host is not allowed: ${host}`);