Open mdere-unbound opened 5 years ago
I hit this today too - there's some code expanding variables like $DB_PASSWORD and unintentionally treating any dollar sign in the password the start of a variable name reference.
In all likelihood, these are YAML quirks
The problem line is here: https://github.com/rubenv/sql-migrate/blob/master/sql-migrate/config.go#L75
os.ExpandEnv will interpret any $ sign as a variable to substitute, returning empty string when that variable doesn't exist in the environment.
See: https://play.golang.wiki/p/Da4G-gXuwkY
This is by design in the Go function, it's just a shame it's consuming a dollar sign literal in the configured DSN in dbconfig.yml.
For some reason in the following
When I use a complicated strong password with symbols, this gives me auth errors, but as soon I turn the password to something simple - it goes through.
Am I missing something?