Within a node-red flow I have a CassandraDatabase node with a user and pass. When I export the flow these credentials are not contained in the json, instead a flows_cred.json file appears with an encrypted string:
{"$": "df28.......
... however if I copy this file out and try to bring up my node-red instance elsewhere I get the following at startup:
[warn] Error loading credentials: SyntaxError: Unexpected token � in JSON at position 0
... followed by a repeating "AuthenticationError: Authentication provider not set", message. Indeed the credentials have not been picked up by the node-red flow and so I must input manually again.
Anyone know the trick to allowing me to export the credentials successfully?
/home/user/node_red_data:/data
and in that/home/user/node_red_data
, you will see many new files likeflows.json
that saves the flows of the container, and among the files is also thesettings.js
where you can uncomment the//credentialSecret: "a-secret-key",
and change to your own string. – Saunder