Hi, is it possible (and with what snippet) to change environment variable while the server is running?
I have currently a hard coded IP address of an ElasticSearch server in my Cloud Code function and I would like to be able to change the address through other cloud code function with master key. An alternative came to my mind, where the IP address would be an entry in the database it feels more reasonably to have it in environment variables.
BTW, is it secure to keep login credentials to that ElasticSearch service including password inside environment variables? I guess it is better than keeping it in database of hard coded in cloud code…
Thank you!
Lukas