Plain text env vars with line breaks
complete
N
Noah Jahn
Support for plain text env vars with line breaks would allow us to store an SSH private key to login to external services over SSH, for example.
Log In
k
kate
updated the status to
complete
M
Matt Ehlinger
Plus one on this! If you add a newline char to an environment variable, the line breaks are not interpreted as line breaks in the application process. You can confirm this by:
- logging an env var in your app code
- adding line break characters to that env var
- looking at the process output
The workaround is using a secret file, but this can be a bit annoying and hard to debug if you do not know that this limitation exists
N
Noah Jahn
An alternative solution for this is actually to use a secret file: https://render.com/docs/docker-secrets
Š
Štefan Ľupták
Isn't that already possible?
N
Noah Jahn
Štefan Ľupták: I updated the title and description to be more clear.