From 8b1f2a7e9529a10899df3c5b563b861417300b27 Mon Sep 17 00:00:00 2001 From: Robert Rapp Date: Thu, 15 Oct 2026 14:47:15 +0200 Subject: [PATCH] =?UTF-8?q?rustdesk:=20Schl=C3=BCsselpr=C3=BCfung=20=C3=BC?= =?UTF-8?q?ber=20das=20Secret=20statt=20exec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- platform/proxmox/ansible/playbooks/rustdesk-k3s.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml b/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml index 61242d0..e1cf815 100644 --- a/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml +++ b/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml @@ -52,10 +52,10 @@ ansible.builtin.command: kubectl -n rustdesk rollout status deployment/rustdesk --timeout=300s changed_when: false - - name: Public Key im Cluster entspricht der Datei + - name: Public Key im Cluster entspricht der Datei (Image hat keine Shell, daher über das Secret) ansible.builtin.shell: > set -o pipefail; - kubectl -n rustdesk exec deploy/rustdesk -c hbbs -- cat /root/id_ed25519.pub | tr -d '\n' | cmp - <(tr -d '\n' < {{ key_dir }}/id_ed25519.pub) + kubectl -n rustdesk get secret rustdesk-keys -o go-template='{{ "{{" }}index .data "id_ed25519.pub"{{ "}}" }}' | base64 -d | cmp - {{ key_dir }}/id_ed25519.pub args: {executable: /bin/bash} changed_when: false