The garage_guard nft table accepts 3900-3903 only from lo/wg0/wg-remote, so a
pod *scheduled on the Pi* is dropped: its traffic reaches 10.10.0.1 over the
Cilium veth, not wg0. Consequence: the Forgejo deploy runner (a pod on rpi) has
failed every deploy-site run at the Garage sync step with
fatal error: Connect timeout on endpoint URL: "http://10.10.0.1:3900/..."
since the guard was installed (2026-11-19); the same S3 call from a pod on
another node works because that path arrives via wg0.
Accept the pod CIDR (10.244.0.0/16) as well — the cluster is the documented
consumer of this endpoint. LAN, tailscale and public sources still fall through
to the drop. Applied to rpi with host/install-garage-firewall.sh (persisted in
/etc/nftables.d/garage_guard.nft); verified from the deploy runner pod: the S3
API now answers 403 (unsigned) instead of timing out.
Garage was the only piece of the platform in no git repository and reachable
from more than WireGuard. This is a hardening/ownership pass, not a migration —
the container stays on the Pi.
- infrastructure/garage/: docker-compose.yml (pinned dxflrs/garage:v1.1.0,
every publish on an explicit 10.10.0.1 / 127.0.0.1 address, no 0.0.0.0),
garage.toml (rpc_secret moved to /etc/garage/garage.env, [s3_web]/3902
removed, admin API on 3903 for metrics), README (apply, state, restore,
keys, backup, metrics) and an explicit note that Flux does not apply it.
- host/garage-firewall.nft: PREROUTING priority -140 drop of 3900-3903 from
anything but lo/wg0/wg-remote. Docker's DNAT bypasses ufw's INPUT chain, so
ufw alone cannot stop a compose typo from publishing S3 on the LAN.
Measured: a 0.0.0.0:3902 publish stayed unreachable from the LAN and the
drop counter incremented.
- backup/: garage-backup.sh meta|data + systemd timers (meta hourly, data
nightly) rsyncing to [email protected]:/root/garage-backup over wg-remote.
Nothing else backs up Forgejo or the PG PVCs; that stays uncovered.
- monitoring/controllers/home/garage.yaml: Service + EndpointSlice +
ServiceMonitor for 10.10.0.1:3903 and five alerts. Target is UP.
- apps/base/siriusdevops/networkpolicy-site-egress.yaml: first policy in the
namespace. CiliumNetworkPolicy, not a k8s NetworkPolicy: 10.10.0.1 is a
cluster node (reserved:remote-node), so ipBlock 10.10.0.1/32 is inert.
Egress whitelist = TCP 3900 to a node + cluster DNS; measured 403 on 3900,
timeouts on 3900-adjacent 5000/3903, on 10.10.0.2:8080 and on the internet.
Keys: ci-push (W only, siriusdevops-media) and site-fetch (R only, same
bucket) replace the shared ci-key, which is deleted. The k8s Secret and the
two Forgejo repo secrets were repointed. No key material is in this commit.