Inspired by yaml-vault
$ npm i -g node-yaml-vaulttest.yml
redis:
environment:
REDIS_PASS: secret_passcommand
$ node-yaml-vault encrypt -f test.yml -k ^.*?\\.environment -p passwordoutput
redis:
environment:
REDIS_PASS: d860d4f47437b38e5beb8cThe same for decryption. Type node-yaml-vault --help for more information.