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
spektr and Mistral 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