pyzabbix icon indicating copy to clipboard operation
pyzabbix copied to clipboard

Do not reveal password in error message upon connection issue

Open krisavi opened this issue 3 years ago • 1 comments

Would be nice if the password is not shown in the error message if there is issues connecting to zabbix.

For me the API is used to build json output for external contact to monitor as guest and when there was issue with connecting to Zabbix, it screamed it into the output that ended up revealing zabbix password to public. I did change the password, so it is all good on that end, but would be nice if it does not print out plaintext password or access token upon connection error in the future. I do not think it is information that helps with debugging issues, it would be ok if the password or access token is replaced with "*".

krisavi avatar Feb 03 '22 08:02 krisavi

Can you provide a code sample for this?

szuro avatar Feb 09 '22 21:02 szuro