Commit Graph
57 Commits
Author SHA1 Message Date
spektrandMistral Vibe a6c55bcd4d GNAI-025: upstream-Pins gesetzt (fluxer main 872ed5d, compose-SHA d5558cd) + CT-117-pubkeys; Image-Digest-Anleitung (skopeo) in den Inventories
ci-static / secret-scan (push) Successful in 23s
ci-static / yamllint (push) Successful in 39s
ci-static / ansible-syntax (push) Successful in 34s
ci-static / markdown-links (push) Successful in 25s
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 03:05:59 +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 9724ccd378 CT 114: Tor-Bootstrap-Check liest komplettes Journal, Debug robust gegen leere Ausgabe
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 32s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 21s
-n 500 lieferte nach laengerem Betrieb keine Bootstrapped-Zeile mehr und
'| last' brach auf leerer Liste. Jetzt unbegrenztes Journal + default-Filter.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 18:57:30 +01:00
spektr dc0cc77a2c CT 114: onlynet=onion entfernt — kompilierte onion-Seeds sind tot (Befund k)
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 21s
Live gegen CT 114 geprüft: alle onion-Seeds von v0.21.5.8 'host unreachable'
via Tor, clearnet-via-Tor und duckduckgo-onion funktionieren. Mit proxy=
127.0.0.1:9050 geht jetzt ALLER P2P-Verkehr durch Tor (DNS-Seeds + clearnet-
Peers via Exits), listen=0/discover=0 bleiben — unsere IP wird nie exponiert.
Audit prüft jetzt: proxy pro Netzwerk gesetzt + keine inbound Peers.
GNAI-024 Abschnitt 2 Befund k + Abschnitt 12 aktualisiert.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 18:54:23 +01:00
spektr cfc9597b30 CT 114: sftp.command in Backup-Skript und Check-Service auf volle ssh-Zeile ergänzt
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 27s
ci-static / markdown-links (push) Successful in 23s
Follow-up zu 2309cd9 (Defaults/ssh_config); die beiden Templates enthielten
noch die unvollstaendige Variante ohne Host und -s sftp.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:22:38 +01:00
spektr 2309cd9fab CT 114: restic sftp.command als komplette ssh-Zeile inkl. Host und -s sftp
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 21s
restic 0.18 (internal/backend/sftp buildSSHCommand): bei gesetztem
sftp.command wird die komplette Kommandozeile per SplitShellStrings uebernommen
— Host und '-s sftp' werden NICHT angehaengt. Templates liefern jetzt die
volle Zeile 'ssh -F <config> gn-backup@10.0.0.90 -s sftp'.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:22:26 +01:00
spektr 69cfa09a3d CT 114: restic -o sftp.command hinter den Subcommand verschoben
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 20s
restic 0.18: -o ist ein Befehls-Flag ('restic snapshots -o ...'), vorher kam
'unknown command' und ssh erhielt kaputte argv. Check-Service ebenso auf
Flag-Variante umgestellt.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:20:34 +01:00
spektr 80fb782f35 CT 114: restic sftp per dedizierter ssh_config (-F) statt langem sftp.command
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 30s
ci-static / markdown-links (push) Successful in 21s
restic 0.18 zerlegt sftp.command unsauber; ssh_config mit absoluten Pfaden
(IdentityFile/UserKnownHostsFile/BatchMode) ist robust, weil ssh ~ aus dem
passwd-Eintrag liest. Rolle installiert /etc/litecoin-backup/ssh_config (0600).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:19:26 +01:00
spektr 21e410e8cd CT 114: restic sftp.command mit explizitem Key/known_hosts
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 32s
ci-static / markdown-links (push) Successful in 22s
ssh loest ~ aus dem passwd-Eintrag, nicht aus $HOME — HOME=/etc/litecoin-backup
griff nicht. Backup-Skript und restic-check übergeben Key und known_hosts
jetzt per -o sftp.command an restic (BatchMode, StrictHostKeyChecking).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:17:52 +01:00
spektr b713be5e2f CT 114: dev-mqueue/run-lock/tmp.mount maskieren (kein Nesting)
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 22s
Ohne nesting=1 schlagen diese Mounts beim Boot fehl und tauchen als failed
units auf (nach pct reboot sichtbar). Maskiert in der Baseline; PrivateTmp
der litecoind-Unit arbeitet unabhängig davon.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:12:32 +01:00
spektr cac1f6a2dc CT 114: Audit prüft onion-only per JSON-Parse statt Regex
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 30s
ci-static / markdown-links (push) Successful in 22s
getnetworkinfo listet ipv4/ipv6 als Eintraege mit reachable=false — die
alte Regex-Assertion war falsch. Jetzt JSON-Parse: onion reachable=true,
ipv4/ipv6 nicht reachable (live gegen CT 114 bestätigt).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:11:25 +01:00
spektr b0536c5166 CT 114: Audit nutzt ltc-readonly statt sudo -u litecoin
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 21s
Die sudoers-Regel ist (root)-beschränkt: 'sudo -u litecoin' braucht ein
Passwort. Der Wrapper ltc-readonly läuft als root via NOPASSWD und macht
intern runuser -u litecoin — Audit testet jetzt genau diesen Pfad.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:10:34 +01:00
spektr 86920698a9 CT 114: allowusers-Assertion an zeilenweise sshd -T-Ausgabe angepasst
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 35s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 23s
sshd -T listet jeden allowusers-Eintrag auf eigener Zeile; Audit prüft jetzt
drei einzelne Zeilen statt einer kombinierten.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:10:00 +01:00
spektr fb7e044cde CT 114: /opt/litecoin aus den Baseline-Verzeichnissen entfernt
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 30s
ci-static / markdown-links (push) Successful in 22s
Die Baseline legte /opt/litecoin als Directory an; litecoin_core will dort den
versions-Symlink setzen ('refusing to convert from directory to symlink').
Verzeichnis auf dem CT entfernt, Baseline-Eintrag gestrichen.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:06:55 +01:00
spektr 75a27b05a3 CT 114: Tor-Bootstrap aus dem Journal von tor@default lesen
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 31s
ci-static / markdown-links (push) Successful in 21s
Debian 13 loggt trotz 'Log notice file' ins Journal (multi-instance-master +
tor@default); torrc auf 'Log notice syslog', Status per journalctl. Live
geprüft: Bootstrapped 100% (done).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:05:36 +01:00
spektr 086a4e6f22 CT 114: Tor-Bootstrap-Status aus dem Notice-Log statt torctl lesen
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 20s
Debian 13 (trixie) shippt kein /usr/bin/torctl mehr; grep auf
'Bootstrapped …%' in /var/log/tor/notices.log stattdessen.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:04:16 +01:00
spektr 740fc545e3 CT 114: sudoers-Assertions in audit-production gequotet (YAML-Kolon)
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 31s
ci-static / markdown-links (push) Successful in 21s
'... NOPASSWD: ALL' wurde als Mapping geparst; alle that-Items aller
ct-114-YAML jetzt per Parse-Check als Strings verifiziert.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:03:20 +01:00
spektr b66e94a563 CT 114: fail2ban-Assertion gequotet (YAML-Kolon in search-String)
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 28s
ci-static / markdown-links (push) Successful in 21s
Der Klartext-Scalar mit ': ' wurde als Mapping geparst. Ausdrücke jetzt
doppelt gequotet.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:02:51 +01:00
spektr cfdfa61490 CT 114: fail2ban-Assertion auf 'Status for the jail: sshd' korrigiert
ci-static / secret-scan (push) Successful in 20s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 30s
ci-static / markdown-links (push) Successful in 21s
fail2ban-client status sshd liefert keinen 'Jail list'-Block (der kommt nur
von status ohne Argument); gegen die reale Ausgabe geprueft.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:02:05 +01:00
spektr 623fffa4ca CT 114: delegierte Key-Prüfung mit become: false
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 20s
delegate_to: localhost erbte become: true vom Play und brach lokal an
'sudo: Ein Passwort ist notwendig'. Delegierte Control-Node-Tasks jetzt
explizit become: false.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:01:14 +01:00
spektr 2080f987f7 CT 114: Key-Prüfung in litecoin_access läuft auf dem Control-Node
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 32s
ci-static / ansible-syntax (push) Successful in 33s
ci-static / markdown-links (push) Successful in 23s
stat/command der files/ssh-Pubkeys hatten ohne delegate_to auf dem Ziel
geprüft (exists=false trotz vorhandener Datei). Jetzt delegate_to: localhost.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 07:00:30 +01:00
spektr 3caaeb5451 CT 114 provisioniert: Fingerprint gepinnt, nesting/keyctl deaktiviert
ci-static / secret-scan (push) Successful in 20s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 31s
ci-static / markdown-links (push) Successful in 22s
CT 114 (ltc-node, 10.0.0.61) ist live: unprivileged, 2 vCPU/4096 MiB/1024 swap,
150G local-lvm, vmbr0 10.0.0.61/24 gw 10.0.0.1 dns 10.0.0.14, onboot, protection,
Europe/Berlin. Bootstrap-Hook lief gruen (ghost-agent 1000, ghost 1001,
ansible-deploy 1002, alle gelockt, Keys quellbeschraenkt). SSH-Hostkey
SHA256:nkRMQWpzpBkUaGNOgyCRsEaXK2KhdraTuiL5ihUdXW4 in allen drei host_vars gepinnt.
Nesting/keyctl nachtraeglich auf 0 gesetzt (Community-Scripts-Default waere 1);
Provisioning-Skript pinnt das kuenftig ebenfalls.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 06:58:13 +01:00
spektr 1683924610 CT 114: Hook-Guard wieder auf Literal-Platzhalter gestellt, Pin aktualisiert
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 32s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 21s
Das operator-seitige sed hatte den Platzhalter auch in der Vergleichszeile
ersetzt (Key == Key -> Hook starb immer mit 'placeholder not replaced').
Guard vergleicht jetzt wieder gegen '@GHOSTNET-CT114-GHOST-PUBLIC-KEY@'.
Neuer Hook-Pin c8d32465…f5e9f; scripts/README warnt vor globalem sed und
dokumentiert die Zwischenstaende.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 06:56:46 +01:00
spektr 86a4af3caf CT 114: awk-END-Block-Falle im storage_has_free behoben
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 34s
ci-static / ansible-syntax (push) Successful in 31s
ci-static / markdown-links (push) Successful in 22s
exit im Hauptblock wird vom END-Block ueberschrieben; Verdict jetzt ueber
Flags im END-Block (Muster wie storage_is_active). Lokal gegen pvesm-Werte
getestet (206 GiB frei -> PASS bei 182 GiB Gate).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 06:54:21 +01:00
spektr 948504c2c6 CT 114: Headroom-Preflight im Provisioning auf +32 GiB angepasst
ci-static / secret-scan (push) Successful in 20s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 30s
ci-static / markdown-links (push) Successful in 20s
local-lvm hat live ~206 GiB frei (thin-provisioned); 150+64 GiB haette den
laufenden Betrieb blockiert. Gate jetzt 150+32 GiB.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 06:50:03 +01:00
spektr 19711b5a06 CT 114: ghost-Pubkey gepinnt, Hook-SHA aktualisiert (9e1db709…)
Operator hat am 2026-11-27 den ghost-Key interaktiv erzeugt, alle drei
.pub nach ansible/files/ssh/ kopiert und den ADMIN_PUBLIC_KEY-Platzhalter
im Bootstrap-Hook ersetzt. Eingebettete Hook-Keys matchen byte-identisch
mit den Repo-Pubkeys (geprüft). POST_INSTALL_HOOK_SHA256 auf den neuen
Hook-Stand gepinnt; Stand in scripts/README.md und GNAI-024 dokumentiert.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 06:37:25 +01:00
spektr df5bbf0d70 GNAI-024: Litecoin-Wallet-LXC CT 114 — Doku, Ansible-Projekt, PVE-Skripte, Snapshots
ci-static / secret-scan (push) Successful in 20s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 20s
Nimmt die Research-Dokumente (litecoin-lxc-setup.txt, litecoin-lxc-tests.txt)
auf und prüft sie gegen die Repo-Konventionen (GNAI-024 Abschnitt 2):
Core v0.21.5.8 SHA256 gegen signiertes SHA256SUMS.asc verifiziert, RPC-Port
9332 (nicht 8332), nftables statt ufw, RPC per SSH-Exec statt Tunnel
(DisableForwarding), Cookie-Auth statt rpcauth, Backup-Ziel gn-backup auf
ghostnet-ki, vzdump-Abweichung mit Snapshot-Rolle, MWEB nie an Exchanges.

Neu: self-contained Ansible-Projekt proxmox/lxc/ct-114-litecoin-wallet/ansible
(3 Inventare, 5 Playbooks, 7 Rollen; nur öffentliche SSH-Keys im Repo),
PVE-Provisioning (provision-ct114-litecoin.sh + Bootstrap-Hook mit gepinnten
SHAs), Rolle pve_lxc_snapshot im pve-host-Projekt (täglich 04:00, Retention 7),
READMEs, Index-Einträge in GNAI-000 und proxmox-server README.

Workstation: SSH-Keys id_ed25519_ghostnet_ct114_{agent,ansible_deploy}
erzeugt, Aliase ghostnet-ct114-* in ~/.ssh/config. ghost-Key bleibt
Operator-Schritt (interaktive Passphrase).

Lokal bestanden: ansible --syntax-check, yamllint, secret_scan, check_links,
bash -n aller Skripte, Jinja-Render-Smoke-Test aller Templates.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 17:06:36 +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
spektrandMistral Vibe 415e4a8a9f keycloak_realm_config: KC26-Hinweis — realm-management-Rollen erst nach "Assign role" sichtbar (Service-account roles bzw. User service-account-* -> Role mapping)
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-17 07:33:04 +01:00
spektr f84ed85673 M8-T1 idempotent: neue Rolle keycloak_realm_config (Admin-REST-API via Service Account)
- Bootstrap einmalig per UI: Client ansible-keycloak-admin (confidential,
  service account, realm-management manage-*), Secret als 0600-Datei auf CT 102
- danach site.yml synct idempotent: Realm-Rolle gnai-research-user, Client
  gnai-research (redirect/web-origins, standard flow only), groups-Claim-Mapper
  (oidc-usermodel-realm-role-mapper auf Claim groups), Role-Mapping ghost
- files/keycloak_realm_sync.py (stdlib only) treibt /admin/realms/Ghost.net per
  GET->POST/PUT, Ausgabe CHANGED/UNCHANGED; Spec in defaults/main.yml
- GNAI-023 M8-T1 umgestellt auf Bootstrap + Playbook; syntax-check OK

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-17 07:17:27 +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
vibe-agent 0926dea0b7 M6: OpenWebUI intern produktiv + Produktentscheidung (API+WebUI, LiteLLM nicht fuer M6) (#4)
ci-static / secret-scan (push) Successful in 20s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 28s
ci-static / markdown-links (push) Successful in 20s
Co-authored-by: vibe-agent <vibe-agent@ghostnet.local>
2026-11-11 06:45:18 +01:00
spektr 2fe80bc015 M1-Sicherheitsabschluss 10.11.2026: Fail2Ban-Abnahme, hostunabhängige LXC-Backups, Keycloak-Stabi + NPM-Rückfalltest, CT 104 entfernt
- Fail2Ban CT 103 funktional abgenommen (Image/Digest, Jails, Filter-Dry-Run,
  kontrollierter Ban/Unban 203.0.113.66 mit nftables-Nachweis, Dienstneustart,
  pct-Reboot); Befund proxy-host-14 im Jail-Glob nach Restart + SOP; frischer
  Rollback-vzdump d4478c85...
- Hostunabhängige LXC-Backups: frische Stop-Mode-vzdumps CT 100/102/103/105,
  Archiv auf ghostnet-ki (gn-backup, quellbeschränkter PVE-Key) mit SHA-256-
  Verifikation, Restore-Test CT 100 -> CT 150 bestanden; deklarative Rollen
  gn_backup_receiver (KI) + pve_lxc_backup_sync (PVE, nächtlicher Timer,
  Prune 4/CT), beide konvergent changed=0
- Keycloak CT 102: 26 Tage stabil (NRestarts=0), Ansible-Drift changed=0,
  praktischer NPM-Rückfalltest auf CT 104 bestanden (Hosts 7/13 -> .16 -> .4);
  danach CT 104 nach Betreiberfreigabe archiviert + entfernt, historische
  CT-102-Altbackups gelöscht (SHA-256 dokumentiert), 10.0.0.16 aus WG-Set
  server_admin_targets entfernt
- WAN/IPv6-Exposure erfasst: WAN nur TCP 80/443 offen, keine AAAA-Records
- Doku: GNAI-000/001/013, GNAI-006/007/012/016, pve-host README, ct-104 README

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-10 19:42:06 +01:00
spektr fd8e1a5559 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>
2026-11-09 19:34:50 +01:00
spektr d800a8a661 CT-100 DNS: Split-DNS-Record mon.ghostnet.selfhost.eu vorbereitet (GNMON-M6)
Ergaenzt den A-Record 10.0.0.10 (NPM CT-103) in dns_pihole_hosts_records.
Deploy auf CT 100 steht noch aus: dort existiert bis heute kein
ansible-deploy-Konto (Adoption via bootstrap.yml, Stand 09.11.2026).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-09 05:40:39 +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 6a1eff7392 CT-101 Samba + PVE-Host: NFS auf den Host verlagert, Host per Ansible verwaltet
- CT 101 kennt NFS nicht mehr: samba_nfs-Rolle und Ganesha-Artefakte entfernt,
  kein Podman, keine 2049-Firewall-Regel, kein seccomp-Sondereintrag; live
  restlos bereinigt und deckungsgleich mit dem Playbook (verify ok=47,
  Idempotenz changed=0). Dafür neue SMB-Freigabe [Encoding] (Export-Root) für
  die Kontrolle von anderen Geräten als ghostnet-ki.
- Grund: Weder kernel-nfsd noch Ganesha (VFS-FSAL) laufen in einem
  unprivileged LXC — open_by_handle_at braucht CAP_DAC_READ_SEARCH in der
  init-userns und liefert dort immer EPERM (verifiziert auf Kernel
  7.0.14-14-pve; Web-Recherche: NFS direkt auf dem PVE-Host ist gängige Praxis
  und anerkannte Ausnahme vom Host-Grundsatz).
- Neuer Account ansible-deploy (UID 1001) auf dem PVE-Host 10.0.0.2 nach
  LXC-Muster: gelocktes Passwort, source-restrictierter passphrase-loser Key
  (nur pub im Repo), NOPASSWD-Sudoers; Host-Key-Fingerprint verifiziert.
- Neues Host-Projekt proxmox/pve-host/ansible (Schema wie die CT-Projekte):
  preflight/site.yml/verify-production + Rollen pve_nfs_export (Kernel-NFS,
  /etc/exports nur 10.0.0.90/32, NFSv4-only, Export-Root 100000:970 2775,
  nft 2049 nur von 10.0.0.90) und pve_lxc_conf (seccomp-Leerzeile aus
  101.conf entfernt). Auf dem Host grün: check changed=0, verify ok=15,
  Idempotenz changed=0.
- Abnahme bestanden: NFSv4.2-Mount von ghostnet-ki gegen
  10.0.0.2:/media/datenhdd3/Encoding (Export-Root 100000:970 2775 sichtbar),
  sauberer Unmount. CT 101 nach Reboot: Seccomp 2, keine failed units, 17
  Shares, 10 CIFS-Mounts der Workstation hängen.
- Doku aktualisiert: GNAI-017 §4.1 und GNAI-019 E2/E3/§15 revidiert,
  Bereichsindex ergänzt, READMEs angepasst; PVE-Lifecycle-Skripte ohne
  seccomp-Ausnahme (Hashes aktualisiert).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 18:49:10 +01:00
spektr 2753677c7c CT-101 Samba: ganesha 6.5 Client-Allowlist per CLIENT-Block (vor EXPORT)
- Mount von ghostnet-ki schlug mit EPERM fehl: Export hatte "0 defined
  clients" (kein clients-Parameter -> Zugriffspruefung schlaegt fehl)
- Ganesha 6.5: CLIENT-Block mit kleingeschriebenem `clients`, Block MUSS vor
  dem EXPORT stehen (Parser ist reihenfolgeempfindlich); gegen den 6.5-Parser
  verifiziert. EXPORT auf Access_Type = None (deny-by-default), CLIENT gewaehrt
  10.0.0.90 RW; nftables deckelt zusaetzlich auf 2049 nur von 10.0.0.90

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 16:36:59 +01:00
spektr d3b79d9245 CT-101 Samba: ganesha.conf für Ganesha 6.5 im unprivileged LXC korrigieren
- Allow_Set_IO_Flusher_Fail = true: PR_SET_IO_FLUSHER braucht CAP_SYS_ADMIN
  in der init-userns (im Guest nicht vorhanden) und war FATAL
- NFSv4 RecoveryRoot = /var/lib/nfs-ganesha (rw-State-Volume des Quadlets);
  der Default /var/lib/nfs/ganesha ist im ReadOnly-Container nicht schreibbar
- AccessType -> Access_Type (Ganesha 6.5, sonst "Unknown parameter")
- per-export Client-Liste entfernt: Clients/clients/CLIENT-Block werden vom
  6.5-Parser abgelehnt; die Client-Beschränkung (nur 10.0.0.90) wird durch
  die nftables-Policy durchgesetzt (2049 nur von 10.0.0.90, default drop)
- im Image verifiziert: strict parse (-x) clean, Listener auf *:2049 OK

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 15:33:32 +01:00
spektr 0979f62ae2 CT-101 Samba: Ganesha-Pidfile im ReadOnly-Container fixen (-p /run/ganesha.pid)
- ganesha.nfsd startete im Quadlet-Container nicht: FATAL open(
  /var/run/ganesha/ganesha.pid) ENOENT — /run ist im Container eine leere
  rw-Tmpfs (ReadOnly=true), das Default-Pidfile-Verzeichnis existiert nicht
- Fix: -p /run/ganesha.pid in der Containerfile-CMD (CLI-Option, per
  ganesha.nfsd -p im Image verifiziert); /run selbst ist rw und existiert
- Containerfile-Checksum neu gepinnt (54cf9cae..., 2026-10-30) in
  samba_nfs-Default und allen drei Inventaren; Image wird beim nächsten
  Lauf automatisch neu gebaut (Label-Vergleich)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 15:21:35 +01:00
spektr f77d973b22 CT-101 Samba: Check-Mode-Guards und self-contained Inventory für site.yml
- group_vars spiegelt samba_smb_config_file/passdb_file sowie
  samba_access_admin_user/ssh_dropin, damit backup.yml/verify-production.yml
  ohne geladene Rolle laufen (CT-100/102-Konvention); alle drei Inventare
  byte-identisch
- samba_lxc_baseline: unattended-upgrades.service nach dem apt-Install
  enable+starten, Task mit when: not ansible_check_mode
- samba_nfs: artifact_source_root auf playbook_dir/../.. korrigiert
  (Artifacts liegen in ct-101-samba/, nicht in ansible/); gn-media-Probe mit
  failed_when: false und Assert-Guard für den ersten Check-Mode-Lauf;
  Ganesha-Restart-Handler mit when: not ansible_check_mode
- site.yml --check --diff gegen CT 101 grün: ok=100 changed=20 failed=0

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 15:12:58 +01:00