Is it possible to use dynamic credentials coming from a global object? #62
Replies: 2 comments 2 replies
-
At the moment, the only built-in option is
In particular option 1 should not be too difficult to code (keep the |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answer, I will try to follow the options you recommended. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to use hashicorp's Vault for the database, and this way, the Vault makes the database user's credentials dynamic.
This way I want to avoid using the 'msg.pgConfig' message, which is not efficient.
So somehow, within a 'function' node, it is possible to disconnect from the connection, then connect again by passing the new password?
I'm reading the node-postgres documentation and examples of this, like below:
Now what I'm trying is to make a function node able to influence the 'node-red-contrib-postgresql' connection. I know it's possible to import modules in the 'function' node, I'm trying that route too. I've already tried connecting to a global object, but when the password changes, the implementation is lost.
Any help or tips would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions