1
0
mirror of https://github.com/Luzifer/envrun.git synced 2024-09-19 15:42:58 +00:00

Document encrypted .env file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-03-21 16:35:53 +01:00
parent b7d3e82e8a
commit f24eb5ce5c
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -45,3 +45,18 @@ __CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
ANOTHER_VAR = foo
MY_TEST_VAR = hello world
```
## Encrypted `.env`-file
In case you don't want to put the environment variables into a plain text file onto your disk you can use an AES256 encrypted file and provide a password to `envrun`:
```bash
# echo 'MYVAR=myvalue' | openssl enc -e -aes-256-cbc -pass pass:justatest -base64 -out .env
# cat .env
U2FsdGVkX18xcVIMejjwWzh1DppzptJCHhORH/JDj10=
# envrun -p justatest --clean -- env
MYVAR=myvalue
2017/03/21 16:34:57 Process exitted with code 0
```