Commit Graph
19 Commits
Author SHA1 Message Date
spektr 51ce267563 GNAI-025: Befund f revidiert — Upstream-Caddy als interner Edge (:8082), App vollständig bedienbar
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 21s
Das app-proxy-only-Routing war unvollständig: der app-proxy ist ein reiner
SPA-Catch-all — /api, /gateway, /media, /admin und Static-Assets fielen auf
ihn zurück, die App konnte keine API-Aufrufe machen.

- fluxer_stack: Caddy-Edge aktiviert (intern, HTTP :8082 via
  FLUXER_CADDY_SITE_ADDRESS=:{{ edge_port }}, kein ACME); gepinnte Caddyfile
  routes alle Pfade zu den Compose-Services; app-proxy 8080 und LiveKit-
  Signaling 7880 nicht mehr gepublisht; caddy-Dep-Kante (Adaption 3) revertiert
- fluxer_firewall: NPM → 8082 (input + DNAT-forward); Verify-Assertionen auf
  den Caddy-Edge umgezogen
- reverse_proxy_fluxer_vhost: NPM → 10.0.0.62:8082 (alles; WS-Upgrade,
  86400 s Timeouts), /livekit/-Location entfernt (caddy routes /livekit)
- Doku: Änderungsverlauf 1.14, Befund f + Zielarchitektur + Abschnitt 5
  und 5a auf den Caddy-Edge-Stand

Verifiziert: /api/auth/sso/status öffentlich HTTP 200 (echte API-Antwort,
SSO enabled=false — Phase 8 steht aus), /admin/login 200, /.well-known/fluxer
200; CT-117- und CT-103-Zweitläufe changed=0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 05:02:09 +01:00
spektr 39cf7a9206 Merge branch 'lxc/ct-103-gnai-006-disk-housekeeping' into lxc/ct-117-gnai-025-fluxer-chat 2026-11-30 04:25:50 +01:00
spektr 5e24ff9f6e GNAI-025: Domain-Kollision korrigiert — Fluxer auf fluxer.ghostnet.selfhost.eu (chat.* bleibt OpenWebUI vorbehalten)
chat.ghostnet.selfhost.eu ist der live produktive OpenWebUI-Nutzerpfad
(GNAI-001 M6, NPM → 10.0.0.90:8081) — die GNAI-025-Planung hatte den Namen
unberechtigt übernommen. Fluxer erhält fluxer.ghostnet.selfhost.eu (Operator-
Entscheid 30.11.). Umgezogen: CT-117-Inventories + fluxer_stack-Defaults
(FLUXER_DOMAIN/PASSKEY_RP_ID/VAPID/PUBLIC_ORIGIN/EMAIL_APP_BASE_URL),
Keycloak-Client-Spec (CT 102, Redirect-URIs per Sync-PUT bereits live
korrigiert, changed=1 → changed=0), NPM-Vhost-Rolle (CT 103), Pi-hole-Split-
DNS (CT 100, neuer Eintrag fluxer → 10.0.0.10 live), CT-117/CT-103-READMEs,
GNAI-025-Doku (Änderungsverlauf 1.12).

Ausstehend: CT-103-Vhost-Deploy (blockiert durch NPM-Crashloop, siehe
nächster Commit) und CT-117-site.yml-Rerun mit neuer .env.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 04:25:48 +01:00
spektr 3da719dec4 GNAI-025: Fluxer-Chat-LXC CT 117 geplant — Machbarkeitsprüfung, Ansible-Projekt, NPM-Vhost, Keycloak-Client
ci-static / secret-scan (push) Successful in 44s
ci-static / yamllint (push) Successful in 1m12s
ci-static / ansible-syntax (push) Successful in 1m7s
ci-static / markdown-links (push) Successful in 43s
- Doku GNAI-025 (Plan/Machbarkeit/Operator-Phasen), Index-Einträge
- proxmox/lxc/ct-117-fluxer: PVE-Provisioning-Skript + Ansible-Projekt
  (agent/bootstrap/production; Rollen fluxer_lxc_baseline, fluxer_access,
  fluxer_firewall, fluxer_stack mit gepinnter upstream-compose via podman
  compose, digest-gepinnten Images, on-guest Secrets 0600)
- CT 103: Rolle reverse_proxy_fluxer_vhost (chat.ghostnet.selfhost.eu ->
  10.0.0.62:8080 + /livekit/), in site.yml eingehängt
- CT 102: Keycloak-OIDC-Client 'fluxer' in keycloak_realm_config
- CT 117 noch nicht angelegt; PENDING-Platzhalter (Commit/Compose-SHA/Digests/
  Host-Key-Fingerprint/pubkeys) müssen vor dem ersten Lauf ersetzt werden

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-28 05:51:41 +01:00
spektr e6551d01f4 CT 103: NPM 2.15.1 -> 2.17.1 (nginx2root/nginx2shell CVE-Fixes)
NGINX2Shell/nginx2root (CVE-2026-123007 HTTP/2 flow-control memory corruption,
CVE-2026-123633 HTTP/2 use-after-free, gefixt in nginx 1.30.7/1.31.9 am
18.11.2026) betraf den bisherigen Stand: NPM 2.15.1 mit openresty/1.29.2.5
(nginx 1.29.x). v2.17.1 (GitHub Latest, Docker Hub seit 19.11.2026) nutzt ein
OpenResty-Base-Image mit den nginx2root-Fixes als Backport (PR #6058).

Pin aktualisiert in reverse_proxy_npm/defaults und allen drei Inventaren
(agent/bootstrap/production) sowie im Role-README.

Vor dem Upgrade: Backup /opt/npm-backup-pre-2.17.1.tar.gz auf CT 103
(63M, data + letsencrypt). Altes Image 2.15.1 bleibt lokal als Rollback.

Verifiziert: Quadlet konvergiert auf 2.17.1, NPM-Container neu gestartet,
site.yml ok=93 changed=1 failed=0, verify-production ok=30 failed=0,
site.yml --check changed=0; alle VHosts (git/auth/nextcloud/vault/jellyfin/
japan/mon) antworten, Gitea-JS 661667B und Keycloak-CSS 1158689B via NPM vollstaendig.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:20:57 +01:00
spektr 819e3cb665 CT 103: Disk-Housekeeping gegen volle Root-Platte (Gitea/Keycloak-Assets 0-Byte)
Vorfall 2026-11-26: CT 103 (NPM-Reverse-Proxy) Root-fs zu 100% voll, weil die
NPM-Logs unter /opt/nginx-proxy-manager/data/logs nicht rotiert wurden und nginx
im Container gelöschte Inodes offen hielt. NPM lieferte dadurch abgeschnittene
0-Byte-Assets ("Frontend is not initialized" bei Gitea/CT 110, Keycloak ohne CSS).

Neues Role reverse_proxy_disk_housekeeping in site.yml:
- journald-Drop-in (SystemMaxUse=200M, MaxRetentionSec=7d)
- logrotate-Policy für die NPM-Logs mit copytruncate (Pflicht wegen offener FDs)
- selbstheilender Guard: bei Unterschreitung von reverse_proxy_minimum_root_available_bytes
  Journal vacumen, NPM-Logs in-place truncaten, NPM-Cache leeren, NPM neu starten,
  danach Headroom asserten; Phase 1 (Freiräumen) läuft vor dem Schreiben der Configs,
  da bei 0 Byte frei keine neuen Dateien anlegbar sind
- failed-Zustand der durch die volle Platte betroffenen oneshot-Units
  (logrotate.service, man-db.service) wird gecleared

Zusätzlich: eigenes Playbook disk-housekeeping.yml, Headroom-Assert und
Drop-in-Prüfung in verify-production.yml, README-Abschnitt.

Verifiziert: site.yml real changed=1 (unrelated Mode-Fix), verify-production ok,
zweiter site.yml --check changed=0; Gitea-JS 661667B und Keycloak-CSS 1158689B
via NPM wieder vollständig, CT 103 Platte 53%, keine failed units.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 19:00:10 +01:00
spektr 8ef591b4a0 GNAI-023 M8-T4 Fix: Report-Download (PDF via weasyprint, /outputs-Routing im NPM)
'No pdf path provided': md2pdf im gptr-Image braucht playwright/chromium
(nicht installiert) -> write_md_to_pdf faellt auf '' zurueck. sitecustomize
ersetzt sie durch weasyprint (im Image funktionsfaehig). docx-404: NPM-vHost
leitete /outputs/ an den Frontend-Container; neue location /outputs/ mit
auth_request + Proxy auf Backend :8086 + rewrite gegen das vom Frontend
verdoppelte outputs/outputs/-PREFIX. Verifiziert: PDF wird erzeugt,
nginx -t ok, unauth /outputs -> 302 Keycloak, beide Playbooks idempotent.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-21 11:44:13 +01:00
spektrandMistral Vibe 7b07e07a5d M8: oauth2-Puffer auf 64k/16x64k/128k erhoeht (echter callback Set-Cookie mit 3 Tokens)
Fake-Callback -> 403 vom IAP (kein 502), unauth / -> 302 Keycloak, site.yml idempotent changed=0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-19 19:56:16 +01:00
spektr 62d5248dc7 M8: NPM-vHost research.* robust — alles in host-level advanced_config (locations brechen NPM-Conf-Generierung), DELETE+POST bei Drift
NPM 2.15.1: custom locations + advanced_config oder locations mit eigenem
advanced_config lassen die proxy_host/<id>.conf still aus (SNI alert 112);
PUT loescht die conf ohne neu zu schreiben. Jetzt: komplette location-Bloecke
(/, /api/, /ws, /oauth2/, = /oauth2/auth) im host-level advanced_config,
locations: [], Drift via DELETE+POST. Verifiziert: 36.conf, nginx -t ok,
TLS CN=research, unauth / /api/docs /ws -> 302 Keycloak, idempotent changed=0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-19 06:52:17 +01:00
spektr 24c49d39f7 M8: WS-Location /ws mit Upgrade-Headern + 3600s Timeouts (NPM custom locations bekommen sie nicht automatisch)
wss://research.ghostnet.selfhost.eu/ws schlug fehl. Verifiziert via NPM-API:
locations / ->8085, /api ->8086, /ws ->8086 mit Upgrade/Connection + auth_request.
site.yml idempotent changed=0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-18 20:49:53 +01:00
spektr 5f2e154979 M8: 502 auf /oauth2/callback fixen — Proxy-Puffer in location /oauth2/ erhoehen (big Set-Cookie vom IAP)
"upstream sent too big header" -> proxy_buffer_size 32k / proxy_buffers 8 32k /
proxy_busy_buffers_size 64k in der /oauth2/-Location (wie GNMON-000 M6). Verifiziert
in generierter proxy_host/16.conf, site.yml idempotent changed=0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-18 20:34:47 +01:00
spektr f60308eab5 M8: oauth2-proxy scope auf openid+email+profile (Keycloak invalid_scope bei groups)
Der groups-Claim kommt ueber den roles-Scope-Mapper ins Token, nicht ueber den
scope-Parameter. Verifiziert: /oauth2/start redirect mit scope=openid+email+profile.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-18 20:20:04 +01:00
spektr 6b42a460f4 M8-T4 umgesetzt: GPT Researcher auf ghostnet-ki (backend :8086, frontend :8085) hinter IAP
- Rolle gpt_researcher + playbooks/research.yml; Images digest-gepinnt
  (gptresearcher/gpt-researcher sha256:8e0975ec.., gptr-nextjs sha256:69e7e2fa..)
- LLM via OPENAI_BASE_URL=http://llama-cpp:8080/v1, FAST/SMART/STRATEGIC_LLM=Production-Alias,
  Retriever duckduckgo, LLM_TIMEOUT=600; User=root (upstream compose), Volumes unter gptr/
- NPM-vHost: location / -> 8085, /api -> 8086 (600s), beide auth_request; firewall 8085+8086 nur NPM
- Verifiziert: research.yml idempotent changed=0, backend /docs 200, frontend 200,
  research/ + research/api/docs unauth -> 302 Keycloak, 8086 WAN geblockt

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-18 14:26:29 +01:00
spektr c173012a6a M8-T3 umgesetzt: research.ghostnet.selfhost.eu via NPM + oauth2-proxy (auth_request) live
- LE-Cert npm-22 + Proxy-Host id 16 -> 10.0.0.90:8085, ssl_forced/hsts/ws/block_exploits
- auth_request/error_page in Custom Location "/" (NPM: nicht host-level advanced tab)
- NPM 2.15.1: cert meta leer (400 sonst), PUT nur Soll-Felder
- E2E: 302 zu Keycloak client_id=gnai-research scope=openid+email+profile+groups; idempotent changed=0

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-18 13:48:30 +01:00
spektr 8488a75b4d M8-T3 Vorbereitung: Split-DNS research.ghostnet.selfhost.eu + Firewall-Port 8085 + NPM-vHost-Rolle
- CT 100: dns_pihole_hosts_records um research.ghostnet.selfhost.eu -> 10.0.0.10
  in allen 3 Inventaren + Rollendefault; live verifiziert (dig @10.0.0.14), site.yml konvergent
- KI-Server: gnmon_firewall_npm_only_ports um 8085 erweitert; monitor.yml deployt, idempotent changed=0
- CT 103: neue Rolle reverse_proxy_research_vhost (NPM-API 127.0.0.1:81, idempotent):
  LE-Cert + Proxy-Host research.* -> 10.0.0.90:8085 mit auth_request-advanced_config
  gegen oauth2-proxy (127.0.0.1:4180); NPM-Admin-Creds als /etc/nginx-proxy-manager/api.env (0600, Operator)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-17 15:06:24 +01:00
spektr 73a8a59813 M8-T1/T2 umgesetzt: Keycloak idempotent via Ansible + oauth2-proxy auf CT 103 live
- keycloak_realm_config: KC auf 10.0.0.4:8080 (nicht loopback), Mapper auf
  realm-weiten roles-Scope (KC26: clients/{id}/client-scopes ist 404),
  attributes-Drift nur eigene Keys; site.yml idempotent changed=0; verifiziert:
  Rolle gnai-research-user, Client gnai-research (confidential, redirect/origins),
  groups-Claim-Mapper, ghost-Role-Mapping
- reverse_proxy_oauth2proxy: digest-gepinnt v7.15.5 (sha256:0d989b27...),
  Environment mit Leerzeichen gequotet, cookie-secret base64(24B)=32 chars,
  is-active rc=4 tolerieren; live verifiziert: ping 200, /oauth2/auth 401 ohne
  Session, LAN geblockt, /oauth2/start 302 zu Keycloak scope=openid+email+profile+groups
- gnai-research client-secret als Podman-Secret auf CT 103 (via Bootstrap-Token aus API)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-17 08:09:03 +01:00
spektr abd815be60 M8 Vorbereitung: Rolle reverse_proxy_oauth2proxy (oauth2-proxy v7.15.5 auf CT 103)
- Quadlet Network=host, bind 127.0.0.1:4180 (kein publish; LAN/WAN blocked, per Task verifiziert)
- Keycloak-OIDC (provider oidc, issuer realm Ghost.net, client gnai-research),
  cookie/client secrets als Podman-Secrets, Haertung: cookie secure/httponly/lax,
  24h expiry, reverse-proxy, set-xauthrequest, allowed-group via groups-claim,
  whitelist-domain, skip-auth-regex ^/ping$
- image digest placeholder (Pin nach erstem Pull), site.yml um Rolle erweitert
- GNAI-023 M8-T1: exakte Keycloak-Admin-UI-Schritte fuer Client gnai-research + Rolle gnai-research-user

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 01:31:27 +01:00
spektr eece53c7bb CT-103: Ansible-Nachbau fuer NPM/Fail2Ban (Adoption 07.11.2026)
Vollstaendiger CT-scoped Sollzustand fuer den Reverse-Proxy-LXC:
Konten/SSH-Drop-in (reverse_proxy_access), nftables (reverse_proxy_firewall),
NPM- und Fail2Ban-Quadlets inkl. Jails/Filter (reverse_proxy_npm,
reverse_proxy_fail2ban), LXC-Baseline sowie preflight/audit/bootstrap/
verify-deploy-access/site/verify-production-Playbooks fuer die Inventare
agent/bootstrap/production. NPM-Runtime-Daten (DB, Zertifikate, Proxyhosts)
bleiben bewusst aussen vor (Restore aus CT-Backup).

Verifiziert am 09.11.2026 gegen den Live-Host: preflight.yml (agent)
ok=15 failed=0; verify-production.yml (production) ok=27 changed=0 failed=0;
site.yml --check changed=0 (konvergent und idempotent). Host-Key-Fingerprint,
Hostname, Debian 13.7, 10.0.0.10, 2 vCPU/1024 MB matchen die Inventory-Safeguards.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-09 05:40:35 +01:00
spektr 00ed091890 CT-102 Keycloak: Migration nach Podman und Ansible abgeschlossen und gehärtet. 2026-10-14 15:01:14 +02:00