Skip to content

Mqtt password in environment variable #2451

Discussion options

You must be logged in to vote

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!$@" (the double quotes are optional if you don't have spaces in the password) and then run benthos -e foo.env -c test.yaml.

PS: Converting this into a discussion as per #2026.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alessandro-gomma
Comment options

Answer selected by alessandro-gomma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2449 on March 28, 2024 01:41.