From 3caaeb5451135ba17a63467bad402d320a1d543b Mon Sep 17 00:00:00 2001 From: spektr Date: Fri, 27 Nov 2026 06:58:13 +0100 Subject: [PATCH] CT 114 provisioniert: Fingerprint gepinnt, nesting/keyctl deaktiviert 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 --- .../ansible/inventories/agent/host_vars/litecoin-ct114.yml | 2 +- .../inventories/bootstrap/host_vars/litecoin-ct114.yml | 2 +- .../inventories/production/host_vars/litecoin-ct114.yml | 2 +- .../scripts/provision-ct114-litecoin.sh | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/agent/host_vars/litecoin-ct114.yml b/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/agent/host_vars/litecoin-ct114.yml index 557bb33..e056e52 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/agent/host_vars/litecoin-ct114.yml +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/agent/host_vars/litecoin-ct114.yml @@ -4,7 +4,7 @@ litecoin_expected_ipv4: 10.0.0.61 # Wird nach dem ersten Boot des CT vom Operator aus der Proxmox-Konsole # uebernommen (ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub via pct exec) # und hier gepinnt. Der Platzhalter muss vor dem ersten Lauf ersetzt werden. -litecoin_expected_ssh_host_key_fingerprint: "SHA256:PENDING-operator-pins-after-first-boot" +litecoin_expected_ssh_host_key_fingerprint: "SHA256:nkRMQWpzpBkUaGNOgyCRsEaXK2KhdraTuiL5ihUdXW4" # gepinnt 2026-11-27 aus dem Bootstrap-Hook-Log (pct exec 114) litecoin_expected_processor_vcpus: 2 litecoin_minimum_memory_mb: 3800 litecoin_minimum_root_size_bytes: 150000000000 diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/bootstrap/host_vars/litecoin-ct114.yml b/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/bootstrap/host_vars/litecoin-ct114.yml index ce93607..a073d2b 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/bootstrap/host_vars/litecoin-ct114.yml +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/bootstrap/host_vars/litecoin-ct114.yml @@ -1,7 +1,7 @@ --- litecoin_ctid: 114 litecoin_expected_ipv4: 10.0.0.61 -litecoin_expected_ssh_host_key_fingerprint: "SHA256:PENDING-operator-pins-after-first-boot" +litecoin_expected_ssh_host_key_fingerprint: "SHA256:nkRMQWpzpBkUaGNOgyCRsEaXK2KhdraTuiL5ihUdXW4" # gepinnt 2026-11-27 aus dem Bootstrap-Hook-Log (pct exec 114) litecoin_expected_processor_vcpus: 2 litecoin_minimum_memory_mb: 3800 litecoin_minimum_root_size_bytes: 150000000000 diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/production/host_vars/litecoin-ct114.yml b/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/production/host_vars/litecoin-ct114.yml index f6e2ee2..5ec4d17 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/production/host_vars/litecoin-ct114.yml +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/inventories/production/host_vars/litecoin-ct114.yml @@ -4,7 +4,7 @@ litecoin_expected_ipv4: 10.0.0.61 # Wird nach dem ersten Boot des CT vom Operator aus der Proxmox-Konsole # uebernommen (pct exec 114 -- ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub) # und hier gepinnt. Der Platzhalter muss vor dem ersten Lauf ersetzt werden. -litecoin_expected_ssh_host_key_fingerprint: "SHA256:PENDING-operator-pins-after-first-boot" +litecoin_expected_ssh_host_key_fingerprint: "SHA256:nkRMQWpzpBkUaGNOgyCRsEaXK2KhdraTuiL5ihUdXW4" # gepinnt 2026-11-27 aus dem Bootstrap-Hook-Log (pct exec 114) litecoin_expected_processor_vcpus: 2 litecoin_minimum_memory_mb: 3800 litecoin_minimum_root_size_bytes: 150000000000 diff --git a/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh b/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh index 146eb3a..4b7a517 100755 --- a/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh +++ b/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh @@ -140,6 +140,9 @@ export var_hostname="$HOSTNAME" export var_os='debian' export var_version='13' export var_unprivileged='1' +# No nesting/keyctl: litecoind runs as a plain systemd service, no Podman. +export var_nesting='0' +export var_keyctl='0' export var_brg="$BRIDGE" export var_net="$IPV4_CIDR" export var_gateway="$GATEWAY" @@ -172,6 +175,8 @@ grep -qx 'onboot: 1' <<<"$config" || die 'onboot is not enabled' grep -qx 'protection: 1' <<<"$config" || die 'container protection is not enabled' grep -qx 'unprivileged: 1' <<<"$config" || die 'container is not unprivileged' grep -qx 'timezone: Europe/Berlin' <<<"$config" || die 'unexpected timezone' +grep -Eq '^features: .*nesting=0' <<<"$config" || die 'nesting is not disabled' +grep -Eq '^features: .*keyctl=0' <<<"$config" || die 'keyctl is not disabled' grep -Eq '^rootfs: local-lvm:.*,size=150G(,|$)' <<<"$config" || die 'unexpected root filesystem allocation' net0="$(grep '^net0: ' <<<"$config")"