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
Copy file name to clipboardExpand all lines: content/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-firewall.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,31 @@ By default, {% data variables.product.prodname_copilot_short %}'s access to the
25
25
26
26
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.
27
27
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.
29
29
30
30
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.
31
31
32
32

33
33
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
+
34
53
## Allowlisting additional hosts in the agent's firewall
35
54
36
55
You can allowlist additional addresses in the agent's firewall.
@@ -39,7 +58,7 @@ You can allowlist additional addresses in the agent's firewall.
39
58
{% data reusables.repositories.sidebar-settings %}
40
59
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **{% data variables.copilot.copilot_coding_agent_short %}**.
41
60
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:
43
62
44
63
***Domains** (for example, `packages.contoso.corp`). Traffic will be allowed to the specified domain and any subdomains.
45
64
@@ -52,14 +71,6 @@ You can allowlist additional addresses in the agent's firewall.
52
71
1. Click **Add Rule**.
53
72
1. After validating your list, click **Save changes**.
54
73
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.
0 commit comments