CT 114: Audit nutzt ltc-readonly statt sudo -u litecoin
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 21s

Die sudoers-Regel ist (root)-beschränkt: 'sudo -u litecoin' braucht ein
Passwort. Der Wrapper ltc-readonly läuft als root via NOPASSWD und macht
intern runuser -u litecoin — Audit testet jetzt genau diesen Pfad.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-11-27 07:10:34 +01:00
parent 86920698a9
commit b0536c5166
@@ -134,10 +134,10 @@
that:
- litecoin_audit_tor_config.rc == 0
- name: Read the litecoind network state via the read-only wrapper path
- name: Read the litecoind network state via the read-only wrapper
become: false
ansible.builtin.command:
argv: [/usr/bin/sudo, -n, -u, litecoin, /opt/litecoin/bin/litecoin-cli, -conf=/etc/litecoin/litecoin.conf, getnetworkinfo]
argv: [/usr/bin/sudo, -n, /usr/local/bin/ltc-readonly, getnetworkinfo]
check_mode: false
changed_when: false
register: litecoin_audit_networkinfo