immich-frame: LAN-only access via home-lans-only allowlist + dns_type=internal
Some checks failed
ci/woodpecker/push/default Pipeline failed

Viktor asked to tighten who can see the immich-frame deployments: make
them not public while keeping the two Meta Portals working as frames.
The Portal app bakes the URL into the APK, so the same hostnames must
keep loading from the home networks with zero device or router changes.

- New shared Traefik middleware home-lans-only (Sofia/London/Valchedrym
  LANs + 10/8 + internal v6) — separate from local-only so the remote
  LANs don't inherit access to admin surfaces.
- New ingress_factory dns_type="internal": publicly-resolvable A record
  carrying the internal Traefik LB IP (10.0.20.203). Outsiders resolve
  but can't route; WG spokes policy-route 10/8 down the tunnel. Never
  combine the allowlist with proxied DNS (cloudflared pod IPs are in
  10/8 and would bypass it).
- Both frame ingresses: dns_type internal + allowlist attached +
  external_monitor=false (drop the doomed [External] monitors).
- rybbit worker: highlights-immich route/site removed (off Cloudflare).
- Docs: CLAUDE.md/AGENTS.md ingress tiers, networking.md DNS categories,
  design doc docs/plans/2026-07-04-immich-frame-lan-only-design.md.

Pre-verified: London router DNS returns RFC1918 answers unfiltered;
Technitium already CNAMEs both hosts to the LB; no public wildcard.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Viktor Barzin 2026-07-04 14:21:01 +00:00
parent 114a7743ac
commit 8bac9914ec
10 changed files with 241 additions and 32 deletions

View file

@ -18,7 +18,6 @@ const SITE_IDS = {
"stacks.viktorbarzin.me": "b38fda4285df",
"f1.viktorbarzin.me": "7e69786f66d5",
"frigate.viktorbarzin.me": "0d4044069ff5",
"highlights-immich.viktorbarzin.me": "602167601c6b",
"immich.viktorbarzin.me": "35eedb7a3d2b",
"mail.viktorbarzin.me": "082f164faa7d",
"navidrome.viktorbarzin.me": "8a3844ff75ba",

View file

@ -28,7 +28,6 @@ routes = [
{ pattern = "stacks.viktorbarzin.me/*", zone_name = "viktorbarzin.me" },
{ pattern = "f1.viktorbarzin.me/*", zone_name = "viktorbarzin.me" },
{ pattern = "frigate.viktorbarzin.me/*", zone_name = "viktorbarzin.me" },
{ pattern = "highlights-immich.viktorbarzin.me/*", zone_name = "viktorbarzin.me" },
{ pattern = "immich.viktorbarzin.me/*", zone_name = "viktorbarzin.me" },
{ pattern = "mail.viktorbarzin.me/*", zone_name = "viktorbarzin.me" },
{ pattern = "navidrome.viktorbarzin.me/*", zone_name = "viktorbarzin.me" },