uswitch / vault-creds

Sidecar container for requesting dynamic Vault database secrets
Apache License 2.0
84 stars 14 forks source link

Fix for env variables with multiple equal signs #30

Open DaspawnW opened 4 years ago

DaspawnW commented 4 years ago

It could happen that environment variables contain more then one equal sign:

JDBC_URL=jdbc://hostname:port/dbname?ssl=true

In case the equal sign is not escaped it gets splitted and ignored, so the outcome is:

JDBC_URL=jdbc://hostname:port/dbname

In case your file is configured with:

JDBC_URL = {{ .JDBC_URL }}