Send an SNMP V3 trap using any incorrect username, with no priv or auth password.
e.g. snmptrap -v 3 -u "fake_user" localhost:162 1 coldStart.0
Observe in the Telegraf log that the trap is accepted even though the username does not match the config.
Expected behavior
Telegraf should reject the trap as the username is incorrect and the rest of the auth config is missing.
Actual behavior
Telegraf accepts the trap and writes to the output.
Additional info
If the priv and auth passwords are supplied they must be correct, otherwise the trap is rejected.
e.g. snmptrap -v 3 -u "my_user" -a SHA -A 'my_auth_pass' -X 'my_priv_pass' -l authPriv -x AES localhost:162 1 coldStart.0
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.32.3, MacOS or Linux
Docker
No response
Steps to reproduce
snmptrap -v 3 -u "fake_user" localhost:162 1 coldStart.0
Expected behavior
Telegraf should reject the trap as the username is incorrect and the rest of the auth config is missing.
Actual behavior
Telegraf accepts the trap and writes to the output.
Additional info
If the priv and auth passwords are supplied they must be correct, otherwise the trap is rejected. e.g.
snmptrap -v 3 -u "my_user" -a SHA -A 'my_auth_pass' -X 'my_priv_pass' -l authPriv -x AES localhost:162 1 coldStart.0