Skip to content

Commit eb59857

Browse files
timrogershubwriterCopilot
authored
Provide more information about what it allowed by Copilot coding agent's recommended firewall allowlist (#57534)
Co-authored-by: hubwriter <hubwriter@github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 058613b commit eb59857

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

content/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-firewall.md

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,31 @@ By default, {% data variables.product.prodname_copilot_short %}'s access to the
2525

2626
Limiting access to the internet helps to manage data exfiltration risks, where surprising behavior from {% data variables.product.prodname_copilot_short %}, or malicious instructions given to it, could lead to code or other sensitive information being leaked to remote locations.
2727

28-
The default firewall rules allow access to a number of hosts that {% data variables.product.prodname_copilot_short %} uses to interact with {% data variables.product.github %} or to download dependencies.
28+
The firewall always allows access to a number of hosts that {% data variables.product.prodname_copilot_short %} uses to interact with {% data variables.product.github %}. By default, a recommended allowlist is also enabled to allow the agent to download dependencies.
2929

3030
If {% data variables.product.prodname_copilot_short %} tries to make a request which is blocked by the firewall, a warning is added to the pull request body (if {% data variables.product.prodname_copilot_short %} is creating a pull request for the first time) or to a comment (if {% data variables.product.prodname_copilot_short %} is responding to a pull request comment). The warning shows the blocked address and the command that tried to make the request.
3131

3232
![Screenshot of a warning from {% data variables.product.prodname_copilot_short %} about being blocked by the firewall.](/assets/images/help/copilot/coding-agent/firewall-warning.png)
3333

34+
## Managing the recommended firewall allowlist
35+
36+
The recommended allowlist, enabled by default, allows access to:
37+
38+
* Common operating system package repositories (for example, Debian, Ubuntu, Red Hat).
39+
* Common container registries (for example, Docker Hub, Azure Container Registry, AWS Elastic Container Registry).
40+
* Packages registries used by popular programming languages (C#, Dart, Go, Haskell, Java, JavaScript, Perl, PHP, Python, Ruby, Rust, Swift).
41+
* Common certificate authorities (to allow SSL certificates to be validated).
42+
* Hosts used to download web browsers for the Playwright MCP server.
43+
44+
You can choose to turn off the recommended allowlist.
45+
46+
{% data reusables.repositories.navigate-to-repo %}
47+
{% data reusables.repositories.sidebar-settings %}
48+
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **{% data variables.copilot.copilot_coding_agent_short %}**.
49+
1. Toggle the **Recommended allowlist** setting **off**.
50+
51+
To use the recommended allowlist in addition to your own allowlist, keep the **Recommended allowlist** setting **on**, and add your additional addresses in the **Custom allowlist** page.
52+
3453
## Allowlisting additional hosts in the agent's firewall
3554

3655
You can allowlist additional addresses in the agent's firewall.
@@ -39,7 +58,7 @@ You can allowlist additional addresses in the agent's firewall.
3958
{% data reusables.repositories.sidebar-settings %}
4059
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **{% data variables.copilot.copilot_coding_agent_short %}**.
4160
1. Click **Custom allowlist**
42-
1. Add the addresses you want to include in the allow list. You can include:
61+
1. Add the addresses you want to include in the allowlist. You can include:
4362

4463
* **Domains** (for example, `packages.contoso.corp`). Traffic will be allowed to the specified domain and any subdomains.
4564

@@ -52,14 +71,6 @@ You can allowlist additional addresses in the agent's firewall.
5271
1. Click **Add Rule**.
5372
1. After validating your list, click **Save changes**.
5473

55-
## Overwriting the recommended firewall allowlist
56-
57-
By default, the firewall allows access to a number of hosts that are commonly used to download dependencies or that {% data variables.product.prodname_copilot_short %} uses to interact with {% data variables.product.github %}.
58-
59-
To disable this, toggle the **Recommended allowlist** setting **off**.
60-
61-
To use the recommended allowlist in addition to your own allowlist, keep the **Recommended allowlist** setting **on**, and add your additional addresses in the **Custom allowlist** page.
62-
6374
### Disabling the firewall
6475

6576
> [!WARNING]

0 commit comments

Comments
 (0)