Registry Mirror
Skip to content

Conversation

@keithmattix

@keithmattix Keith Mattix II (keithmattix) commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

The PR title becomes the release note. Write it for users: what changed for them, not how the code changed.

Breaking change

Fixes #2062

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

Signed-off-by: Keith Mattix II <keithmattix2@gmail.com>
Signed-off-by: Keith Mattix II <keithmattix2@gmail.com>
@BenTheElder Benjamin Elder (BenTheElder) added kind/feature An enhancement / feature request or implementation area/network breaking-change PRs with breaking changes labels Oct 7, 2026
@keithmattix
Keith Mattix II (keithmattix) marked this pull request as ready for review October 8, 2026 17:40
Comment thread internal/ateomnet/sandbox.go Resolved
Comment thread internal/ateomnet/sandbox_linux_test.go Resolved
@BenTheElder
Benjamin Elder (BenTheElder) added this pull request to the merge queue Oct 14, 2026
Merged via the queue into agent-substrate:main with commit 4d3c5c3 Oct 14, 2026
15 of 16 checks passed
Haven Xia (HavenXia) pushed a commit to HavenXia/substrate that referenced this pull request Nov 18, 2026
…gent-substrate#3881)

An actor with a `*` http or https rule can make atenet-egress connect to
anything the gateway pod can reach, including the metadata server
(169.254.169.254) and Envoy's own admin port on localhost. agent-substrate#2319 blocked
link-local in atunnel, but the gateway resolves names itself, so a name
or Host header that points at those addresses still got through.

Part of agent-substrate#2086, related agent-substrate#2062.

- Adds `resolved_address_filter` to the shared `egress_dns_cache`, so
the cleartext, MITM and passthrough legs all drop loopback, link-local,
unspecified and the IPv6 metadata addresses after resolving. This also
covers a Host or SNI that is a bare IP like `169.254.169.254`.
- On the cleartext and MITM legs a denied address gets a 403 with a body
saying why, instead of the 503 `DNS resolution failure` Envoy sends for
a name that doesn't resolve. Passthrough closes the connection, same as
a ClientHello denial. Both HTTP legs now log `%RESPONSE_CODE_DETAILS%`
(`dns_resolution_failure{address_denied}`).
- The other six cache configs are now YAML aliases of the first one,
since Envoy rejects two different configs under one cache name.
- `TestEgressDNSCacheSettings` now requires the filter on every DNS
cache, in the manifests and the rendered overlays.

Private ranges (pod, Service, node and VPC IPs) are still reachable
under a `*` rule. Blocking them needs an operator-owned exception list,
because actors and our e2e reach in-cluster services on purpose. That's
a followup.

AI use: AI-assisted, I reviewed it and tested it against a local Envoy
1.39.5.

- [x] Tests pass
- [x] Docs updated

---------

Signed-off-by: Lior Lieberman <liorlieberman@google.com>
Jay (jay23606) added a commit to jay23606/substrate that referenced this pull request Nov 29, 2026
…gent-substrate#3881)

An actor with a `*` http or https rule can make atenet-egress connect to
anything the gateway pod can reach, including the metadata server
(169.254.169.254) and Envoy's own admin port on localhost. agent-substrate#2319 blocked
link-local in atunnel, but the gateway resolves names itself, so a name
or Host header that points at those addresses still got through.

Part of agent-substrate#2086, related agent-substrate#2062.

- Adds `resolved_address_filter` to the shared `egress_dns_cache`, so
the cleartext, MITM and passthrough legs all drop loopback, link-local,
unspecified and the IPv6 metadata addresses after resolving. This also
covers a Host or SNI that is a bare IP like `169.254.169.254`.
- On the cleartext and MITM legs a denied address gets a 403 with a body
saying why, instead of the 503 `DNS resolution failure` Envoy sends for
a name that doesn't resolve. Passthrough closes the connection, same as
a ClientHello denial. Both HTTP legs now log `%RESPONSE_CODE_DETAILS%`
(`dns_resolution_failure{address_denied}`).
- The other six cache configs are now YAML aliases of the first one,
since Envoy rejects two different configs under one cache name.
- `TestEgressDNSCacheSettings` now requires the filter on every DNS
cache, in the manifests and the rendered overlays.

Private ranges (pod, Service, node and VPC IPs) are still reachable
under a `*` rule. Blocking them needs an operator-owned exception list,
because actors and our e2e reach in-cluster services on purpose. That's
a followup.

AI use: AI-assisted, I reviewed it and tested it against a local Envoy
1.39.5.

- [x] Tests pass
- [x] Docs updated

---------

Signed-off-by: Lior Lieberman <liorlieberman@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/network breaking-change PRs with breaking changes kind/feature An enhancement / feature request or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Community meeting follow-up: cloud metadata servers

2 participants