From 19711b5a06419c1695ccbf4cd70bb50c254c0ea4 Mon Sep 17 00:00:00 2001 From: spektr Date: Fri, 27 Nov 2026 06:37:25 +0100 Subject: [PATCH] =?UTF-8?q?CT=20114:=20ghost-Pubkey=20gepinnt,=20Hook-SHA?= =?UTF-8?q?=20aktualisiert=20(9e1db709=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../GNAI-024-PLAN_Litecoin-Wallet-LXC.md | 6 +++++- .../ansible/files/ssh/litecoin-ghost.pub | 1 + proxmox/lxc/ct-114-litecoin-wallet/scripts/README.md | 6 ++++++ .../scripts/ghostnet-litecoin-ansible-bootstrap-hook.sh | 4 ++-- .../scripts/provision-ct114-litecoin.sh | 9 +++++---- 5 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 proxmox/lxc/ct-114-litecoin-wallet/ansible/files/ssh/litecoin-ghost.pub diff --git a/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md b/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md index cdb7ebf..91e4039 100644 --- a/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md +++ b/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md @@ -221,7 +221,11 @@ getnetworkinfo, getpeerinfo, getwalletinfo, listtransactions, …). - Workstation: SSH-Keys `id_ed25519_ghostnet_ct114_agent` und `id_ed25519_ghostnet_ct114_ansible_deploy` erzeugt (passphrase-los), Aliase `ghostnet-ct114-{agent,ghost,ansible-deploy}` in `~/.ssh/config`. - Der `ghost`-Key ist Operator-Schritt (Passphrase interaktiv). +- **2026-11-27 (Operator):** `ghost`-Key interaktiv mit Passphrase erzeugt, + alle drei `.pub` nach `ansible/files/ssh/` kopiert, `ADMIN_PUBLIC_KEY`- + Platzhalter im Hook ersetzt; eingebettete Hook-Keys matchen byte-identisch + mit den Repo-Pubkeys (geprüft), Hook-SHA neu gepinnt + (`9e1db709…14d69`, siehe `scripts/README.md`). - Verifiziert: Litecoin v0.21.5.8 SHA-256 gegen signiertes `SHA256SUMS.asc` (Befund a); Shell-Syntax aller Skripte; Ansible-Syntax aller Playbooks; yamllint, Secret-Scan und Markdown-Linkcheck (CI-Skripte lokal) bestanden. diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/files/ssh/litecoin-ghost.pub b/proxmox/lxc/ct-114-litecoin-wallet/ansible/files/ssh/litecoin-ghost.pub new file mode 100644 index 0000000..a5ebd93 --- /dev/null +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/files/ssh/litecoin-ghost.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGUv4INjWuIzgRL9Pw4TqeHirG72AeA6bowsea6fj2OT ghost@ghostnet-ct114 diff --git a/proxmox/lxc/ct-114-litecoin-wallet/scripts/README.md b/proxmox/lxc/ct-114-litecoin-wallet/scripts/README.md index 102545d..9b36d90 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/scripts/README.md +++ b/proxmox/lxc/ct-114-litecoin-wallet/scripts/README.md @@ -45,6 +45,12 @@ cp ~/.ssh/id_ed25519_ghostnet_ct114_*.pub into this repo: # in provision-ct114-litecoin.sh. ``` +Erledigt am 2026-11-27: alle drei `.pub` liegen in `ansible/files/ssh/`, der +Hook-Platzhalter ist ersetzt und die eingebetteten Keys matchen byte-identisch +mit den Repo-Dateien (geprüft). Aktueller Hook-Pin: +`9e1db709db30f93ff918be9ee88f545243003a916d7b8c434b85e58a81014d69` +(Vor-Platzhalter-Wert: `a742377a…a359e3`). + The `ghost` key passphrase is an interactive operator step and is never written down anywhere (AGENTS.md: operator-run secret steps). diff --git a/proxmox/lxc/ct-114-litecoin-wallet/scripts/ghostnet-litecoin-ansible-bootstrap-hook.sh b/proxmox/lxc/ct-114-litecoin-wallet/scripts/ghostnet-litecoin-ansible-bootstrap-hook.sh index 69ffa0a..90cde53 100755 --- a/proxmox/lxc/ct-114-litecoin-wallet/scripts/ghostnet-litecoin-ansible-bootstrap-hook.sh +++ b/proxmox/lxc/ct-114-litecoin-wallet/scripts/ghostnet-litecoin-ansible-bootstrap-hook.sh @@ -22,7 +22,7 @@ readonly DEPLOY_UID="1002" # (GNAI-024 Abschnitt 6 Schritt 0); the hook refuses to run while the # placeholder is present. readonly AGENT_PUBLIC_KEY='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMvQR56yADYULrpThnXROAa8GxKWfb+xcnIVLVDVX6Yy ghost-agent@ghostnet-ct114' -readonly ADMIN_PUBLIC_KEY='@GHOSTNET-CT114-GHOST-PUBLIC-KEY@' +readonly ADMIN_PUBLIC_KEY='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGUv4INjWuIzgRL9Pw4TqeHirG72AeA6bowsea6fj2OT ghost@ghostnet-ct114' readonly DEPLOY_PUBLIC_KEY='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILfqlYvqesJK9bhMmfv6tRp5pXPFDu13xmYbV+58fopV ansible-deploy@ghostnet-ct114' log() { @@ -37,7 +37,7 @@ die() { [[ "${EUID}" -eq 0 ]] || die "must run as root on the Proxmox host" command -v pct >/dev/null 2>&1 || die "pct not found; run this hook on Proxmox" [[ -x "$BASELINE_HOOK" ]] || die "baseline hook is missing or not executable: ${BASELINE_HOOK}" -[[ "$ADMIN_PUBLIC_KEY" != '@GHOSTNET-CT114-GHOST-PUBLIC-KEY@' ]] || +[[ "$ADMIN_PUBLIC_KEY" != 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGUv4INjWuIzgRL9Pw4TqeHirG72AeA6bowsea6fj2OT ghost@ghostnet-ct114' ]] || die "ADMIN_PUBLIC_KEY placeholder not replaced; see scripts/README.md step 0" ctid="${CTID:-${1:-}}" 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 b08f510..01dcdaf 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 @@ -21,10 +21,11 @@ readonly PROXMOXVE_COMMIT='c0c9d93d5db1692167efeee2e019f1519af4e0d2' readonly CORE_COMMIT='d1cec87881d7de053d86434aaf98eb203170c1b9' readonly DEBIAN_SCRIPT_SHA256='8396340fb3c91142ddf8356eb80904fad181acd6c6ad2c33b22ed4698c86187d' readonly BASELINE_HOOK_SHA256='111f1b70e47e3a2f6a1bcce22cb0ec50aacd8fbcff37d87fbcf853a318381b10' -# SHA-256 of the hook BEFORE the ADMIN_PUBLIC_KEY placeholder is replaced. -# The operator replaces the placeholder with the generated ghost public key -# (scripts/README.md step 0), recomputes the SHA-256 and updates this pin. -readonly POST_INSTALL_HOOK_SHA256='a742377acdf41020559fe77b1e4313d112338a7221a89259255bbf03bfa359e3' +# SHA-256 of the hook AFTER the operator replaced the ADMIN_PUBLIC_KEY +# placeholder with the generated ghost public key on 2026-11-27 +# (scripts/README.md step 0). The pre-placeholder value was +# a742377acdf41020559fe77b1e4313d112338a7221a89259255bbf03bfa359e3. +readonly POST_INSTALL_HOOK_SHA256='9e1db709db30f93ff918be9ee88f545243003a916d7b8c434b85e58a81014d69' readonly COMMUNITY_SCRIPTS_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/${PROXMOXVE_COMMIT}" readonly COMMUNITY_SCRIPTS_CORE_URL="https://raw.githubusercontent.com/community-scripts/core/${CORE_COMMIT}"