Title: muse-proxy (PR #479): child env unconditionally pins the sandbox egress proxy + CA, overriding the operator's own proxy/CA on any other machine · Issue #485 · developing-today/code · GitHub
Open Graph Title: muse-proxy (PR #479): child env unconditionally pins the sandbox egress proxy + CA, overriding the operator's own proxy/CA on any other machine · Issue #485 · developing-today/code
X Title: muse-proxy (PR #479): child env unconditionally pins the sandbox egress proxy + CA, overriding the operator's own proxy/CA on any other machine · Issue #485 · developing-today/code
Description: Finding PR #479's bin/muse-proxy.mjs pins the Muse sandbox's network path into every child process, unconditionally, on any machine: const EGRESS_PROXY = 'http://hatch-egress-proxy:3128'; const EGRESS_CA = '/run/hatch/egress-tls/ca-bundl...
Open Graph Description: Finding PR #479's bin/muse-proxy.mjs pins the Muse sandbox's network path into every child process, unconditionally, on any machine: const EGRESS_PROXY = 'http://hatch-egress-proxy:3128'; const EGR...
X Description: Finding PR #479's bin/muse-proxy.mjs pins the Muse sandbox's network path into every child process, unconditionally, on any machine: const EGRESS_PROXY = 'http://hatch-egress-proxy:3128...
Opengraph URL: https://github.com/developing-today/code/issues/485
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"muse-proxy (PR #479): child env unconditionally pins the sandbox egress proxy + CA, overriding the operator's own proxy/CA on any other machine","articleBody":"## Finding\n\nPR #479's `bin/muse-proxy.mjs` pins the Muse sandbox's network path into every child process, unconditionally, on any machine:\n\n```js\nconst EGRESS_PROXY = 'http://hatch-egress-proxy:3128';\nconst EGRESS_CA = '/run/hatch/egress-tls/ca-bundle.pem';\n...\nconst childEnv = () => {\n const env = { ...process.env };\n delete env.META_API_KEY;\n env.HTTPS_PROXY = EGRESS_PROXY;\n env.HTTP_PROXY = EGRESS_PROXY;\n env.https_proxy = EGRESS_PROXY;\n env.http_proxy = EGRESS_PROXY;\n env.SSL_CERT_FILE = EGRESS_CA;\n return env;\n};\n```\n(bin/muse-proxy.mjs:29-30 and 141-148 at PR head 9e7dcbde15e35bd71b7e50dd5762285477255c65; the spawn site is line 264.)\n\n`hatch-egress-proxy` is a sandbox-internal hostname and `/run/hatch/egress-tls/ca-bundle.pem` a sandbox-only path. On any non-sandbox machine (a laptop, another dev box — the natural places to run a `bin/` proxy from this repo), every spawned `muse exec` therefore gets an unresolvable proxy and a nonexistent CA file, so the CLI cannot reach Meta — and this overrides even a correct proxy/CA configuration the operator deliberately set in the server's own environment.\n\nThe PR body already identifies this (\"Known sandbox-ism: the child env pins the sandbox's unauthenticated egress proxy + CA bundle … Making that conditional (only when those paths exist) is a follow-up, deliberately not bundled here\"), but that follow-up was never filed: issue searches for \"hatch-egress\", \"egress proxy muse\", \"18747\", and \"muse-proxy\" return only #480 (the separate warm-session follow-up, which IS filed) and unrelated proxy issues. This issue files the promised follow-up so it is not lost when #479 merges.\n\n## Evidence (reproduced against the PR head)\n\nRan the PR's `bin/muse-proxy.mjs` with a stub `muse` that dumps its environment, with the server started as:\n\n```\nHTTPS_PROXY=http://operator-proxy.example:8080 SSL_CERT_FILE=/operator/ca.pem META_API_KEY=should-be-stripped\n```\n\nThe child process environment contained:\n\n```\nHTTPS_PROXY=http://hatch-egress-proxy:3128\nhttps_proxy=http://hatch-egress-proxy:3128\nSSL_CERT_FILE=/run/hatch/egress-tls/ca-bundle.pem\n```\n\ni.e. both operator values were silently replaced by the sandbox constants. (`META_API_KEY` was absent, as intended — that deletion is deliberate and documented, and is not part of this finding.)\n\nCross-repo check: `git grep muse-proxy` on the current mains of developing-today/opencode, developing-today/openchamber, and dezren39/nix is empty — this file exists only in developing-today/code, so this is a single-repo issue.\n\n## Why it matters\n\nThe other `bin/*-proxy.mjs` bridges in this repo run wherever the operator runs them. A bridge that only works inside one specific sandbox — and fails by overriding the operator's working network configuration rather than by an explicit error — will present as \"muse is down / auth broken\" on any other machine, with the actual cause buried in a child process's environment.\n\n## Acceptance criteria\n\n- [ ] The sandbox egress proxy + CA are applied to the child env only when they are actually usable (e.g. the CA file exists and/or the proxy host resolves), as the PR body proposed.\n- [ ] Values the operator set in the server's environment (`HTTPS_PROXY`/`HTTP_PROXY`/`SSL_CERT_FILE` and lowercase variants) are not overridden when the sandbox pin is not applied.\n- [ ] The `META_API_KEY` deletion is preserved (it is load-bearing: the key would outrank the CLI's OAuth login and route to the unfunded pay-as-you-go wallet).\n- [ ] A test or documented manual check covers both cases: sandbox-shaped environment (pin applied) and plain environment (operator env passes through untouched).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T14:52:03Z","url":"https://github.com/developing-today/code/issues/485"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:545fe4e8-0e73-beed-3792-612efcff2da9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D04A:128099:40F6BB:56F25E:6B061DD5 |
| html-safe-nonce | 8ccf955986f74f6a958ba9ab2cd431ab4be4c234228e59369ae7d92195c30daf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDRBOjEyODA5OTo0MEY2QkI6NTZGMjVFOjZCMDYxREQ1IiwidmlzaXRvcl9pZCI6IjI0NjQ1MDQ1OTE4OTE3MDEyMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 556ab0ec4abce8d6c7160bb040cbee760178a909d6e5b586d1e7904e992ca48b |
| hovercard-subject-tag | issue:5962879628 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/485/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a2f5b85dd78b93160752f1928dd5648dc2bf9535c3100c27861f281d0342c25/developing-today/code/issues/485 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a2f5b85dd78b93160752f1928dd5648dc2bf9535c3100c27861f281d0342c25/developing-today/code/issues/485 |
| og:image:alt | Finding PR #479's bin/muse-proxy.mjs pins the Muse sandbox's network path into every child process, unconditionally, on any machine: const EGRESS_PROXY = 'http://hatch-egress-proxy:3128'; const EGR... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b25c3080e84402f75431d8dc7a96b2635219cec7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width