GNAI-024: gn_backup_receiver um CT-114-restic-Key und Zielverzeichnis ergänzt
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 32s
ci-static / ansible-syntax (push) Successful in 28s
ci-static / markdown-links (push) Successful in 22s

ghostnet-ki (10.0.0.90) ist das etablierte hostunabhängige Backup-Ziel
(GNAI-000 Blocker 4). CT 114 pusht seine clientseitig verschlüsselten
Wallet-Backups per restic/sftp als gn-backup nach
/var/lib/ghostnet-ai-backup/ct114/restic. Neuer Key ct114-restic.pub
(Fingerprint SHA256:i4UFMsAmdGdi8s0pJeVnK7Ros1liEqXzJ2IghyBCBiU),
quellbeschränkt from="10.0.0.61", no forwarding. Rolle samoacht jetzt
authorized_keys aus Haupt- plus Zusatzschlüsseln. Anwenden auf ghostnet-ki
erfolgt separat per llm-server host.yml durch den Operator.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-11-27 06:41:19 +01:00
parent 19711b5a06
commit d9462bd85d
5 changed files with 36 additions and 2 deletions
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJZAt2wB48lIH1vSWL7djBHufmnpb19zrSoMw18CeIss restic@ct114
@@ -12,6 +12,12 @@ PVE host (GNAI-000 section 4, blocker 4).
(`files/ssh/pve-backup.pub`, fingerprint
`SHA256:tabCXnfrKhWI2+0F8vZgLqg7JtWn1Xt4ifo8o2KuPNc`) restricted with
`from="10.0.0.2"` and no forwarding.
- **2026-11-27 (GNAI-024):** zusatzlicher CT-114-restic-Key
(`files/ssh/ct114-restic.pub`, Fingerprint
`SHA256:i4UFMsAmdGdi8s0pJeVnK7Ros1liEqXzJ2IghyBCBiU`), restricted mit
`from="10.0.0.61"` und no forwarding; Zielverzeichnis
`/var/lib/ghostnet-ai-backup/ct114` (restic-Repo der clientseitig
verschluesselten Wallet-Backups aus CT 114).
- 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/`
@@ -22,3 +22,11 @@ gn_backup_lxc_dir: /var/lib/ghostnet-ai-backup/lxc
# Restrictions for the PVE backup key (public key in files/ssh/pve-backup.pub).
gn_backup_ssh_options: 'from="10.0.0.2",no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc'
gn_backup_pubkey_file: pve-backup.pub
# Additional source-restricted receiver keys. CT 114 (Litecoin wallet LXC,
# GNAI-024) pushes its client-side encrypted wallet backups (restic over
# sftp) into gn_backup_ct114_dir; the key may only be used from the CT.
gn_backup_additional_keys:
- file: ct114-restic.pub
options: 'from=\"10.0.0.61\",no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc'
gn_backup_ct114_dir: /var/lib/ghostnet-ai-backup/ct114
@@ -35,9 +35,13 @@
group: gn-backup
mode: "0700"
- name: Install the source-restricted PVE backup key
- name: Install the source-restricted receiver keys
ansible.builtin.copy:
content: "{{ gn_backup_ssh_options }} {{ lookup('ansible.builtin.file', role_path ~ '/../../files/ssh/' ~ gn_backup_pubkey_file) }}"
content: |-
{{ gn_backup_ssh_options }} {{ lookup('ansible.builtin.file', role_path ~ '/../../files/ssh/' ~ gn_backup_pubkey_file) }}
{% for key in gn_backup_additional_keys %}
{{ key.options }} {{ lookup('ansible.builtin.file', role_path ~ '/../../files/ssh/' ~ key.file) }}
{% endfor %}
dest: "{{ gn_backup_account.home }}/.ssh/authorized_keys"
owner: "{{ gn_backup_account.name }}"
group: gn-backup
@@ -50,3 +54,11 @@
owner: "{{ gn_backup_account.name }}"
group: gn-backup
mode: "0700"
- name: Create the CT 114 restic target directory
ansible.builtin.file:
path: "{{ gn_backup_ct114_dir }}"
state: directory
owner: "{{ gn_backup_account.name }}"
group: gn-backup
mode: "0700"