I would like to set environment variables on the flow (tab) and use them in the user/password credentials field, is this possible ? Because copy/pasting the node removes the credentials (cut/paste doesn't - clever!), but it is a bit annoying with complicated credentials.
It is possible to set via env vars, but all the usual rules remain around the editor not showing the true value of password fields. So you will need to enter the env var names in the fields for any new nodes you create.
Copy/paste creates a new node - and as the editor doesn't have the true values of the credentials you have to re-enter them.
A Cut/paste is more like a 'move' of an existing node - it keeps the same ID. This means the existing credentials are maintained as the node id doesn't change.
Any node property can be set with an environment variable by setting its value to a string of the form ${ENV_VAR} . When the runtime loads the flows, it will substitute the value of that environment variable before passing it to the node.