Configuring credentials with environment variables or the settings file #54
Unanswered
andrewnodered
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, does anyone know if it is possible to automatically configure the database credentials stored in the configuration node?
I have configured Node Red to run as a Windows service, and in that command I am specifying the settings.js file and flow.json files. All of the database connection information such as the service domain name and port are set via environment variables in the settings.js file. This is done as shown in the screenshot below.
However, the database credentials are not saved in the flow file like the connection information is. This makes sense as it is not secure to store credentials in plaintext. But I would actually like to reference an environment variable, which imo isn't insecure if the variable name is stored in plaintext. Is there any way to configure the credentials automatically so they don't have to be manually entered?
Beta Was this translation helpful? Give feedback.
All reactions