GNMON-001 M6 abgenommen: Dashboard oeffentlich via mon.ghostnet.selfhost.eu (Keycloak-OIDC)

Kette: Browser -> https://mon.ghostnet.selfhost.eu (NPM CT-103 ID 14, LE-TLS,
Force SSL, WS-Support, X-Forwarded-Proto/Host + 32k-Puffer) -> 10.0.0.90:8080
(nftables gnmon_firewall: nur von 10.0.0.10) -> Blazor v0.3.2 -> Keycloak
Realm Ghost.net, Client gnai-dashboard, Rollen gnai-dashboard-user/-admin.

Neu/geaendert:
- Rolle gnmon_firewall (nftables auf ghostnet-ki, Policy ACCEPT, 8080 nur
  von NPM, Monitoring-Ports non-loopback-drop), Tag firewall in monitor.yml
- Dashboard-Bind 10.0.0.90:8080 (Assertion: LAN-Bind nur mit Firewall-Tag);
  Image v0.3.2; Playbook-Verifikation akzeptiert 200/302 mit Forwarded-Headern
- App: ClientId gnai-dashboard, Auth:AllowedRoles konfigurierbar,
  KnownNetworks/KnownProxies per .Clear() (leere Initializer = Loopback-Default),
  GetClaimsFromUserInfoEndpoint=true (realm-roles-Mapper-Flags im Realm unset),
  SaveTokens=true (Logout: id_token_hint), Cookie AccessDeniedPath
  /access-denied + Page (sonst Redirect-Loop), csproj PrunePackageData=false +
  Containerfile ohne --no-restore (sonst fehlt blazor.web.js im Image ->
  Blazor-Circuit startet nicht)
- KeycloakRealmRolesClaimTransformation auf ClaimTypes.Role + [gnmon-auth]-Log
- CT-100: Adoption 09.11. (pct exec), Split-DNS mon -> 10.0.0.10 live;
  Befunde gefixt: dns_pihole_hosts_records in allen 3 Inventaren gespiegelt,
  FTLCONF_dns_hosts als eine ';'-gejointe Environment-Zeile (systemd: letzter
  Key gewinnt); gnmon_alloy doppelte Key korrigiert
- Doku: GNMON-000 M6 abgenommen (alle Befunde), GNMON-001 v2.2, GNAI-000
  Monitoring/DNS-Zeilen, GNAI-006 v3.1 (Proxy-Host 14), GNAI-012 Stand

E2E 09.11.2026: unauth -> 302 mit PAR request_uri; Direktzugriff 10.0.0.90:8080
gedroppt; blazor.web.js 200 text/javascript; Login ghost -> Dashboard 200 mit
Live-Daten, Unterseiten + WebSocket ok; testuser ohne Rollen -> saubere 403;
/logout ok; monitor.yml gesamt ok=84 changed=0. Server-Image-Store aufgeraeumt
(v0.3.2 + Rollback v0.2.0/v0.1.0).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-11-09 19:34:50 +01:00
parent 148104de4e
commit fd8e1a5559
25 changed files with 383 additions and 90 deletions
@@ -30,6 +30,8 @@ dns_pihole_upstreams:
- 149.112.112.112
dns_pihole_hosts_records:
- "10.0.0.10 auth-admin.ghostnet.selfhost.eu"
# GNMON-001 M6: monitoring dashboard via NPM (CT-103); mirrors the role default.
- "10.0.0.10 mon.ghostnet.selfhost.eu"
dns_pihole_timezone: Europe/Berlin
dns_pihole_database_max_db_days: 30
dns_pihole_secret_name: pihole_web_password
@@ -30,6 +30,8 @@ dns_pihole_upstreams:
- 149.112.112.112
dns_pihole_hosts_records:
- "10.0.0.10 auth-admin.ghostnet.selfhost.eu"
# GNMON-001 M6: monitoring dashboard via NPM (CT-103); mirrors the role default.
- "10.0.0.10 mon.ghostnet.selfhost.eu"
dns_pihole_timezone: Europe/Berlin
dns_pihole_database_max_db_days: 30
dns_pihole_secret_name: pihole_web_password
@@ -30,6 +30,8 @@ dns_pihole_upstreams:
- 149.112.112.112
dns_pihole_hosts_records:
- "10.0.0.10 auth-admin.ghostnet.selfhost.eu"
# GNMON-001 M6: monitoring dashboard via NPM (CT-103); mirrors the role default.
- "10.0.0.10 mon.ghostnet.selfhost.eu"
dns_pihole_timezone: Europe/Berlin
dns_pihole_database_max_db_days: 30
dns_pihole_secret_name: pihole_web_password
@@ -16,9 +16,12 @@ Environment=WEBPASSWORD_FILE={{ dns_pihole_secret_name }}
Environment=TZ={{ dns_pihole_timezone }}
Environment="FTLCONF_dns_upstreams={{ dns_pihole_upstreams | join(';') }}"
Environment=FTLCONF_dns_listeningMode=LOCAL
{% for record in dns_pihole_hosts_records %}
Environment="FTLCONF_dns_hosts={{ record }}"
{% endfor %}
# One Environment line only: systemd keeps just the LAST assignment of a
# duplicated key, so per-record lines would silently drop all but the last
# record (Befund 09.11.2026: auth-admin fell through to upstream after the
# second record was added). Pi-hole v6 takes list values semicolon-separated,
# same as dns_upstreams above.
Environment="FTLCONF_dns_hosts={{ dns_pihole_hosts_records | join(';') }}"
Environment=FTLCONF_dhcp_active=false
Environment=FTLCONF_ntp_ipv4_active=false
Environment=FTLCONF_ntp_ipv6_active=false