Repository navigation
Closed
Description
Parent: Deliver Galactic Worker with Local and Fabric delivery for tenant services
Deliverable
A Local module that exposes the tested same-host handoffs to authorized consumers through Worker. It satisfies the Local half of the "Local and Fabric resolve mixed destinations correctly" phase exit. It implements the handoffs that #1444 proved.
References:
- Dispatcher:
internal/plumbing/ebpf/xdpdispatch(rolesRolePublicLB,RoleInternalReturn,RoleEgress, with leases). - Tenant TC programs:
internal/plumbing/ebpf/attach(AttachDeliver) andinternal/plumbing/ebpf/prog/usid.c(tp_deliver). - Uplink discovery that must skip internal links:
attach/interfaces.go(DetectUplinks),attach/uplinks.go(UplinkIndexes),natattach/uplinks.go(ResolveUplinks),srv6/egress.go(ResolvePublicUplink) andinternal/installer/public_uplink.go.
Work items
- Resolve same-host locality from the physical tenant-router locator and the current attachment. Distinguish a missing local binding from an off-host destination.
- Provide the public XDP-to-TC handoff, the shared NAT internal veth pair and the per-pod, per-VPC routed link.
- Separate link lifecycle from program ownership. Check hook presence, dispatcher claim, expected interface role, MTU and neighbor state before reporting ready.
- Prevent public ingress from asserting trusted tenant context. Exclude internal links from every uplink discovery path listed above.
Dependencies
Blocked by #1431, #1433, #1434 and #1444. The #1432 fixtures are used for lab checks.
Acceptance
- Privileged tests under
task test:unit-rootinject frames on every supported entry path and verify guest delivery or a policy denial at both TAPs. - Removing a hook withdraws readiness. A cold neighbor resolves and delivers. Delivery recovers after ifindex replacement.
- An unclaimed packet, or one forged from outside, cannot enter a trusted handoff.
- Uplink discovery never returns an internal link.
- The delivering PR targets
integration/galactic-worker, carries this evidence and saysFixes datum-cloud/galactic#1435. GitHub does not auto-close from a non-default base, so close this issue explicitly when the PR merges and record the PR and merged SHA.
Activity
privateip commentedon Nov 19, 2026
Triage: valid. Worker registers only the Fabric module today, so every
local.*capability reportsModuleNotRunning. Locality (D11) is already resolved in Worker; this Task adds the module that programs and checks Local delivery.Plan
Layout. A new
internal/worker/localmodule, registered next to Fabric incmd/galactic-worker. It is backed byinternal/plumbing/ebpf/localprog, which holds Local's tc programs and a loader that reuses the uSID maps galactic-cni pins. Trusted sources gain each attachment'shostInterface. Local finds the live link throughhostscope.AttachmentsOf, so a Local destination with no bound interface reportsHandoffInterfaceMissing, and an off-host destination never reaches Local.Handoffs, following the contract's Local handoffs section (D27):
local.tap:bpf_redirect_neigh.local.veth_pair:local.routed_linkandlocal.socket:/127veth from the tenant VRF to the caller's pod. It creates the pod end only after checking that the target process belongs to the authenticated caller pod./127.egress_route_tablepass-through entries under a dedicated Local owner.Lifecycle and readiness. Link lifecycle (CNI for TAPs, Local for the pair and routed link) is separate from program ownership (Local's own tc filters and map rows, keyed by the current ifindex).
Readiness requires:
Release removes only what Local owns. A link event, such as CNI replacing a TAP, requeues the VPC and reprograms on the new ifindex.
Trust.
Probe code. The prototype tc programs and loader from #1444 are promoted into product code. The prototype XDP programs remain test fixtures standing in for Gateway's and NAT's programs.
Contract updates.
ownership.md: Local owns the internal pair and routed link, and is the sole mutator of its own tc filters under galactic-cni's per-interface lock.contract.md: a minimal additive status field naming the handoff interface; Local readiness reasons; IPv6 fragments to a TAP are refused.Tests. Privileged tests (
task test:unit-root) for each acceptance bullet:The lab run repeats the #1444 handoff checks with Worker programming the handoffs.
The PR targets
integration/galactic-workerand saysFixes datum-cloud/galactic#1435.privateip commentedon Nov 19, 2026
Three changes from the approved plan, found while implementing it:
Routed-link addressing. The plan gave the routed link a
/127. Nothing in Worker's trusted sources allocates one, so the pod end now uses the claim attachment's own addresses (D26), at most four. Each address is a/128route to the host end in the tenant VRF and gets aPassThroughLocalentry, and the guard admits only those addresses plus link-local ones. A pod cannot claim an address its attachment does not record. The contract records this as D29 (Proposed).Steering public flows into a handoff. With Local's filter after galactic-cni's (as approved),
usid_egresshands Local only the traffic that has a pass-through entry. Local writes entries only for prefixes its own handoffs serve, the routed link's addresses. The resolver that selects a handoff writes the entries that steer public flows into it:PassThroughLocalNATentry steers a tenant's flows into the VPC's pair, written by the shard resolver (Integrate NAT66 and NAT64 with Local and Fabric shard delivery #1437).local.tapreply reaches Local's program only when its destination has a pass-through entry. For clients anywhere on the Internet, that needs a default pass-through or a Local branch inusid_egress, which Integrate Gateway Maglev selection and direct server return #1438 decides.The contract states this boundary (D29).
Lab scope. Each lab site is its own cluster, so one Worker cannot resolve another site's attachments, and a compute node runs no gateway or NAT program. The lab run therefore checks Local programming and readiness on a compute node in both overlapping VPCs, against the real CNI and Cilium:
handoff_interfaces;task verifysuite with Worker active.The packet-level proof of every entry path is in the privileged tests, which run the real gateway and NAT stand-ins against the real datapath.
privateip commentedon Nov 19, 2026
Delivered by #1457, merged into
integration/galactic-workeras 6e0de37 (head c8ea939). The PR's comments map each acceptance item to its privileged test and give the lab runs. CI passed on the merged head.feat(worker): Implement Worker reconciliation and its service
feat(worker): Implement Worker reconciliation and its service
feat(worker): Implement Worker reconciliation and its service