You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are facing a problem while trying to move the password that we use to connect to mqtt to an environment variable.
We feel that the problem might be caused by the presence of the $ character in the password (the password we are using is Benthos1234!$@)
The other parameters (url, user, ecc) are correctly retrieved, so we exclude an issue on that side; we also tried to escape the password parameter (${{MQTT_PASSWORD}}) as suggested in the Interpolation guide
Here's part of the configuration file we are using:
Hey @alessandro-gomma 👋 I think that might be due to the way the shell is handling environment variables. That sequence of characters is causing trouble for me as well in zsh on OSX, so I'm not sure what needs to be escaped or how, but it should work if you create a foo.env file (you can call it whatever you want) containing MQTT_PASSWORD =Benthos1234!$@ and then run benthos -e foo.env -c test.yaml.
PS: Converting this into a discussion as per #2026.
Hi!
We are facing a problem while trying to move the password that we use to connect to mqtt to an environment variable.
We feel that the problem might be caused by the presence of the $ character in the password (the password we are using is Benthos1234!$@)
The other parameters (url, user, ecc) are correctly retrieved, so we exclude an issue on that side; we also tried to escape the password parameter (${{MQTT_PASSWORD}}) as suggested in the Interpolation guide
Here's part of the configuration file we are using:
The text was updated successfully, but these errors were encountered: