node-core-utils
node-core-utils copied to clipboard
Consider encrypting .ncurc with a passphrase
Since it contains tokens (though in general just read permissions of the org and the jenkins), it would be safer if we encrypt it with a passphrase (in case some malicious code gets access to the user's home directory), and perhaps warn if the read permission of it is too generous, similar to how the ssh keys are protected.
This is technically not done.
- We should phase out non-encrypted tokens
- We need support in
ncu-configto write it. Currently if you have.ncurc.gpgand you doncu-config set ..., it serializes the token in plain text into.ncurcback again. This would be useful for CI support.
Now that we have ncu-config set -x, I believe we're closer to the end goal.
- We should phase out non-encrypted tokens
I'm not sure we can reasonably do that while keeping a dependency on gpg, we should have a fallback (maybe something in the lines of https://bun.com/docs/runtime/secrets#secrets)