forked from admin/ansible
feat(hermes_squid): whitelist GitHub Copilot domains (#40)
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: admin/ansible#40 Co-authored-by: Alex Rudenk <rudolfss13+hermes@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user