Page MenuHomeVyOS Platform

Add preshared keys for zabbix-agent monitoring service
Closed, ResolvedPublicFEATURE REQUEST

Description

Add the ability to configure preshared keys for the zabbix-agent monitoring service

https://www.zabbix.com/documentation/6.4/en/manual/encryption/using_pre_shared_keys
https://github.com/zabbix/zabbix/blob/master/src/go/conf/zabbix_agent2.conf

generating PSK

Generating PSK

For example, a 256-bit (32 bytes) PSK can be generated using the following commands:

with OpenSSL:
  $ openssl rand -hex 32
  af8ced32dfe8714e548694e2d29e1a14ba6fa13f216cb35c19d0feb1084b0429

zabbix-agent2 configuration:

TLSConnect=psk
TLSAccept=psk
TLSPSKFile=/home/zabbix/zabbix_agentd.psk
TLSPSKIdentity=PSK 001

Proposed CLI:

set service monitoring zabbix-agent authentication mode pre-shared-secret
set service monitoring zabbix-agent psk id 'PSK_001'
set service monitoring zabbix-agent psk secret 'xxx'

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

Viacheslav triaged this task as Normal priority.
HollyGurza changed the task status from Open to In progress.Dec 9 2024, 10:10 AM
HollyGurza claimed this task.
Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.

Implemented

vyos@r16# set service monitoring zabbix-agent authentication mode 
Possible completions:
   pre-shared-secret    Use a pre-shared secret key
                        

      
[edit]
vyos@r16# set service monitoring zabbix-agent authentication mode pre-shared-secret 
[edit]
vyos@r16# run show ver
Version:          VyOS 1.5.0
Release train:    circinus
Release flavor:   generic