Ingress: switch to Traefik (cf-only middleware), trust Cloudflare ranges as proxies

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-02 12:16:12 +01:00
co-authored by Claude Opus 5.5
parent 8cafb48c83
commit 55c6614bfc
2 changed files with 32 additions and 8 deletions
+3 -2
View File
@@ -8,8 +8,9 @@ URL: https://homeassistant.smokyzone.de - **public**, like git: the DNS record i
Cloudflare-proxied CNAME to `git.smokyzone.de` (public IP kept current by the ddns
CronJob), the router forwards 443 to the ingress. The companion app works without VPN.
Protection is HA itself: every user needs MFA (TOTP), and the HTTP settings ban an IP after
5 failed logins (ingress-nginx passes the real client IP from Cloudflare's
`CF-Connecting-IP`). Certificate from `letsencrypt-dns-cloudflare` (DNS-01).
5 failed logins (Traefik keeps Cloudflare's X-Forwarded-For, HA trusts the pod network and
the Cloudflare ranges as proxies). The ingress only accepts connections from Cloudflare
(Middleware `traefik/cf-only`). Certificate from `letsencrypt-dns-cloudflare` (DNS-01).
## Design