providerConfigure function will raise an error if password parameter is
not set.
This way, terraform cli will not ask a user for the password.
Now, the only two ways to set the API key parameter is to export INFOBLOX_PASSWORD env var, or to configure the 'password'
parameter in the provider configuration section of the terraform root .tf module.
Issue/Feature description
When the user doesn't export the
INFOBLOX_PASSWORD
env var, the terraform client is prompting the user for input, which is not hidden in any way.We decided to disable the cli input to reduce the chance of the password gets compromised.
Related terraform issue: https://github.com/hashicorp/terraform/issues/29609
How it was fixed/implemented
Made the password parameter optional.
providerConfigure function will raise an error if password parameter is not set.
This way, terraform cli will not ask a user for the password.
Now, the only two ways to set the API key parameter is to export
INFOBLOX_PASSWORD
env var, or to configure the 'password' parameter in the provider configuration section of the terraform root.tf
module.