Skip to content

Update provider to allow use of dummy credentials#468

Open
Jimbad wants to merge 2 commits into
infobloxopen:mainfrom
Jimbad:allow-dummy-credentials
Open

Update provider to allow use of dummy credentials#468
Jimbad wants to merge 2 commits into
infobloxopen:mainfrom
Jimbad:allow-dummy-credentials

Conversation

@Jimbad

@Jimbad Jimbad commented Apr 29, 2026

Copy link
Copy Markdown

This PR allows the use of dummy credentials in the Infoblox NIOS provider by changing its behaviour when extensible attributes can't be verified during provider initialisation.

This means that Terraform configurations which contain the NIOS provider but do not necessarily manage any NIOS resources or data sources (for example configurations deployed to multiple environments which do not all have network connectivity to an Infoblox instance) can function without authenticating to Infoblox.

@unasra

unasra commented May 5, 2026

Copy link
Copy Markdown
Collaborator

@Jimbad Why is this change required ?
The Extensible Attribute "Terraform Internal ID" is a critical part of the provider's implementation and it is elemental we make sure that it exists
Can we know what exact use case does it support ??

@Jimbad

Jimbad commented May 5, 2026

Copy link
Copy Markdown
Author

@Jimbad Why is this change required ? The Extensible Attribute "Terraform Internal ID" is a critical part of the provider's implementation and it is elemental we make sure that it exists Can we know what exact use case does it support ??

My team are trying to migrate from the old Infobloxopen/Infoblox provider to this one. We deploy networks to a series of environments, some of which are connected to our on-prem servers (i.e. Infoblox) and some of which are disconnected and with reduced security guardrails and therefore not appropriate for connecting to on-prem.

In the disconnected environments we use hard coding and cloud native IPAM tools to set network CIDR ranges, and in connected environments we use Infoblox for IPAM and DNS. Our Terraform code contains provider config to support all options.

The older Infoblox Terraform provider we are migrating from supported the use of dummy credentials in the provider block. When dummy credentials were used, Terraform could still run so long as no resources were managed by the infoblox provider in that environment. We used conditional logic to control this.

Now that we are migrating to this newer provider we need the same functionality. Our lower environments cannot authenticate to Infoblox, so right now Terraform is failing to plan in those environments.

With this change, the error from not having the extensible attribute set in Infoblox would be moved from the plan stage to the apply stage, and only in the case where Terraform is actually trying to manage resources in Infoblox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants