Convox Community

Mutiline env variables

Hey there!
How can I add multiline env variable? I’ve tried to add it via console.convox.com, and only first line is added, other lines are being truncated. Tried via convox env set VAR $VAR, and it’s being set as single line. Tried with convox env set VAR "$VAR" and got an error bad flag syntax: -----BEGIN PUBLIC KEY-----.
What am I doing wrong?

Would love to know the answer to this. We used a workaround where we base64 encode the multiline value (public key) and then our app decodes the env var.

we’ve previously used the same workaround but it’s not really good since you have to maintain both PEM and base64 keys.