From cf8863df5c7b18210660b2fd0fdb45b5c6c6d6f2 Mon Sep 17 00:00:00 2001 From: sirius Date: Fri, 27 Nov 2026 06:01:32 +0000 Subject: [PATCH] infra(garage): let cluster pods on rpi reach the S3 endpoint (#68) --- infrastructure/garage/host/garage-firewall.nft | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infrastructure/garage/host/garage-firewall.nft b/infrastructure/garage/host/garage-firewall.nft index 4f8cc61..3459135 100644 --- a/infrastructure/garage/host/garage-firewall.nft +++ b/infrastructure/garage/host/garage-firewall.nft @@ -34,6 +34,15 @@ table inet garage_guard { # WireGuard only: the mesh hub link and loopback. iifname { "lo", "wg0", "wg-remote" } tcp dport { 3900, 3901, 3902, 3903 } counter accept + # Cluster pods scheduled on this node. Traffic from a local pod + # reaches 10.10.0.1 over its Cilium veth, not wg0, so the rule above + # dropped it: the Forgejo deploy runner (a pod on rpi) timed out on + # `s3 cp ... http://10.10.0.1:3900` while the same call from a pod on + # another node worked (that path arrives via wg0). The cluster is the + # documented consumer of this endpoint, so accept its pod CIDR only — + # LAN, tailscale and public sources still fall through to the drop. + ip saddr 10.244.0.0/16 tcp dport { 3900, 3901, 3902, 3903 } counter accept + # Anything else — LAN, tailscale, public, or a future interface that # nobody remembered to add above. tcp dport { 3900, 3901, 3902, 3903 } counter drop