I’m working on node project at the moment. My application communicates to the API of another application in order to get or upload data. Each request must have a key in order to be authenticated by the other server. Right now I am storing the API Key in a .env file. From my understanding .env files are not supposed to be edited by code.
I’m trying to find the best way to securely store an API Key such that it can be changed during runtime if necessary.
Any thoughts?
Thank you for the assistance!