ADR-0008: WireGuard link block 10.30.200.0/24 sits inside c1's service CIDR 10.30.192.0/20 #189

Open
opened 2026-11-22 21:41:53 +00:00 by ginjiruu · 0 comments
Owner

ADR-0008's address table reserves ID 200 (10.30.200.0/24) for native WireGuard links, /31 + /127 per link. The same table gives c1 services 10.30.192.0/20 (IDs 192-207), and that range contains 10.30.200.0/24. The ADR assigns that /24 twice.

Found during the 2026-11-22 triage (lab/clusters#1785 research).

Live state

c1 already allocates ClusterIPs from that /24 (2026-11-22):

Service ClusterIP
rook-ceph/rook-ceph-mon-a 10.30.200.41
dns/external-dns 10.30.200.120
flux-system/source-controller 10.30.200.206

Since lab/clusters#1748 c1 announces its service range over BGP, so the routers already route 10.30.200.0/24 to the thinks. The first native WireGuard link (#79, #168) would collide with c1 Services.

No WireGuard link uses the range yet: master has no 10.30.200. or P:200:: reference outside the ADR. IPv6 is clear: c1 services are P:500::/112 and pods sit at P:400::, so P:200::/64 overlaps nothing.

Fix

Move the WireGuard link block, not c1. The service CIDR is fixed at cluster creation (machine-configs ADR-0012, modules/clusters/think.nix:26), so moving it means a c1 rebuild. The WireGuard block has no users yet.

  • Pick a new ID outside 100, 128-207, VLAN IDs and any planned block. 208 (10.30.208.0/24, P:208::/64) is the next free one after the c1 blocks; anything below 128 that isn't a VLAN also works.
  • Amend ADR-0008's table (dated amendment line, like the 2026-11-20 LB-split note). Keep v4 and v6 on the same ID so "ID = third octet = subnet ID" still holds.
  • Add a note under the table that IDs 128-207 belong to c1 pods/services, so nothing else draws from them.
  • Update every reference to "WireGuard /31 from ID 200": #79, #168, lab/clusters#1675 if it uses it, and the external-peer module design.
  • Optional: a render/gate check in routeros/ that fails when a static allocation lands inside the c1 pod or service CIDR.

Done when

  • ADR-0008 lists no range twice, and the WireGuard block sits outside every c1 CIDR.
  • #79's module design references the new block.

Related: #79, #168, lab/clusters#1748, lab/clusters#1785, machine-configs ADR-0012.

ADR-0008's address table reserves ID 200 (`10.30.200.0/24`) for native WireGuard links, /31 + /127 per link. The same table gives c1 services `10.30.192.0/20` (IDs 192-207), and that range contains `10.30.200.0/24`. The ADR assigns that /24 twice. Found during the 2026-11-22 triage (lab/clusters#1785 research). ## Live state c1 already allocates ClusterIPs from that /24 (2026-11-22): | Service | ClusterIP | |---|---| | rook-ceph/rook-ceph-mon-a | 10.30.200.41 | | dns/external-dns | 10.30.200.120 | | flux-system/source-controller | 10.30.200.206 | Since lab/clusters#1748 c1 announces its service range over BGP, so the routers already route `10.30.200.0/24` to the thinks. The first native WireGuard link (#79, #168) would collide with c1 Services. No WireGuard link uses the range yet: master has no `10.30.200.` or `P:200::` reference outside the ADR. IPv6 is clear: c1 services are `P:500::/112` and pods sit at `P:400::`, so `P:200::/64` overlaps nothing. ## Fix Move the WireGuard link block, not c1. The service CIDR is fixed at cluster creation (machine-configs ADR-0012, `modules/clusters/think.nix:26`), so moving it means a c1 rebuild. The WireGuard block has no users yet. - [ ] Pick a new ID outside 100, 128-207, VLAN IDs and any planned block. `208` (`10.30.208.0/24`, `P:208::/64`) is the next free one after the c1 blocks; anything below 128 that isn't a VLAN also works. - [ ] Amend ADR-0008's table (dated amendment line, like the 2026-11-20 LB-split note). Keep v4 and v6 on the same ID so "ID = third octet = subnet ID" still holds. - [ ] Add a note under the table that IDs 128-207 belong to c1 pods/services, so nothing else draws from them. - [ ] Update every reference to "WireGuard /31 from ID 200": #79, #168, lab/clusters#1675 if it uses it, and the external-peer module design. - [ ] Optional: a render/gate check in `routeros/` that fails when a static allocation lands inside the c1 pod or service CIDR. ## Done when - ADR-0008 lists no range twice, and the WireGuard block sits outside every c1 CIDR. - #79's module design references the new block. Related: #79, #168, lab/clusters#1748, lab/clusters#1785, machine-configs ADR-0012.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac#189
No description provided.