Files
infrastructure/llm-server/host/ansible/roles/gn_backup_receiver
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
..

gn_backup_receiver

Dedicated receiver account gn-backup (UID 999, GID 987) on ghostnet-ki for host-independent LXC backups. The Proxmox host pushes its vzdump archives here over SSH (role pve_lxc_backup_sync in proxmox/pve-host/ansible), so the LXC backups survive a full loss of the PVE host (GNAI-000 section 4, blocker 4).

  • Locked password, no sudo, real shell only because ssh executes the receiving tar through it.
  • authorized_keys holds the PVE backup key (files/ssh/pve-backup.pub, fingerprint SHA256:tabCXnfrKhWI2+0F8vZgLqg7JtWn1Xt4ifo8o2KuPNc) restricted with from="10.0.0.2" and no forwarding.
  • Home /var/lib/ghostnet-ai-backup stays root-owned 0711 (traversable for sshd StrictModes, not writable); the AI backup archives written by the root gnai-ai-backup timer stay root-owned. Only lxc/ and .ssh/ belong to gn-backup.

Verified 2026-11-10: archives for CT 100/102/103/105 copied from PVE, SHA-256 match confirmed; practical restore test of the CT 100 archive to a scratch CT passed.