Skip to content

Password with Dollar Sign in config.yaml not possible #292

@KevDi

Description

@KevDi

I have noticed that i could not use the $ in an Password if i want to use the config.yaml file.
As i looked through the code i think the problem is Line 171 in the config.go file.
Inside the Function LoadMetricsConfiguration this call is made:
expanded := os.ExpandEnv(string(content)).
From what i saw it is definitly needed to expand possible environment variables used in the configuration.
But is there a way to escape the $ sign in for example passwords? I tried with $$ or \$ but none of those worked.
If it is generally not possible then maybe a hint in the Readme would be good so that others also know that $ Signs in Passwords could not be used when using the config.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions