node-credentials icon indicating copy to clipboard operation
node-credentials copied to clipboard

Possibility of checking into git unencrypted values

Open stfnhh opened this issue 3 years ago • 1 comments

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?

stfnhh avatar Apr 01 '21 17:04 stfnhh

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

MiguelSavignano avatar Mar 17 '23 00:03 MiguelSavignano