Skip to content

Enforce AWF domain policy on Claude hosted web search and fetch - #8929

Merged
lpcox merged 6 commits into
mainfrom
copilot/enforce-awf-domain-policy
Sep 24, 2026
Merged

lpcox merged 6 commits into
mainfrom
copilot/enforce-awf-domain-policy

Conversation

Copilot AI commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Anthropic's hosted web_search_* / web_fetch_* server tools execute on Anthropic infrastructure, so Squid only ever sees api.anthropic.com — the searched or fetched destination is invisible to the domain ACL and to access logs, and the retrieved content returns inside an already-allowed API response. This adds an AWF-owned domain policy that the trusted api-proxy sidecar injects and enforces on every matching hosted tool before the request is dispatched upstream.

Claude-only by design; no Codex/OpenAI enforcement here.

apiProxy:
  hostedWeb:
    claude:
      enabled: true
      allowedDomains: [docs.github.com, nodejs.org]
      maxUses: 5

Config contract

  • New closed object apiProxy.hostedWeb.claude in docs/awf-config.schema.json (canonical) and the regenerated src/awf-config-schema.json. Schema itself enforces that enabled: true requires exactly one of allowedDomains / blockedDomains, and that enabled: false carries neither — there is no implicit unrestricted success state.
  • Config-only: no CLI flag, no environment alias. Typed through AwfFileConfig → config-mapper → build-config → api-proxy service options.
  • src/claude-hosted-web-policy.ts normalizes and validates domains (lowercase DNS hostnames only; no scheme, path, port, credentials, IP, CIDR, wildcard, or localhost; dedup after normalization) and throws with a source-labelled message, so file and --config - (JSON or YAML) both fail before any container starts.
  • src/services/api-proxy-env-config.ts serializes the normalized policy into AWF_CLAUDE_HOSTED_WEB_POLICY. It is derived solely from validated config and is never merged from agent-controlled env.

Sidecar enforcement

  • containers/api-proxy/claude-hosted-web.js — validated web_(search|fetch)_YYYYMMDD matcher (with month/day range checks) rather than an exact-name list. A web_search_* / web_fetch_* candidate that isn't a valid version is rejected, not forwarded unprotected.
  • The configured policy is an immutable upper bound. Requests may narrow within the same mode (allowlist intersection, blocklist union, min(configured, requested) for max_uses); they cannot broaden, replace, or remove it. Cross-mode filters, requests carrying both filters, empty intersections, and malformed domains/tools/max_uses are rejected with stable error codes before upstream dispatch. Errors carry no prompts, queries, URLs, or bodies.
  • Requests with no matching hosted tool are forwarded byte-unchanged.
  • providers/anthropic.js parses the policy at adapter construction — an invalid serialized policy fails sidecar startup, not the first request — and composes the transform last, so model rewriting and prompt-cache transforms cannot re-expand or drop it. Added to the Dockerfile COPY list.

Docs

  • docs/awf-config-spec.md §9.8: normative section with config-source and request-level precedence tables, stdin examples, error table, and an explicit warning that omitting the object preserves pass-through and does not constrain Claude-hosted egress.
  • docs/api-proxy-sidecar.md: why Squid cannot observe provider-hosted destinations, the sidecar trust boundary, and the new env-var row.

Tests

42 host-side (schema valid/invalid matrix, schema-copy equality, JSON/YAML × file/stdin parity, mapping, normalization, env serialization, and that internal sensitive domains never reach the sidecar policy) and 71 container-side covering the full precedence and failure matrix, including future date-versioned tool names, multiple tools per request, and end-to-end assertions of the exact upstream JSON body observed by a mock Anthropic endpoint.

One note for reviewers: the issue refers to network.sensitiveAllowDomains, which doesn't exist in this repo — the equivalent is the internal sensitiveAllowedDomains (spec §9.7), and that's what the non-disclosure test asserts against.

Copilot AI changed the title [WIP] Add AWF domain policy enforcement for Claude web search Enforce AWF domain policy on Claude hosted web search and fetch Sep 23, 2026
Copilot AI requested a review from lpcox September 23, 2026 23:04
@lpcox
lpcox marked this pull request as ready for review September 24, 2026 00:35
Copilot AI balanced review requested due to automatic review settings September 24, 2026 00:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Domain hierarchy handling, schema/runtime consistency, and request-array scalability need correction before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 3 Medium severity

Open (3)
What changed in this PR

Adds Claude hosted web policy enforcement to the trusted API-proxy sidecar, closing provider-hosted egress gaps invisible to Squid.

Changes:

  • Adds config schema, validation, normalization, and sidecar serialization.
  • Enforces allowlists, blocklists, disabling, and usage limits.
  • Adds documentation and comprehensive host/sidecar tests.
File Description
src/​types/​api-proxy-diagnostics-options.ts Adds runtime policy option.
src/​services/​api-proxy-env-config.ts Serializes normalized policy.
src/​config-mapper.ts Maps file configuration.
src/​config-file.ts Types the config structure.
src/​commands/​build-config.ts Builds the runtime option.
src/​claude-hosted-web-policy.ts Validates and normalizes policies.
src/​claude-hosted-web-policy.test.ts Tests host-side configuration.
src/​awf-config-schema.json Adds runtime schema definitions.
docs/​awf-config.schema.json Adds canonical public schema.
docs/​awf-config-spec.md Documents the normative contract.
docs/​api-proxy-sidecar.md Documents sidecar enforcement.
containers/​api-proxy/​providers/​anthropic.js Installs the enforcement transform.
containers/​api-proxy/​Dockerfile Includes the new module.
containers/​api-proxy/​claude-hosted-web.test.js Tests policy behavior.
containers/​api-proxy/​claude-hosted-web.server.test.js Tests request-pipeline enforcement.
containers/​api-proxy/​claude-hosted-web.js Implements sidecar enforcement.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread containers/api-proxy/claude-hosted-web.js
Comment thread containers/api-proxy/claude-hosted-web.js Outdated
Comment thread docs/awf-config.schema.json Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-8929 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 7674882

lpcox and others added 2 commits September 23, 2026 17:46
Updated the schema for provider allowlist and blocked domains.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Refactor domain filtering logic to handle subdomain matching.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • example.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "example.com"

See Network Configuration for more information.

🛡️ Egress verdict from Smoke Copilot Network Isolation

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • example.com
  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "example.com"
    - "github.com"

See Network Configuration for more information.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • o205451.ingest.us.sentry.io

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "o205451.ingest.us.sentry.io"

See Network Configuration for more information.

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Build Test Suite completed successfully!

Warning

Firewall blocked 8 domains

The following domains were blocked by the firewall during workflow execution:

  • api.nuget.org
  • bun.sh
  • dc.services.visualstudio.com
  • deno.land
  • dl.deno.land
  • github.com
  • releaseassets.githubusercontent.com
  • repo.maven.apache.org

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.nuget.org"
    - "bun.sh"
    - "dc.services.visualstudio.com"
    - "deno.land"
    - "dl.deno.land"
    - "github.com"
    - "releaseassets.githubusercontent.com"
    - "repo.maven.apache.org"

See Network Configuration for more information.

Generated by Build Test Suite for #8929

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

Warning

Firewall blocked 13 domains

The following domains were blocked by the firewall during workflow execution:

  • ab.chatgpt.com
  • accounts.google.com
  • android.clients.google.com
  • api.github.com
  • clients2.google.com
  • collector.github.com
  • contentautofill.googleapis.com
  • github.com
  • github.githubassets.com
  • msfeed25.pkgs.visualstudio.com
  • update.googleapis.com
  • www.google.com
  • www.gstatic.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"
    - "accounts.google.com"
    - "android.clients.google.com"
    - "api.github.com"
    - "clients2.google.com"
    - "collector.github.com"
    - "contentautofill.googleapis.com"
    - "github.com"
    - "github.githubassets.com"
    - "msfeed25.pkgs.visualstudio.com"
    - "update.googleapis.com"
    - "www.google.com"
    - "www.gstatic.com"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Claude passed

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • api.anthropic.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.anthropic.com"

See Network Configuration for more information.

Generated by Smoke Claude for #8929

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...

🪪 BYOK (AOAI Entra) report filed by Smoke Copilot BYOK AOAI (Entra)

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Security Guard completed successfully!

Security review complete: PR #8929 introduces Claude hosted web policy enforcement in the API proxy sidecar. No security weakening detected. The implementation uses fail-closed design, robust input validation (label-by-label DNS checking, strict version matching), and correct transform ordering. This is a security-strengthening change that closes a semantic gap where Anthropic-hosted tools could bypass configured domain policies.

Generated by Security Guard for #8929

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Cloud Hypervisor + Copilot

  1. github-list_pull_requests (merged): PASS — got PR Document explicit upstream proxy port fix in runner-doctor B2 catalog #8925 (merged 2026-09-23)
  2. curl https://github.com: PASS — HTTP 200
  3. Write/read /tmp/gh-aw/agent/smoke-cloud-hypervisor-${GITHUB_RUN_ID}.txt: PASS — wrote and read back line
  4. curl (example.com/redacted): PASS — blocked (HTTP 000)

Overall: PASS (4/4)

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • example.com
  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "example.com"
    - "github.com"

See Network Configuration for more information.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Claude Engine Validation

Check Status
API ✅ PASS
gh CLI ✅ PASS
File ✅ PASS

Overall result: PASS

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • api.anthropic.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.anthropic.com"

See Network Configuration for more information.

Generated by Smoke Claude for #8929 · claude · haiku45 · 55.9 AIC · ⊞ 4.7K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

EGRESS_RESULT allow=pass deny=pass

✅ Allowed domain (api.github.com) reachable — allowed=200
✅ Non-allowed domain (example.com) blocked — proxy denial (SSL/connection error)

Overall status: PASS

cc @lpcox

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • example.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "example.com"

See Network Configuration for more information.

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions github-actions Bot added smoke-copilot-network-isolation Copilot network-isolation egress smoke test smoke-copilot labels Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot Engine — PR #8929 "Enforce AWF domain policy on Claude hosted web search and fetch"

Overall: PASS

cc @Copilot @lpcox

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot BYOK (Direct) Mode — ✅ PASS

  • ✅ GitHub.com connectivity (HTTP 200)
  • ✅ File write/read test (BYOK test artifact readable)
  • ✅ MCP connectivity (PR data fetched)
  • ✅ BYOK inference (direct mode via api-proxy → api.githubcopilot.com)

Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY via api-proxy sidecar).

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: API Proxy OpenTelemetry Tracing — Results

Scenario Result
1. Module Loading ✅ otel.js loaded successfully. isEnabled: true. Exports: startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, shutdown, isEnabled, _provider, _ProxyAwareOtlpExporter, _FileSpanExporter, _FanOutSpanExporter, _parseEndpoints, _parseOtlpHeaders, _buildResourceSpans, _createOtlpWorkloadIdentity
2. Test Suite ✅ 3 suites passed, 68/68 tests passed (0 failed) covering fan-out init, header/endpoint parsing, span lifecycle (startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError), OTLP/JSON serialization, ProxyAwareOtlpExporter, and FileSpanExporter
3. Env Var Forwarding ✅ Agent passthrough (src/services/agent-environment/env-passthrough.ts) forwards GITHUB_AW_OTEL_TRACE_ID and GITHUB_AW_OTEL_PARENT_SPAN_ID. Api-proxy config (src/services/api-proxy-env-config.ts) forwards GH_AW_OTLP_ENDPOINTS, OTEL_EXPORTER_OTLP_ENDPOINT, GITHUB_AW_OTEL_TRACE_ID, and GITHUB_AW_OTEL_PARENT_SPAN_ID
4. Token Tracker Integration ✅ onUsage callback present in token-tracker-http.js (OTEL hook point)
5. OTEL Diagnostics ⚪ No otel.jsonl span file found in /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/ for this run (only token-usage.jsonl and models.json present) — no OTLP endpoint was configured for this smoke run, so no spans were exported. This is expected when GH_AW_OTLP_ENDPOINTS/OTEL_EXPORTER_OTLP_ENDPOINT aren't set in the environment; module and unit-test validation (Scenarios 1–4) confirm the tracing code path itself is functioning correctly

Overall: ✅ Pass — All implemented functionality validated; Scenario 5's lack of exported spans is expected given no OTLP collector endpoint was configured for this run, not a regression.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • o205451.ingest.us.sentry.io

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "o205451.ingest.us.sentry.io"

See Network Configuration for more information.

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Services Connectivity

  • Redis PING: ✅ PONG
  • Postgres pg_isready: ✅ accepting connections
  • Postgres SELECT 1: ✅ 1

Overall: PASS

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Gemini Engine Validation

  • GitHub MCP Testing: ✅ PASS
    • PR 1: Document explicit upstream proxy port fix in runner-doctor B2 catalog
    • PR 2: Register nvx as an opt-in preview runtime
  • GitHub.com Connectivity: ✅ PASS
  • File Writing Testing: ✅ PASS
  • Bash Tool Testing: ✅ PASS

Overall Status: PASS

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • github.com
  • play.googleapis.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"
    - "play.googleapis.com"

See Network Configuration for more information.

💎 Faceted by Smoke Gemini
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ✅ 1/1 passed ✅ PASS
Bun hono ✅ 1/1 passed ✅ PASS
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world ✅ N/A ✅ PASS
.NET json-parse ✅ N/A ✅ PASS
Go color ✅ ok ✅ PASS
Go env ✅ ok ✅ PASS
Go uuid ✅ ok ✅ PASS
Java gson ✅ 1/1 passed ✅ PASS
Java caffeine ✅ 1/1 passed ✅ PASS
Node.js clsx ✅ passed ✅ PASS
Node.js execa ✅ passed ✅ PASS
Node.js p-limit ✅ passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — PASS

All 18 test projects across all 8 ecosystems (Bun, C++, Deno, .NET, Go, Java, Node.js, Rust) built and tested successfully through the AWF firewall network.

Note: Java Maven builds required overriding localRepository to a writable path in ~/.m2/settings.xml due to a sandbox filesystem permission restriction on the default ~/.m2/repository (unrelated to firewall/proxy behavior — Maven's proxy config itself worked correctly).

Warning

Firewall blocked 8 domains

The following domains were blocked by the firewall during workflow execution:

  • api.nuget.org
  • bun.sh
  • dc.services.visualstudio.com
  • deno.land
  • dl.deno.land
  • github.com
  • releaseassets.githubusercontent.com
  • repo.maven.apache.org

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.nuget.org"
    - "bun.sh"
    - "dc.services.visualstudio.com"
    - "deno.land"
    - "dl.deno.land"
    - "github.com"
    - "releaseassets.githubusercontent.com"
    - "repo.maven.apache.org"

See Network Configuration for more information.

Generated by Build Test Suite for #8929 · copilot · auto · 36.3 AIC · ⊞ 11.8K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Chroot Version Comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.14 Python 3.12.14 ✅ YES
Node.js v24.21.0 v2.98.0 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Result: ❌ Not all versions matched — Node.js version differs between host and chroot environment (smoke-chroot label not applied).

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Merged PRs: "Document explicit upstream proxy port fix in runner-doctor B2 catalog"; "Register nvx as an opt-in preview runtime"
GitHub PR/discussion read: ✅
Playwright title check: ✅
File write/read: ✅
Discussion comment: ✅
AWF build: ✅
Overall: PASS

Warning

Firewall blocked 13 domains

The following domains were blocked by the firewall during workflow execution:

  • ab.chatgpt.com
  • accounts.google.com
  • android.clients.google.com
  • api.github.com
  • clients2.google.com
  • collector.github.com
  • contentautofill.googleapis.com
  • github.com
  • github.githubassets.com
  • msfeed25.pkgs.visualstudio.com
  • update.googleapis.com
  • www.google.com
  • www.gstatic.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"
    - "accounts.google.com"
    - "android.clients.google.com"
    - "api.github.com"
    - "clients2.google.com"
    - "collector.github.com"
    - "contentautofill.googleapis.com"
    - "github.com"
    - "github.githubassets.com"
    - "msfeed25.pkgs.visualstudio.com"
    - "update.googleapis.com"
    - "www.google.com"
    - "www.gstatic.com"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

@lpcox
lpcox merged commit d261f33 into main Sep 24, 2026
149 of 153 checks passed
@lpcox
lpcox deleted the copilot/enforce-awf-domain-policy branch September 24, 2026 01:19

This branch was successfully deployed

1 active deployment
aoai-model — 4620c9bd Deployed Sep 24, 2026 by lpcox via conclusion #1751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce AWF domain policy on Claude hosted web search and fetch

3 participants