Hello. I am having trouble reliably using credential values saved as Global Environment Variables.
First I had the same issue as in (0), where credentials wouldn't be returned at all. Then I've upgraded to Node-RED v3.1.3 and now I am seeing behaviour similar to (1), just there it was happening with flow env variables.
Steps to reproduce:
add some global variables, set some of them to 'credential' type (
Thank you for this heads-up. Indeed, it seems to be addressed...
This yet looks to be intentional: The credential shouldn't be lost. It's in the nature of (password like) credentials that - once they pass from the client to the runtime - they'll never make their way back.
Thus you cannot debug them (you'll get __PWRD__ instead), but you should be able to use them.
Have you tried?
Should we move this discussion to GitHub? A contributor has already responded with what I think is an explanation that supports my claim.
Thus you cannot debug them (you'll get __PWRD__ instead), but you should be able to use them.
I'm not sure how else I'm supposed to use them. In a 'change' or 'function' node I should be able to access the credential value, right? Then I should be able to write that value as a plain text value to msg to be printed to debug.