From 0998f4bc0565b01482781ddd2f252255dcd8b54b Mon Sep 17 00:00:00 2001 From: Alex Rudenk Date: Sun, 20 Sep 2026 13:20:30 +0200 Subject: [PATCH] feat(hermes_squid): whitelist GitHub Copilot domains (#40) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirror of hermes/ansible#6. Allow Hermes to reach GitHub Copilot network endpoints through the corporate squid proxy. Adds a `copilot_domains` ACL covering the domains required by GitHub Copilot (IDE integration and ACP): - `api.github.com` — user/auth and copilot REST endpoints - `copilot-proxy.githubusercontent.com` — completion and chat streaming backend - `*.githubcopilot.com` — newer Copilot control plane - `copilot-telemetry.githubusercontent.com` — older Copilot telemetry - `default.exp-tas.com` — Microsoft AID/Experimentation rollout - `marketplace.visualstudio.com` + `vscode.blob.core.windows.net` — VS Code Marketplace and VSIX downloads - `*.githubassets.com`, `*.vscode-unpkg.net` — asset/CDN hosts used by extension UI `.github.com`, `*.githubusercontent.com`, and the rest of `stt_pkg_domains` were already allowed, so no overlap. Validation: a simple login + completion request from an IDE through `http://squid:3128`. Reviewed-on: https://gitea.rudolf.keenetic.link/admin/ansible/pulls/40 Co-authored-by: Alex Rudenk --- hermes_squid/squid.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hermes_squid/squid.conf b/hermes_squid/squid.conf index 910ebad..e303ad5 100644 --- a/hermes_squid/squid.conf +++ b/hermes_squid/squid.conf @@ -4,6 +4,7 @@ acl localnet src 192.168.0.0/16 acl allowed_domains dstdomain .minimax.io .minimax.chat .minimax.com .githubusercontent.com deb.debian.org gitea.rudolf.keenetic.link acl telegram_domains dstdomain .telegram.org .t.me acl stt_pkg_domains dstdomain .pypi.org .files.pythonhosted.org .huggingface.co .github.com .models.dev .registry.npmjs.org .cdn-lfs.huggingface.co .hf.co .xethub.hf.co .cas-server.xethub.hf.co +acl copilot_domains dstdomain api.github.com copilot-proxy.githubusercontent.com .githubcopilot.com copilot-telemetry.githubusercontent.com default.exp-tas.com marketplace.visualstudio.com vscode.blob.core.windows.net .githubassets.com .vscode-unpkg.net acl telegram_ips dst 91.108.4.0/22 91.108.8.0/22 91.108.12.0/22 91.108.16.0/22 91.108.20.0/22 91.108.56.0/22 149.154.160.0/20 185.76.151.0/24 acl CONNECT method CONNECT acl SSL_ports port 443 @@ -14,6 +15,7 @@ http_access deny CONNECT !SSL_ports http_access allow localnet allowed_domains http_access allow localnet telegram_domains http_access allow localnet stt_pkg_domains +http_access allow localnet copilot_domains http_access allow localnet telegram_ips http_access deny all