We have a requirement during some of our deployments where we need to prompt whoever is executing the deployment for a username and password so we can use it for some other operations.
This is what I have set up so far:
1) Created a custom extension with a new "Password" variable type. I'm using a custom IVariableSetter that is a text box with TextMode set to TextBoxMode.Password
2) Added required execution-level variables so the user has to enter the username and password before promoting
So far, this almost works. Everything is fine, except that the password is printed in plain text in the "Custom Variables: " line of the debug log. These variables are likely to contain domain credentials, so we cannot have them included in the log at all.
Is there a way to keep my custom variable type from being printed in the log? I tried playing around with the implementation of the IVariableSetter, but it looks like the VariableValue property is used both during execution and for writing to the log. If this isn't possible, is there another way to accomplish what we're trying to do? I thought it might be possible with a custom action, but I'm not sure how to prompt for user input during action execution.