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>
32 lines
1.3 KiB
Docker
32 lines
1.3 KiB
Docker
# GNMON-001 section 6: Blazor Server dashboard image.
|
|
# Multi-stage build from the MCR .NET images (not Docker Hub, so server
|
|
# side rebuilds stay possible even under Docker Hub rate limits).
|
|
# Runs as a non-root user; the rootless quadlet uses the default user-namespace
|
|
# mapping (keep-id was tested 06.11.2026 and rejected on the server — crun
|
|
# Permission denied on the overlay merged dir; GNMON-000 M5), so the image
|
|
# user maps into the gn-dashboard subuid range on the host.
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
|
|
# Restore first so the layer cache survives source edits.
|
|
COPY Ghostnet.Dashboard.csproj .
|
|
RUN dotnet restore Ghostnet.Dashboard.csproj
|
|
|
|
COPY . .
|
|
# No --no-restore: with the cached restore the publish could run with stale
|
|
# package data and drop wwwroot/_framework/blazor.web.js (404 in the
|
|
# container, Befund 09.11.2026); a full restore+publish keeps it.
|
|
RUN dotnet publish Ghostnet.Dashboard.csproj -c Release -o /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
|
WORKDIR /app
|
|
COPY --from=build /app .
|
|
|
|
# Non-root runtime user; keeps UID equal to the host workload account
|
|
# (gn-dashboard, 984) so host-side processes are attributable.
|
|
ENV ASPNETCORE_URLS=http://127.0.0.1:8080 \
|
|
DOTNET_GENERATE_ASPNET_KEY=true
|
|
USER 984:984
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["dotnet", "Ghostnet.Dashboard.dll"]
|