infrastructure(garage): config in git, WG-only proven, per-consumer keys, egress policy, backup, metrics #16
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/t_2f8ec199-garage-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes the gaps in card
t_2f8ec199: Garage was the only piece of the platform in no git repository, and it was reachable from more than WireGuard.1. Config in git —
infrastructure/garage/docker-compose.yml,garage.toml,README.md,host/(firewall),backup/(script + units). Flux does not apply this — said explicitly in the README. Live config was reconciled onto it (container recreated from this compose file; same node IDd053db4dfc97bf78, same buckets). Diff against the old/home/sirius/websites/garage/garage.toml:127.0.0.1:3900-3902+10.10.0.1:3900publishes10.10.0.1:3900,10.10.0.1:3903,127.0.0.1:3900[s3_web] bind_addr = 0.0.0.0:3902127.0.0.1is its own netns); it was what pushed photos into the imagerpc_secretliteral in the fileGARAGE_RPC_SECRETfrom/etc/garage/garage.env(0600, out of git)[admin] api_bind_addr = 0.0.0.0:3903, published on10.10.0.1only2. WG-only, by construction
host/garage-firewall.nftdrops 3900-3903 at PREROUTING priority -140 — before Docker's DNAT (-100). ufw cannot do that job: Docker's publish path never traverses ufw's INPUT chain.Proof in the card comment, including the deliberate negative test: a container published on
0.0.0.0:3902was unreachable from the LAN and the drop counter incremented.3. Egress policy
apps/base/siriusdevops/networkpolicy-site-egress.yaml— the first policy in the namespace. It is a CiliumNetworkPolicy, because10.10.0.1is a cluster node (reserved:remote-nodein Cilium's ipcache), so a standardipBlock: 10.10.0.1/32rule is silently inert — measured, not assumed.4. Metrics
monitoring/controllers/home/garage.yaml— Service + EndpointSlice + ServiceMonitor for10.10.0.1:3903, five alerts (down, unhealthy, >80% disk, metadata GC backlog, errored blocks). Target is UP.Out of scope / still open
piedmont-photoshas no consumer afterci-keywas deleted; mint a scoped key if something needs it.replication_factor = 1on one node. Still no redundancy — only backup.