Repository navigation
Description
Agent Substrate assumes IPv4. Actors get only the IPv4 link-local
169.254.17.0/30, so they cannot run on an IPv6-only cluster, and on a
dual-stack cluster they have no IPv6 egress. I'd like IPv6 to work the same
as IPv4, including on clusters with no IPv4 at all.
During investigation of IPv6 support i found the following issues when running on a kind v6-only cluster:
- Actors have no IPv6 address, route or nftables rules, so egress and wakeup
probes fail. - Envoy and agentgateway bind 0.0.0.0, which is IPv4 only for them. The CSI
NFS and hostpath proxies fail their probes, and the agentgateway stats port
is unreachable. The Go listeners already accept both families. - kind points CoreDNS at the node's IPv4 resolver. Pods cannot reach it, so
atelet cannot pull golden images or fetch the gVisor runtime. - The agentgateway egress config joins address and port with a colon, so an
IPv6 destination comes out as fd00::1:8443. - The Jupyter demo binds IPv4 only.
Proposal: the actor sandbox follows the worker pod's IP families. It gets
IPv4 169.254.17.0/30, IPv6 fd00:a7e:17::/126, or both, with one nftables
table, /etc/hosts entry and wakeup probe address per family. A dial to a
family the sandbox lacks fails with ENETUNREACH. Both gVisor and microVM
workers pass the families to actornet. Single-stack IPv4 clusters behave as
before.
I have this working in my fork, split into five PRs:
- Listen on IPv6 in the CSI proxies and agentgateway stats (6 lines)
- Resolve names in IPv6-only kind clusters (hack/create-kind-cluster.sh)
- Run actors on IPv6-only and dual-stack clusters (actornet, both workers,
about 1,240 lines, 60% tests) - Listen on both IP families in the Jupyter demo (1 line)
- Bracket IPv6 destinations in the agentgateway egress authority
The full e2e suite passes on kind for ipv4, ipv6 and dual, on gVisor and
microVM, with both the Envoy and agentgateway dataplanes.
Known gaps:
- microVM snapshots do not record the families they were taken with.
- An IPv6-only cluster cannot pull from IPv4-only registries such as quay.io.
Questions:
- Is this direction acceptable, and is the split above easy to review?
- Do you want an IPv6-only or dual-stack lane in the e2e CI matrix? I can
send that as a follow-up PR.
AI use: I used Claude Code to write the changes and run the tests.
I reviewed every change and can explain it.
Activity
steigr commentedon Nov 27, 2026
IPv6 actor networking is landing upstream in agent-substrate#3867 (tracked in agent-substrate#3619). It takes a different design: actors keep the IPv4 /30 on every worker, and IPv6 is behind the
ActorIPv6preview gate. This fork will get it through the next upstream sync.I closed #183 to #187. The fixes agent-substrate#3867 doesn't cover (agentgateway stats listener, agentgateway egress authority, Jupyter demo listener) will go to agent-substrate as separate PRs.