Repository navigation
Conversation
Add a page for network.allowed_hosts: creating a browser with an allowlist, the entry rules, what a blocked request returns, changing or removing the list with update(), keeping it away from the agent, and the limitations. List network_policy_denied and its 403 on the proxy errors page, and narrow the private networking note now that allowed_hosts can change after creation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
- Updating the allowlist: new requests are refused within seconds and open connections close within about 30 seconds, or up to 10 minutes during a Kernel deploy. - The WebRtcIPHandling and WebRtcIPHandlingUrl Chrome policies are rejected with an allowlist. - Public suffix rejections include provider domains such as *.cloudfront.net. - Limitations list what can leave the VM without the egress proxy: VM processes, CDP contexts with their own proxy, extensions with the proxy permission, and DNS lookups Chromium makes itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocked connections to ports other than 443 get a bare 403 that Chromium doesn't expose, so they show up as network_loading_failed, not proxy_error. The browser image release this page waits for reports origin_response_incomplete with its own code, so the proxy errors page no longer needs to say it isn't reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
meliaj
marked this pull request as draft
October 5, 2026 23:44
meliaj
added a commit
to kernel/kernel-images
that referenced
this pull request
Oct 6, 2026
## Summary The metro egress proxy is gaining per-session egress allowlists. When a destination isn't on the allowlist, the proxy answers with a branded **403** carrying `X-Kernel-Proxy-Error: network_policy_denied`. Other proxy-layer failures still return 502. Before this change, the CDP monitor only checked branded 502s, so a denial produced no `proxy_error` event. This PR: - treats 403 as a branded-response status alongside 502. Only those two statuses pay for the header decode; other responses still cost just the status compare. A website's own 403 without the header emits nothing. - adds `network_policy_denied` to the published `proxy_error` code enum, so the event carries the typed code instead of `unknown` with a `raw_code`. The spec descriptions now mention the 403. - adds `destination_route_unavailable` and `origin_response_incomplete` to the enum as well. The proxy already serves both as branded 502s, but the image reported them as `unknown` with a `raw_code`. - updates the cdpmonitor README, which still described `proxy_error` as 502-only, and notes that a CONNECT the proxy refuses outright, such as a denied CONNECT to a port other than 443, shows up only as `network_loading_failed` because Chromium doesn't expose the refusal. The 403 handling can ship before or after the proxy change: until the proxy sends these 403s, nothing changes for them. The two added codes take effect as soon as an image with this change ships. It does need to be in a released image before kernel/docs#657 is published, since that PR says denials show up as `proxy_error` events and drops the proxy errors page's note that `origin_response_incomplete` isn't reported. ## Validation - `cd server && go test ./lib/cdpmonitor/... ./lib/events/... ./lib/oapi/...` - `KERNEL_CDPMONITOR_CHROME_E2E=1 go test ./lib/cdpmonitor/ -run TestProxyErrorE2E` against real Chromium, with new cases for `network_policy_denied` (403), `destination_route_unavailable` and `origin_response_incomplete`. The last two come back as `unknown` with the previous generated enum. - The new unit test fails with the old 502-only gate. - `lib/oapi/oapi.go` was regenerated by running the `oapi-generate` steps directly. Unrelated `go mod tidy` changes to `go.sum` were left out. - Container e2e tests pass in CI (`test-server-e2e`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes network telemetry classification for 403 responses and expands the public proxy_error enum; mis-gating could false-positive on unrelated 403s, though the header gate limits that. > > **Overview** > Extends CDP monitor **`proxy_error`** detection so branded metro responses with **`X-Kernel-Proxy-Error`** are recognized on **403** as well as **502**, enabling typed telemetry when egress **network policy** blocks a destination (`network_policy_denied` with status 403). Plain site 403s without the header still do not emit **`proxy_error`**. > > The OpenAPI/`oapi` **`proxy_error` code enum** gains **`network_policy_denied`**, **`destination_route_unavailable`**, and **`origin_response_incomplete`**, with docs noting 403 vs 502 and that some CONNECT refusals remain **`network_loading_failed`** only. Unit and Chromium E2E tests cover the 403 gate and new codes; README event taxonomy is updated accordingly. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 493f2d3. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: meliaj <17581886+meliaj@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
browsers/egress-allowlists.mdx) under Browsers → Advanced. It covers creating a browser withnetwork.allowed_hosts, the entry rules, what a blocked request returns (403withX-Kernel-Proxy-Error: network_policy_denied), changing or removing the list mid-session withupdate(), keeping the allowlist out of the agent's reach, and the limitationsnetwork_policy_deniedto the proxy errors table, and replace "the status is always502" with the 502/403 splitnetwork_loading_failedtelemetry events, notproxy_error, since Chromium doesn't expose their bare403origin_response_incompleteisn't reported as aproxy_errorevent. The browser image release this PR waits for reports it with its own code*.cloudfront.netproxypermission, and DNS lookups Chromium makes itselfprivate_hostsstill can't change after creation, butallowed_hostscanKeep this as a draft until egress allowlists are generally available in the API and a released browser image includes kernel/kernel-images#429, which reports
network_policy_deniedandorigin_response_incompletetelemetry. Drop the CDP-context and extension lines from the limitations if those paths are closed before then. A changelog line for that week's update:Testing
mint broken-links: no broken links foundmint devdocs.jsonparses🤖 Generated with Claude Code
Note
Low Risk
Documentation-only changes with no runtime or API code modifications.
Overview
Adds a new Egress Allowlists doc page and wires it into the Browsers → Advanced nav in
docs.json. The page documentsnetwork.allowed_hosts: creation and validation rules, blocked-request behavior (403+X-Kernel-Proxy-Error: network_policy_denied), mid-sessionupdate()/ removal vianull, CAPTCHA host requirements, security guidance, and limitations (proxy bypass paths, pools, Chrome policy conflicts).Proxy errors now documents the
502vs403split for allowlist blocks, adds thenetwork_policy_deniedrow, and shortens the telemetry caveat. Private networking clarifies that onlyprivate_hostsare immutable after creation—not the whole network config—so it stays consistent with updatable allowlists.Reviewed by Cursor Bugbot for commit 21d4d67. Bugbot is set up for automated code reviews on this repo. Configure here.