I have a node.js project which implement in nest.js framework. there is some apiKey and secretKey in my env file, I want to protect these keys from anyone, even host administrator. so I compile my entire project with pkg module to a binary file but it is possible to decompile my file and extract my strings.
maybe encryption can help me but the decrypt private key must be store somewhere!
please tell me how to keep these strings safe ?
root
can inspect the entire environment of any process. Don’t put secrets into the environment if you don’t trustroot
.