Bug #7696
closedTelegraf Package Saving Incorrect Password
0%
Description
The contents of the password field are not being passed properly to the telegraf.conf file. The password is being encoded to sanitize inputs, but is not being decoded before the characters are written to the config file. (See line 78 in telegraf.xml.)
The password in the telegraf.conf file ends up being the base64 encoding of the password entered in the password field. With the wrong password in the configuration file, telegraf fails to connect to the influxdb database. One can work around the error by manually editing the telegraf.conf file located at /usr/local/etc/telegraf.conf to correct the password, but when a new version of pfsense is installed, or the settings on the telegraf configuration page is saved, the correct password will be overwritten.
Note: By default, influxdb does not require username/password authentication. If authentication is not enabled on the influxdb server, then (as far as I know) telegraf will not complain about an incorrect password.