From 73b9eba81999744ba0adf4c252ccdb2bd0bd2a19 Mon Sep 17 00:00:00 2001 From: khramshinr Date: Wed, 11 Dec 2024 11:51:10 +0800 Subject: T6934: Add preshared key for zabbix-agent monitoring service - Allow configure preshared key for zabbix-agent - Added op mode command for generatre random psk secret - Removed duplicate xml definition for psk settings Configure authentication mode: ``` # set service monitoring zabbix-agent authentication mode Possible completions: pre-shared-secret Use a pre-shared secret key ``` Configure PSK Settings: ``` # set service monitoring zabbix-agent authentication psk Possible completions: id ID for authentication secret pre-shared secret key ``` Generate Random PSK: ``` $ generate psk random Possible completions: Execute the current command size Key size in bytes ``` --- op-mode-definitions/generate-psk.xml.in | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 op-mode-definitions/generate-psk.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/generate-psk.xml.in b/op-mode-definitions/generate-psk.xml.in new file mode 100644 index 000000000..69963f5be --- /dev/null +++ b/op-mode-definitions/generate-psk.xml.in @@ -0,0 +1,28 @@ + + + + + + + Generate PSK key + + + + + Generate random hex PSK key + + ${vyos_op_scripts_dir}/generate_psk.py + + + + Key size in bytes + + ${vyos_op_scripts_dir}/generate_psk.py --hex_size "$5" + + + + + + + + -- cgit v1.2.3