Welcome to the forum @mattjcj
Have you looked at combining environment variables with dynamic subscription for the mqtt nodes?
Perhaps set the variables in the flow tab where they will be in plain text but unobtrusive.
Use a function node to retrieve them and connect/disconnect/publish/etc dynamically.
