Skip to content

$ in generated PASSWORD_SECRET can cause issues when parsed by Docker #634

@paulrobertlloyd

Description

@paulrobertlloyd

Is your feature request related to a problem?

When setting up a Dockerfile, providing a generate PASSWORD_SECRET that contains a $ symbol, it gets parsed a separate variable. So, if for example the generated secret is:

$1a$10$ABC123

Docker compose would provide the following warning:

WARN[0000] The "ABC123" variable is not set. Defaulting to a blank string.

Describe the solution you’d like

When providing a value for PASSWORD_SECRET, escape the $ symbol.

So instead of providing:

$1a$10$ABC123

instead provide the following:

\$1a\$10\$ABC123

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationGood documentation benefits everyone

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions