Skip to content

feat: move maple proxy to maplePrivacyLabs/maple and update to 0.4.2 - #10

Merged
MattDHill merged 2 commits into
masterfrom
fix/emudhra
Oct 24, 2026
Merged

MattDHill merged 2 commits into
masterfrom
fix/emudhra

Conversation

@MattDHill

@MattDHill MattDHill commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Moves Maple Proxy to its new upstream home and updates it to 0.4.2.

  • OpenSecretCloud/maple-proxy is archived. upstreamRepo, the image (ghcr.io/mapleprivacylabs/maple-proxy:0.4.2) and the docs now point at MaplePrivacyLabs/Maple proxy/.
  • 0.4.2 adds POST /v1/systemone and mirrors CORS request headers; port, entrypoint, user and env are unchanged.
  • 0.4.2 still locks webpki-roots 1.0.7. The fix (1.0.10) is on Maple master as proxy 0.4.4 but not published yet, so the release notes make no CA claim.
  • Version 0.4.2:0.

Helix: do not build or pack this package. No make, s9pk pack or docker build, locally or on a VM. GitHub CI builds it on this PR; review the diff and the CI result. Leave the checkout on the default branch.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill
MattDHill requested a review from helix-white October 24, 2026 03:04
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request changes: [P1] Preserve configured server-side API keys when upgrading to 0.4.2. The new image changes authentication behavior, not just CORS headers. Its proxy_openai_request ignores default_api_key whenever CORS is enabled. startos/main.ts unconditionally sets MAPLE_ENABLE_CORS=true, so upgrading a configured installation makes requests without an explicit caller key return 401. That breaks the bundled UI's saved-key workflow and clients relying on the Configure action, while both port health checks remain green.

The proposal enables CORS only when no server-side key is saved, preserving configured-key access without bypassing upstream's safety rule. It documents that cross-origin browser clients must instead use the unkeyed mode and supply their own key; the same-origin bundled UI and non-browser clients retain saved-key access. README, instructions, and all release-note translations reflect the restriction.

Proposed changes: 91abd4b...proposal/10

Verification: merge-tree passes against current master. Confirmed GHCR 0.4.2 has Linux AMD64/ARM64 images, both labeled with the v3.4.4 source revision above; compared the old/new proxy configuration, authentication, and runtime assumptions. SDK pin 3.1.0 matches npm latest. Existing CI discovery and both architecture builds passed; Retarget Build was skipped. For the proposal, npm install && npx tsc --noEmit, git diff --check, and an ephemeral harness exercising the actual setupMain environment for missing, empty, and configured keys all passed. No package build, pack, Docker build, VM, or live-service test performed. The PR branch is untouched.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill requested a review from helix-white October 24, 2026 03:17

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The updated head incorporates proposal/10 exactly and resolves the saved-key regression: CORS is disabled when a server-side key is configured, and remains enabled for clients supplying their own keys. README, instructions, and all release-note translations explain the cross-origin restriction. No remaining correctness findings.

Re-ran merge-tree against current master and diff whitespace checks; both pass. Rechecked SDK 3.1.0 against npm latest. Reused the prior typecheck and actual setupMain environment checks for missing, empty, and configured keys: they exercised this exact head. CI discovery passed; the current x86 and ARM builds are still running. No local build, pack, Docker build, VM, or live-service testing performed.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

Accepted the proposal as-is. It is already on fix/emudhra as b098232, which is the same as proposal/10.

  • [P1] Server-side key ignored under CORS: I checked upstream proxy_openai_request at f8ae884. It drops default_api_key whenever enable_cors is set, so the unconditional MAPLE_ENABLE_CORS=true would have made every saved-key install return 401. main.ts now enables CORS only when no key is saved. README, instructions and all five release-note translations describe the trade-off.

Verified on b098232: merge-tree against origin/master is clean, npx tsc --noEmit passes, and CI builds pass on both arm and x86. I did not run a live-service test.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval confirmed for unchanged head b098232. The accepted proposal resolves the saved-key/CORS regression, with the browser-access restriction documented. Re-ran merge-tree against current master and diff whitespace checks; both pass. SDK 3.1.0 still matches npm latest. CI discovery and both x86 and ARM builds now all pass. Reused the previously passing typecheck and setupMain environment checks on this exact head; no local package build or live-service testing performed.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill merged commit 4b4d65d into master Oct 24, 2026
3 checks passed
@MattDHill
MattDHill deleted the fix/emudhra branch October 24, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants