Repository navigation
Closed
Description
Parent: Deliver Galactic Worker with Local and Fabric delivery for tenant services
Deliverable
One Envoy proxy serves local and remote backends through VRF-bound upstream sockets, with the galactic-vrf sidecar consuming Worker attachments. It satisfies the ALB part of the "Deliver service consumers" phase exit.
References:
- Sidecar:
cmd/galactic-vrfandinternal/ingresssidecar(store.go,ebpfdatapath.go,gatewayreply.gowithensureGatewayReplyRedirect). - Host-return writer to move under Worker:
internal/installer/sidecarreturn.go. - The image is
containers/galactic-vrf/Dockerfile. Noconfig/galactic-vrfmanifest exists, so this Task ships one.
PR #1384 changes redirect-route cleanup in internal/ingresssidecar. If it has merged to main before this PR, incorporate it into the branch and record that. Otherwise this PR carries the same rule: remove a redirect route only through its own VRF.
Work items
- Have the sidecar request the host attachment and own the pod-side VRF, gateway address and tenant routes. Share one pod-to-host routed pair per attached VPC. Use the physical locator and current host attachment to choose a local backend route or a remote encapsulating route.
- Install the gateway return /128 in the canonical host VRF ahead of default NAT, and keep remote reachability.
- Fence link and advertisement transfer by proxy pod UID. Serialize replacement unless overlapping ownership is implemented and tested.
- Add the
config/galactic-vrfmanifest component, covered bytask test:manifests. - Expose the sidecar's Worker capability state and failure reasons through existing diagnostics and metrics.
Dependencies
Blocked by #1434, #1435 and #1436. Runs in parallel with #1437, #1438 and #1440.
Acceptance
Run in the #1432 topology:
- HTTPS requests complete through one proxy into two VPCs with overlapping backend addresses, on both fresh and reused connections. Captures and socket reads show that each upstream socket receives the correct reply with the right source.
- Moving an endpoint off-node, deleting the last TAP and replacing the proxy each leave the successor and other tenants working, and cleanup removes only the old owner's state.
task test:manifestsrenders the new component.- The delivering PR targets
integration/galactic-worker, carries this evidence and saysFixes datum-cloud/galactic#1439. 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 on
integration/galactic-workerat 6e0de37: the work is still needed.internal/ingresssidecar/ebpfdatapath.go). Replies return through a flower redirect on the pod'seth0(gatewayreply.go) and the installer's return tables from0xF000(internal/installer/sidecarreturn.go).internal/ingresssidecar/gateway.go:273) and writes its own BGPAdvertisement (gateway.go:300).local.socketclaims with a routed link, the attachment's/128s in the host VRF andPassThroughLocalentries. Its host end runs onlylocal_link_guard, so remote backends cannot be reached through it alone, and no part of Worker publishes a BGPAdvertisement for a claim's addresses.config/galactic-vrfmanifest exists.main. Its files on this branch match its base, so this Task carries its rule and test.privateip commentedon Nov 19, 2026
Approved plan:
socketclaim per attached VPC through the Worker socket, mounted withhostPath(D9). The claim's attachment is the proxy's VPCAttachment in that VPC, whose address is the gateway address (D26). Its destinations are the backend VPCAttachments matched from EndpointSlice addresses. The sidecar releases its claims on shutdown./128on the routed link's pod end and the per-backend routes. Envoy binds upstream sockets to the VPC's VRF. The sidecar's BGPVRFInstance write is removed; Worker'snodevpc.Ensurewrites it under the Argument lock.handoff_interfaces. A Fabric backend keeps the in-pod encapsulation, whoseegress_route_tablerows stay in the sidecar's private table range, where it is the only writer./128andPassThroughLocalentry in the host VRF keep replies away from the default NAT route. Worker publishes a BGPAdvertisement for eachsocketorrouted_linkclaim's addresses, keyed by the claim and pod UID, and withdraws it on release, lease expiry or a pod change. The installer's sidecar return writer, reaper and sweep are retired, and one prune of leftover0xF000tables is kept.ClaimHeldByAnotherPodserializes replacement. The successor retries and stays not ready until it holds its claims, and cleanup removes only the old pod UID's state.config/galactic-vrfComponent, rendered by atests/manifests/galactic-vrffixture undertask test:manifests.privateip commentedon Nov 21, 2026
Scope change, decided by the epic owner: this issue now delivers Envoy through the galactic-vrf sidecar to local tenant backends only. Remote backends move to #1487.
On nodes running Cilium, the sidecar's in-pod SRv6 encapsulation is dropped as source spoofing at the pod's host veth, because the outer source is the node's SID, not the pod's address. #1487 sends remote traffic over the routed link into the host VRF instead.
The delivering PR must show the local rows passing in the lab, with the remote rows skipped and citing #1487.
privateip commentedon Nov 21, 2026
Delivered by #1463, merged into integration/galactic-worker as 113d8d7. The lab's Envoy case passed at b839832 with 170 rows and none failed, followed by the lab's verification on the same deploy; the evidence is on #1463. Scope is backends on the proxy's own node. Remote backends moved to #1487.