Uh oh!
There was an error while loading. Please reload this page.
feat(policy): add GitHub Copilot API endpoints to base sandbox policy - #60
Conversation
e9c8a9d to
13c3630CompareUh oh!
There was an error while loading. Please reload this page.
13c3630 to
0156ab9Comparehtekdev
commented
Apr 1, 2026
Good catch — removed |
0156ab9 to
93780b4Comparehtekdev
commented
Apr 1, 2026
Good point — reverted the broad binary additions. The copilot policy now only allows the copilot-specific binary paths ( Also reverted the binary additions to |
The existing copilot policy was missing endpoints needed for Copilot CLI to function inside OpenShell sandboxes. This adds: - api.individual/business.githubcopilot.com (subscription-tier routing) - origin-tracker.githubusercontent.com (tracking) - telemetry.enterprise.githubcopilot.com (telemetry) - L7 inspection config (protocol: rest, tls: terminate) on API endpoints for proxy-based credential injection support - Additional binary paths (/usr/bin/node, /usr/bin/copilot, node_modules) Also adds copilot/node binary paths to github_rest_api and github_ssh_over_https policies so Copilot can access GitHub API and git. Tested end-to-end in a live OpenShell sandbox with proxy-based credential injection. All auth formats verified working.
93780b4 to
3b28f19Comparehtekdev
commented
Apr 1, 2026
Hold. Pending our CLI to get updated to update the version in the docker image |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
htekdev
commented
Apr 2, 2026
@johntmyers This PR is ready for review. |
Summary
Adds GitHub Copilot API endpoints to the base sandbox policy, enabling Copilot CLI to run inside OpenShell sandboxes with L7 proxy credential injection.
Changes
New:
copilot_apipolicyapi.githubcopilot.com— default Copilot APIapi.individual/business/enterprise.githubcopilot.com— subscription-tier routingcopilot-proxy.githubusercontent.com— model proxyorigin-tracker.githubusercontent.com— trackingtelemetry.enterprise.githubcopilot.com— telemetrydefault.exp-tas.com— feature flagsrelease-assets.githubusercontent.com— binary updatesprotocol: rest,tls: terminate) on API endpoints for credential injection/usr/bin/node,/usr/bin/copilot,/usr/lib/node_modules/**Updated:
github_rest_apipolicynode,copilot, andnode_modulesbinary paths so Copilot can access the GitHub APIUpdated:
github_ssh_over_httpspolicynode,copilot,node_modules, andgit-corebinary paths for Copilot git operationsRemoved: old
copilotpolicycopilot_apipolicy (old one lacked L7 config, missing subscription-tier endpoints)Testing
Verified end-to-end in a live OpenShell sandbox:
/modelsendpoint returns available models ✅/chat/completionsinference calls succeed ✅/mcp/readonlyMCP calls succeed ✅Related