How to hide environment variable in a file base configuration

I’m currently working with the .toml file to setup environment variables for each branch i’m using.

Since it’s not good practice to push secret keys and ID to GIT, I’m wondering how to you guys hide sensitive information from the .toml file based configuration?

Hi, @jonathan.girard, by not putting it in that file. :wink:

One alternative is entering those values as environment variables in the web app as site settings (under Site Name > Settings > Build & deploy > Environment). The build system will see those values but they don’t exist in the repository’s tracked files anywhere.

If there are other questions, please let us know.

I tried the same way. But its not working for pem private key. I tried with and without double quotes. Also removed \n from they key but still getting this error.

Hi, @rajan-magar, these support guides may be helpful:

If those two topics don’t help to resolve the issue or if there are any questions, please let us know.