Inspired by yaml-vault
$ npm i -g node-yaml-vault
test.yml
redis:
environment:
REDIS_PASS: secret_pass
command
$ node-yaml-vault encrypt -f test.yml -k ^.*?\\.environment -p password
output
redis:
environment:
REDIS_PASS: d860d4f47437b38e5beb8c
The same for decryption. Type node-yaml-vault --help
for more information.