Skip to content

Commit 52f8dae

Browse files
committed
fix(sandbox): complete copilot network policy from official allowlist
Adds missing endpoints from GitHub's official Copilot allowlist reference: - api.individual.githubcopilot.com (Pro/Pro+ plan routing) - api.business.githubcopilot.com (Business plan routing) - copilot-proxy.githubusercontent.com (model proxy) - copilot-telemetry.githubusercontent.com (telemetry) - default.exp-tas.com (feature flags/experimentation) - origin-tracker.githubusercontent.com (API service) Removes gh binaries since copilot is a standalone binary, not gh copilot. Source: https://docs.github.com/en/copilot/reference/copilot-allowlist-reference
1 parent 89833d4 commit 52f8dae

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/openshell-sandbox/testdata/sandbox-policy.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,19 @@ network_policies:
6363
- { host: github.com, port: 443 }
6464
- { host: api.github.com, port: 443 }
6565
- { host: api.githubcopilot.com, port: 443 }
66+
- { host: api.individual.githubcopilot.com, port: 443 }
67+
- { host: api.business.githubcopilot.com, port: 443 }
6668
- { host: api.enterprise.githubcopilot.com, port: 443 }
69+
- { host: copilot-proxy.githubusercontent.com, port: 443 }
70+
- { host: copilot-telemetry.githubusercontent.com, port: 443 }
71+
- { host: default.exp-tas.com, port: 443 }
72+
- { host: origin-tracker.githubusercontent.com, port: 443 }
6773
- { host: release-assets.githubusercontent.com, port: 443 }
6874
binaries:
6975
- { path: "/usr/lib/node_modules/@github/copilot/node_modules/@github/**/copilot" }
7076
- { path: /usr/local/bin/copilot }
7177
- { path: "/home/*/.local/bin/copilot" }
7278
- { path: /usr/bin/node }
73-
- { path: /usr/bin/gh }
74-
- { path: /usr/local/bin/gh }
7579

7680
gitlab:
7781
name: gitlab

0 commit comments

Comments
 (0)