We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$
As shown below, if the password contains the $ character, the read password is uhQhu4watyTgn$, resulting in failure to connect to the redis
uhQhu4watyTgn$
[[resource]] name = "alertmanager" [resource.backend] [resource.backend.redis] nodes = ["127.0.0.1:6379"] password = "uhQhu4watyTgn$Q$" prefix = "/alert" interval = 5 keys = ["/*"]
The code that causes this problem
func readFileAndExpandEnv(path string) ([]byte, error) { buf, err := ioutil.ReadFile(path) if err != nil { return buf, errors.Wrap(err, "read file failed") } // expand the environment variables buf = []byte(os.ExpandEnv(string(buf))) return buf, nil }
It can be fixed in the following way
https://play.golang.org/p/JOJ7WLIUY3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As shown below, if the password contains the
$
character, the read password isuhQhu4watyTgn$
, resulting in failure to connect to the redisThe code that causes this problem
It can be fixed in the following way
https://play.golang.org/p/JOJ7WLIUY3
The text was updated successfully, but these errors were encountered: