Skip to main content

Copilot 允许列表参考

了解如何允许某些流量通过防火墙或代理服务器,以确保 Copilot 在您的组织中按预期工作。

谁可以使用此功能?

Proxy server maintainers or firewall maintainers

如果公司采用防火墙或代理服务器等安全措施,则应将本文中的 URL 添加到允许列表,以确保 Copilot 按预期工作。 用户必须能够对GitHub服务进行身份验证和访问GitHub.comCopilotGHE.com。

代理服务器或防火墙的每个用户也需要配置自己的环境才能连接到 Copilot。 请参阅 为 GitHub Copilot 配置网络设置

Copilot 在 GitHub.com 上

建议使用 /meta API 终结点查找在受限网络上使用的 GitHub 域。 有关详细信息,请参阅“允许从受限网络访问GitHub的服务”。

以下请求返回身份验证和连接到 Copilot On GitHub.com所需的大多数通配符域。 特定服务存在一些例外情况,或者是否只允许基于特定 Copilot 计划的流量。

Shell
gh api meta -q '.domains | .website, .copilot'

除了这些域,我们建议允许顶点域 github.com。 这不受上述查询的介绍 *.github.com ,但上述查询不返回,尽管 API 在以下部分 domains.actions返回。

特定必需的域

下表列出了所需的 Copilot特定域。 如果已允许终结点返回 /meta 的通配符域,则已隐式允许其中大多数域。

URL目的响应中的 /meta 相关通配符
https://github.com/login/*Authenticationgithub.com
https://github.githubassets.comAuthentication*.githubassets.com
https://avatars.githubusercontent.comAuthentication*.githubusercontent.com
https://github.com/copilot/*
Copilot 在 GitHub 上github.com
https://github.com/enterprises/YOUR-ENTERPRISE/*
托管用户帐户 的身份验证,仅需要 Enterprise Managed Users 时使用github.com
https://api.github.com/user用户管理*.github.com
https://api.github.com/copilot_internal/*用户管理*.github.com
https://collector.github.com/*分析遥测*.github.com
https://copilot-telemetry.githubusercontent.com/telemetry
Copilot 客户端遥测*.githubusercontent.com
https://default.exp-tas.com
Copilot 客户端实验default.exp-tas.com
https://copilot-proxy.githubusercontent.com
Copilot 建议的 API 服务*.githubusercontent.com
https://origin-tracker.githubusercontent.com
Copilot 建议的 API 服务*.githubusercontent.com
https://*.githubcopilot.com/*有关建议的 Copilot API 服务。 允许访问授权的用户,而不考虑 Copilot 计划。 如果使用基于订阅的网络路由,请不要将此 URL 添加到允许列表。 有关基于订阅的网络路由的详细信息,请参阅 管理 GitHub Copilot 对企业网络的访问*.githubcopilot.com
https://*.individual.githubcopilot.com有关建议的 Copilot API 服务。 允许通过 Copilot个人版 计划访问授权的用户。 如果使用基于订阅的网络路由,请不要将此 URL 添加到允许列表。不包括
https://*.business.githubcopilot.com有关建议的 Copilot API 服务。 允许通过 Copilot业务 计划访问授权的用户。 如果要使用基于订阅的网络路由阻止用户在网络上使用 Copilot业务 ,请不要将此 URL 添加到允许列表。不包括
https://*.enterprise.githubcopilot.com有关建议的 Copilot API 服务。 允许通过 Copilot Enterprise 计划访问授权的用户。 如果要使用基于订阅的网络路由阻止用户在网络上使用 Copilot Enterprise ,请不要将此 URL 添加到允许列表。不包括
https://copilot-reports.github.com
Copilot 使用情况指标报告下载*.github.com
https://copilot-reports-*.b01.azurefd.net
Copilot 使用情况指标报告下载(回退)。 对于下载绕过自定义域并从Azure Front Door CDN 提供服务的回退方案是必需的。不包括
https://usagereports*.blob.core.windows.net
Copilot 使用情况指标报告下载(回退)。 回退方案需要下载绕过Azure Front Door CDN,并且直接从Azure Blob 存储提供服务。不包括

Copilot 在 GHE.com 上

如果使用 带有数据驻留权的 GitHub Enterprise Cloud,则企业和 GitHub服务托管在唯一的 GHE.com子域上。

  1. 允许访问以下域,这些域涵盖大多数必需的服务。

    • https://*.SUBDOMAIN.ghe.com
    • https://SUBDOMAIN.ghe.com

    将 SUBDOMAIN 替换为企业污点。

  2. 如果计划使用公共代码检测,请允许访问 https://origin-tracker.githubusercontent.com。 这是针对托管在上的 GitHub.com公共代码检查生成的代码所必需的。 有关详细信息,请参阅“GitHub Copilot代码引用”。

其他所有必需的 GitHub.com 域 都不 是必需的 GHE.com。 例如:

  • 单个服务在子域上具有专用终结点(例如 https://copilot-proxy.SUBDOMAIN.ghe.com/
  • 客户端试验处于禁用状态 GHE.com,因此 https://default.exp-tas.com 不需要
  • 单个 Copilot 计划不可用 GHE.com,因此不支持基于订阅的网络路由(例如 https://*.individual.githubcopilot.com

编辑器特定的要求

除了连接到Copilot所需的 URL 外,还必须确保网络规则满足本地客户端的要求(例如,Visual Studio Code传入的vscode.dev出站请求)。 查找所选客户端的文档,例如:

  • Visual Studio Code 文档中
  •           Microsoft 文档中[在防火墙或代理服务器后安装和使用 Visual Studio 及 Azure 服务](https://learn.microsoft.com/en-us/visualstudio/install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server)
    

Copilot 语音功能

GitHub Copilot 命令行界面 (CLI) 和 GitHub Copilot 应用 中的语音功能使用 Foundry Local 在您的计算机上运行语音转文本模型。 若要查询模型目录和下载模型,这些功能会向以下Azure域发出出站请求。 如果要在防火墙或代理服务器后面使用语音功能,请将以下 URL 添加到允许列表:

域和/或 URL目的
https://ai.azure.com模型目录请求
https://api.catalog.azureml.ms检测模型下载的最佳Azure区域
https://*.api.azureml.ms区域模型目录终结点
https://amlwlrt4*.blob.core.windows.net从区域Azure Blob 存储下载模型。 通amlwlrt4*配符与 Foundry Local 语音功能用于下载模型的区域Azure Blob 存储帐户匹配。 特定存储帐户取决于离用户最近的Azure区域。

Copilot云代理 建议的允许列表

Copilot云代理 包含内置防火墙,默认启用推荐的允许列表。 推荐的允许列表允许访问:

  • 常见的操作系统包存储库(例如 Debian、Ubuntu、Red Hat)。
  • 常见容器注册表(例如,Docker Hub、Azure 容器注册表、AWS 弹性容器注册表)。
  • 打包常用编程语言使用的注册表(C#、Dart、Go、Haskell、Java、JavaScript、Perl、PHP、Python、Ruby、Rust、Swift)。
  • 常见证书颁发机构(用于允许验证 SSL 证书)。
  • 用于下载适用于 Playwright MCP 服务器的 Web 浏览器的主机。

有关配置 Copilot云代理 防火墙的详细信息,请参阅 自定义或禁用GitHub Copilot的防火墙

白名单允许访问以下主机:

Azure基础结构:元数据服务

  • 168.63.129.16

证书颁发机构:DigiCert

  • crl3.digicert.com
  • crl4.digicert.com
  • ocsp.digicert.com

证书颁发机构:Symantec

  • ts-crl.ws.symantec.com
  • ts-ocsp.ws.symantec.com
  • s.symcb.com
  • s.symcd.com

证书颁发机构:GeoTrust

  • crl.geotrust.com
  • ocsp.geotrust.com

证书颁发机构:Thawte

  • crl.thawte.com
  • ocsp.thawte.com

证书颁发机构:VeriSign

  • crl.verisign.com
  • ocsp.verisign.com

证书颁发机构:GlobalSign

  • crl.globalsign.com
  • ocsp.globalsign.com

证书颁发机构:SSL.com

  • crls.ssl.com
  • ocsp.ssl.com

证书颁发机构:IdenTrust

  • crl.identrust.com
  • ocsp.identrust.com

证书颁发机构:Sectigo

  • crl.sectigo.com
  • ocsp.sectigo.com

证书颁发机构:UserTrust

  • crl.usertrust.com
  • ocsp.usertrust.com

容器注册表:Docker

  • 172.18.0.1
  • ghcr.io
  • registry.hub.docker.com
  • *.docker.io
  • *.docker.com
  • production.cloudflare.docker.com
  • auth.docker.io
  • quay.io
  • mcr.microsoft.com
  • gcr.io
  • public.ecr.aws

GitHub: 内容和API

  • *.githubusercontent.com
  • raw.githubusercontent.com
  • objects.githubusercontent.com
  • lfs.github.com
  • github-cloud.githubusercontent.com
  • github-cloud.s3.amazonaws.com
  • codeload.github.com
  • scanning-api.github.com
  • api.mcp.github.com
  • uploads.github.com/copilot/chat/attachments/

GitHub:动作工件存储

  • productionresultssa0.blob.core.windows.net
  • productionresultssa1.blob.core.windows.net
  • productionresultssa2.blob.core.windows.net
  • productionresultssa3.blob.core.windows.net
  • productionresultssa4.blob.core.windows.net
  • productionresultssa5.blob.core.windows.net
  • productionresultssa6.blob.core.windows.net
  • productionresultssa7.blob.core.windows.net
  • productionresultssa8.blob.core.windows.net
  • productionresultssa9.blob.core.windows.net
  • productionresultssa10.blob.core.windows.net
  • productionresultssa11.blob.core.windows.net
  • productionresultssa12.blob.core.windows.net
  • productionresultssa13.blob.core.windows.net
  • productionresultssa14.blob.core.windows.net
  • productionresultssa15.blob.core.windows.net
  • productionresultssa16.blob.core.windows.net
  • productionresultssa17.blob.core.windows.net
  • productionresultssa18.blob.core.windows.net
  • productionresultssa19.blob.core.windows.net

编程语言和包管理器:C# /.NET

  • nuget.org
  • dist.nuget.org
  • api.nuget.org
  • nuget.pkg.github.com
  • dotnet.microsoft.com
  • pkgs.dev.azure.com
  • builds.dotnet.microsoft.com
  • dotnetcli.blob.core.windows.net
  • nugetregistryv2prod.blob.core.windows.net
  • azuresearch-usnc.nuget.org
  • azuresearch-ussc.nuget.org
  • dc.services.visualstudio.com
  • dot.net
  • download.visualstudio.microsoft.com
  • dotnetcli.azureedge.net
  • ci.dot.net
  • www.microsoft.com
  • oneocsp.microsoft.com
  • www.microsoft.com/pkiops/crl/

编程语言和包管理器:达特

  • pub.dev
  • pub.dartlang.org
  • storage.googleapis.com/pub-packages/
  • storage.googleapis.com/dart-archive/

编程语言和包管理器:Go

  • go.dev
  • golang.org
  • proxy.golang.org
  • sum.golang.org
  • pkg.go.dev
  • goproxy.io
  • storage.googleapis.com/proxy-golang-org-prod/

编程语言和包管理器:Haskell

  • haskell.org
  • *.hackage.haskell.org
  • get-ghcup.haskell.org
  • downloads.haskell.org

编程语言和包管理器:Java

  • www.java.com
  • jdk.java.net
  • api.adoptium.net
  • adoptium.net
  • search.maven.org
  • maven.apache.org
  • repo.maven.apache.org
  • repo1.maven.org
  • maven.pkg.github.com
  • maven-central.storage-download.googleapis.com
  • maven.google.com
  • maven.oracle.com
  • jcenter.bintray.com
  • oss.sonatype.org
  • repo.spring.io
  • gradle.org
  • services.gradle.org
  • plugins.gradle.org
  • plugins-artifacts.gradle.org
  • repo.grails.org
  • download.eclipse.org
  • download.oracle.com

编程语言和包管理器:Node.js/JavaScript

  • npmjs.org
  • npmjs.com
  • registry.npmjs.com
  • registry.npmjs.org
  • skimdb.npmjs.com
  • npm.pkg.github.com
  • api.npms.io
  • nodejs.org
  • yarnpkg.com
  • registry.yarnpkg.com
  • repo.yarnpkg.com
  • deb.nodesource.com
  • get.pnpm.io
  • bun.sh
  • deno.land
  • registry.bower.io
  • binaries.prisma.sh

编程语言和包管理器:Perl

  • cpan.org
  • www.cpan.org
  • metacpan.org
  • cpan.metacpan.org

编程语言和包管理器:PHP

  • repo.packagist.org
  • packagist.org
  • getcomposer.org

编程语言和包管理器:Python

  • pypi.python.org
  • pypi.org
  • pip.pypa.io
  • *.pythonhosted.org
  • files.pythonhosted.org
  • bootstrap.pypa.io
  • conda.binstar.org
  • conda.anaconda.org
  • binstar.org
  • anaconda.org
  • download.pytorch.org
  • repo.continuum.io
  • repo.anaconda.com

编程语言和包管理器:Ruby

  • rubygems.org
  • api.rubygems.org
  • rubygems.pkg.github.com
  • bundler.rubygems.org
  • gems.rubyforge.org
  • gems.rubyonrails.org
  • index.rubygems.org
  • cache.ruby-lang.org
  • *.rvm.io

编程语言和包管理器:Rust

  • crates.io
  • index.crates.io
  • static.crates.io
  • sh.rustup.rs
  • static.rust-lang.org

编程语言和包管理器:Swift

  • download.swift.org
  • swift.org
  • cocoapods.org
  • cdn.cocoapods.org

基础结构和工具:HashiCorp

  • releases.hashicorp.com
  • apt.releases.hashicorp.com
  • yum.releases.hashicorp.com
  • registry.terraform.io

基础结构和工具:JSON 架构

  • json-schema.org
  • json.schemastore.org

基础结构和工具:剧作家

  • playwright.download.prss.microsoft.com
  • cdn.playwright.dev
  • playwright.azureedge.net
  • playwright-akamai.azureedge.net
  • playwright-verizon.azureedge.net
  • storage.googleapis.com/chrome-for-testing-public

Linux 包管理器:Ubuntu

  • archive.ubuntu.com
  • security.ubuntu.com
  • ppa.launchpad.net
  • keyserver.ubuntu.com
  • azure.archive.ubuntu.com
  • api.snapcraft.io

Linux 包管理器:Debian

  • deb.debian.org
  • security.debian.org
  • keyring.debian.org
  • packages.debian.org
  • debian.map.fastlydns.net
  • apt.llvm.org

Linux 包管理器:Fedora

  • dl.fedoraproject.org
  • mirrors.fedoraproject.org
  • download.fedoraproject.org

Linux 包管理器:CentOS

  • mirror.centos.org
  • vault.centos.org

Linux 包管理器:Alpine

  • dl-cdn.alpinelinux.org
  • pkg.alpinelinux.org

Linux 包管理器:Arch

  • mirror.archlinux.org
  • archlinux.org

Linux 包管理器:SUSE

  • download.opensuse.org

Linux 包管理器:Red Hat

  • cdn.redhat.com

Linux 包管理器:常见包源

  • packagecloud.io
  • packages.cloud.google.com
  • packages.microsoft.com

Other

  • dl.k8s.io
  • pkgs.k8s.io