You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: configure Copilot CLI offline+BYOK mode when api-proxy is enabled with COPILOT_API_KEY (#1923)
* Initial plan
* feat: support Copilot CLI offline mode + BYOK for api-proxy deployments
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/dac02eb8-4902-453e-813b-887f091740f0
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* fix: accept any unix socket in checkDockerHost
The checkDockerHost function used a Set of two hardcoded socket paths
(/var/run/docker.sock, /run/docker.sock) to validate DOCKER_HOST. Any
other unix socket path (e.g. /tmp/custom-docker.sock) was incorrectly
rejected as an external daemon.
All unix:// sockets are local by definition — only TCP endpoints
(tcp://host:port) indicate an external Docker daemon incompatible
with AWF's network isolation model.
Replace the Set lookup with a unix:// prefix check.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Landon Cox <landon.cox@microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/api-proxy-sidecar.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,9 @@ The agent container receives **redacted placeholders** and proxy URLs:
145
145
|`COPILOT_TOKEN`|`placeholder-token-for-credential-isolation`|`COPILOT_GITHUB_TOKEN` or `COPILOT_API_KEY` provided to host | Placeholder token (real auth via API_URL) |
146
146
|`COPILOT_GITHUB_TOKEN`|`placeholder-token-for-credential-isolation`|`COPILOT_GITHUB_TOKEN` provided to host | Placeholder token protected by one-shot-token |
147
147
|`COPILOT_API_KEY`|`placeholder-token-for-credential-isolation`|`COPILOT_API_KEY` provided to host | BYOK placeholder token protected by one-shot-token |
|`COPILOT_PROVIDER_BASE_URL`|`http://172.30.0.30:10002`|`COPILOT_API_KEY` provided to host | Points Copilot CLI BYOK provider at sidecar |
150
+
|`COPILOT_PROVIDER_API_KEY`|`placeholder-token-for-credential-isolation`|`COPILOT_API_KEY` provided to host | BYOK provider API key placeholder (real key in sidecar) |
148
151
|`OPENAI_API_KEY`| Not set |`--enable-api-proxy`| Excluded from agent (held in api-proxy) |
149
152
|`ANTHROPIC_API_KEY`| Not set |`--enable-api-proxy`| Excluded from agent (held in api-proxy) |
150
153
|`HTTP_PROXY`|`http://172.30.0.10:3128`| Always | Routes through Squid proxy |
0 commit comments