infra(garage): let cluster pods on rpi reach the S3 endpoint #68

Merged
sirius merged 1 commit from fix/garage-guard-pod-cidr into master 2026-11-27 06:01:32 +00:00
Owner

Unblocks the acceptance run for t_2bbe34a8 (found while verifying a real site deploy)

deploy-site (deploy-arm64, a pod on rpi) fails at the "Sync photos to Garage"
step with Connect timeout on endpoint URL: http://10.10.0.1:3900/....
Reproduced from the deploy dind: 10.10.0.1:5000 (registry) answers,
10.10.0.1:3900 (Garage) times out, while the same call from the rpi host
returns 403 and from a pod on another node it works (that path arrives on wg0).

Cause: garage_guard (installed 2026-11-19) accepts 3900-3903 only on
lo/wg0/wg-remote. A pod scheduled on the Pi sends its packets over the
Cilium veth, so the guard drops them — even though the cluster is the documented
consumer of this endpoint.

Fix: also accept ip saddr 10.244.0.0/16; LAN/tailscale/public still hit the
drop rule. Applied to rpi via host/install-garage-firewall.sh (persisted at
/etc/nftables.d/garage_guard.nft) and verified from the deploy runner pod
(403 unsigned, not a timeout).

## Unblocks the acceptance run for t_2bbe34a8 (found while verifying a real site deploy) `deploy-site` (deploy-arm64, a pod on rpi) fails at the "Sync photos to Garage" step with `Connect timeout on endpoint URL: http://10.10.0.1:3900/...`. Reproduced from the deploy dind: `10.10.0.1:5000` (registry) answers, `10.10.0.1:3900` (Garage) times out, while the same call from the rpi host returns 403 and from a pod on another node it works (that path arrives on wg0). Cause: `garage_guard` (installed 2026-11-19) accepts 3900-3903 only on `lo`/`wg0`/`wg-remote`. A pod scheduled on the Pi sends its packets over the Cilium veth, so the guard drops them — even though the cluster is the documented consumer of this endpoint. Fix: also accept `ip saddr 10.244.0.0/16`; LAN/tailscale/public still hit the drop rule. Applied to rpi via `host/install-garage-firewall.sh` (persisted at `/etc/nftables.d/garage_guard.nft`) and verified from the deploy runner pod (403 unsigned, not a timeout).
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.
sirius merged commit cf8863df5c into master 2026-11-27 06:01:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
sirius/homek8s!68
No description provided.