node-credentials
node-credentials copied to clipboard
Possibility of checking into git unencrypted values
Currently there is no way to avoid the possibility of checking in to git the file unencrypted. I believe the way Rails handles this is by adding a .enc extension to the encrypted file, then you can add the unencrypted filename to the gitignore. Would it be possible to add something like this?
we can define the file name with .enc
extension, but take into account the node-credentials
infer the file type with the extension using this regexp /^.*\.(yaml)$/
Example encrypt with .enc
extension
node bin/node-credentials.js encrypt --path credentials.enc.yaml
I will update the regexp to infer the file type with credentials.yaml.enc