From 75938e1c0f9a8b9ac1a851ac0ae68c9c64a151f4 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 23 Sep 2026 20:59:19 -0500 Subject: [PATCH 1/3] docs(enhancements): propose SRv6 ingress source filtering Nodes decide what to do with an SRv6 packet from its destination alone. Propose a source check against known fabric peers in the uSID ingress and NAT gateway datapaths, with off/audit/enforce modes, fed by a reconciler over the fabric routes each node already learns. --- .../srv6-ingress-source-filtering/README.md | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 docs/enhancements/networking/srv6-ingress-source-filtering/README.md diff --git a/docs/enhancements/networking/srv6-ingress-source-filtering/README.md b/docs/enhancements/networking/srv6-ingress-source-filtering/README.md new file mode 100644 index 000000000..9f7a3c14e --- /dev/null +++ b/docs/enhancements/networking/srv6-ingress-source-filtering/README.md @@ -0,0 +1,101 @@ +# SRv6 ingress source filtering + +Status: Proposed. + +## Summary + +Galactic nodes accept SRv6 traffic for a tenant network only when it comes +from another node in the Galactic fabric. Today a node decides what to do with +an SRv6 packet from its destination alone, so the fabric's isolation rests on +its SRv6 address space never being reachable from outside. This adds a second, +independent check: the node also verifies the packet's source against the set +of fabric peers it already knows, and drops anything else. + +## Motivation + +Customers expect a private network to accept traffic only from their own +instances and from the platform services they have configured, such as load +balancers and NAT gateways. A single routing mistake, a provider announcing a +prefix it should not, or a future cross-site link should not be enough to let +outside traffic into a tenant network or through a NAT gateway. + +Source filtering makes that guarantee hold inside the datapath rather than +depending on how the underlay is routed, and gives operators visibility into +any traffic that would have violated it. + +## Goals + +- Deliver SRv6 traffic into a tenant network only when its source is a known + fabric peer. +- Apply the same rule to NAT gateways, so only fabric members can send traffic + through them. +- Reject a packet that claims a peer's source but arrives on a link that peer + is not reachable through. +- Roll out safely: an audit mode that counts would-be drops without dropping, + metrics for every decision, and no change in behaviour until enabled. +- Keep the per-packet cost to a single table lookup on traffic already + addressed to the node. + +## Non-goals + +- Encrypt or authenticate traffic between sites. A source address can still be + forged on a path that legitimately carries fabric traffic; closing that needs + an authenticated underlay, which is a separate enhancement. +- Restrict which tenant a fabric peer may send to. Per-tenant source binding + is a follow-up phase. +- Filter non-SRv6 traffic, or change BGP, BFD or route reflector sessions. + +## High-level architectural proposal + +Every legitimate SRv6 packet is sourced from the sender's own SRv6 address: +compute nodes, edge gateways and NAT gateways all set the outer source to an +address inside their node's locator. Each node already learns every peer's +locator from the fabric underlay, so the set of legitimate sources is known +locally and updates as the fabric converges. + +``` +fabric routes (FRR / GoBGP) ─► source filter reconciler ─► allow-list map + (galactic-cni, galactic-nat) │ + ▼ +SRv6 packet ─► uSID ingress: destination is ours? ─► source allowed on this link? ─► tenant VRF + │ no │ no + ▼ ▼ + normal stack drop (enforce) / count (audit) +``` + +- **Datapath.** The uSID ingress program gains a source check immediately + after it recognises its own locator and before any tenant delivery: a + longest-prefix lookup of the outer source in an allow-list, plus a check + that the packet arrived on an interface the matching peer is reachable + through. The NAT gateway program gets the same check before it forwards, + and additionally rejects sources that are not well-formed tenant addresses. +- **Control plane.** A reconciler in `galactic-cni` (and in `galactic-nat` for + gateway nodes) builds the allow-list from the node's main routing table: the + routes to peer locators that fall inside the configured SR domain prefixes, + with the interfaces those routes use. It reuses the existing netlink route + and link watch, applies changes as diffs, and resyncs periodically. +- **Modes.** `off` (default, no behaviour change), `audit` (count and log + would-be drops, deliver everything) and `enforce` (drop). The filter stays + open until its first complete sync, and a stale allow-list is kept rather + than cleared if the control plane fails, so a control-plane fault cannot + black-hole tenant traffic. +- **Configuration.** The mode, the SR domain prefixes, strict or loose + interface binding, and any static extra sources, set per node by the + deployment. +- **Observability.** Counters for every decision (checked, allowed, denied by + prefix, denied by interface, bypassed before first sync), the allow-list + size and mode as metrics, and a bounded record of denied sources for triage. +- **Compatibility.** The new state lives in new maps only, so upgrading does + not disturb existing pinned datapath state. + +## Rollout + +1. Ship with the filter off. +2. Enable audit on staging cells and review any denials. +3. Enforce on staging, then audit and enforce in production. + +## Follow-ups + +- Per-tenant source binding: a tenant network accepts traffic only from the + sources that advertise that tenant. +- Authenticated underlay for cross-site links. From 7248a51c2d92eb824dea67e6ccca2db012b59e5e Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 23 Sep 2026 20:59:32 -0500 Subject: [PATCH 2/3] docs: index the SRv6 ingress source filtering enhancement --- docs/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/README.md b/docs/README.md index 2acc3bf4a..d5be601ec 100644 --- a/docs/README.md +++ b/docs/README.md @@ -60,3 +60,5 @@ above for that. - [enhancements/networking/latency-aware-routing/README.md](enhancements/networking/latency-aware-routing/README.md) — latency-aware SRv6 path selection as a tenant-facing routing policy. `status: provisional`, `stage: alpha`. +- [enhancements/networking/srv6-ingress-source-filtering/README.md](enhancements/networking/srv6-ingress-source-filtering/README.md) + — accept SRv6 traffic only from known fabric peers, in the uSID ingress and NAT gateway datapaths. From ef746f8d75fa0929094fd03b5dd4007d9125dc74 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 24 Sep 2026 08:31:03 -0500 Subject: [PATCH 3/3] docs(enhancements): tie the SRv6 allow-list to fabric BGP peers Accept only routes installed by the fabric's own routing whose next hop is a configured fabric BGP peer, and explain why the allow-list comes from routes rather than the peer list. --- .../srv6-ingress-source-filtering/README.md | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/enhancements/networking/srv6-ingress-source-filtering/README.md b/docs/enhancements/networking/srv6-ingress-source-filtering/README.md index 9f7a3c14e..c50ebb27c 100644 --- a/docs/enhancements/networking/srv6-ingress-source-filtering/README.md +++ b/docs/enhancements/networking/srv6-ingress-source-filtering/README.md @@ -70,10 +70,25 @@ SRv6 packet ─► uSID ingress: destination is ours? ─► source allowed on t through. The NAT gateway program gets the same check before it forwards, and additionally rejects sources that are not well-formed tenant addresses. - **Control plane.** A reconciler in `galactic-cni` (and in `galactic-nat` for - gateway nodes) builds the allow-list from the node's main routing table: the - routes to peer locators that fall inside the configured SR domain prefixes, - with the interfaces those routes use. It reuses the existing netlink route - and link watch, applies changes as diffs, and resyncs periodically. + gateway nodes) builds the allow-list from the routes the fabric's BGP has + installed. A route becomes an allow-list entry only when all of these hold: + - it was installed by the fabric's own routing (the underlay BGP, or + `galactic-router` for gateway routes), not by a static or other route + source; + - its next hop is a configured fabric BGP peer; + - it falls inside the configured SR domain prefixes, at node-locator length + or longer, and is not the node's own locator. + + Each entry is bound to the interfaces its route uses. The reconciler reuses + the existing netlink route and link watch, applies changes as diffs, and + resyncs periodically. + + The allow-list is built from these routes rather than from the BGP peer list + itself because the two carry different addresses. A peer's BGP session runs + between link or private addresses, but its SRv6 traffic is sourced from its + locator. BGP is how each node learns which locator belongs to which peer, and + the resulting route also records the link that peer is reachable through, + which is what interface binding needs. - **Modes.** `off` (default, no behaviour change), `audit` (count and log would-be drops, deliver everything) and `enforce` (drop). The filter stays open until its first complete sync, and a stale allow-list is kept rather