PLUGIN_PROVISIONER_MIRROR_NO_FALLBACK
Configure PLUGIN_PROVISIONER_MIRROR_NO_FALLBACK to control whether the IaCM plugin falls back to vendor download endpoints when the Harness Artifact Registry mirror is unavailable.
The provisioner binary mirror allows the IaCM plugin download Terraform and OpenTofu binaries from Harness Artifact Registry (HAR) instead of vendor download endpoints, preventing pipeline failures caused by GitHub API or get.opentofu.org rate limits in high-concurrency environments. Applies to Terraform and OpenTofu; Terragrunt binaries are not mirrored.
Harness enables the mirror per account by setting PLUGIN_PROVISIONER_MIRROR_BASE, you do not need to configure that variable. After Harness enables the feature flag, the plugin handles download routing automatically. Use PLUGIN_PROVISIONER_MIRROR_NO_FALLBACK to control whether a mirror miss fails the pipeline or falls back to the vendor site.
How it works
When the mirror is enabled for your account, the IaCM plugin:
Attempts to download the requested provisioner binary from HAR.
Verifies the binary checksum against a
SHA256SUMSfile served from HAR. HAR hosts both a Harness-format and a vendor-format checksum file; the plugin tries the Harness-format file first and falls back to the vendor-format copy. No outbound request to the vendor site is made during checksum verification.Falls back to the vendor site if HAR does not have the requested version or the download fails.
By default, the plugin falls back to the vendor site when a version is not available in HAR or the mirror download fails. Go to Disable vendor fallback if you need to prevent that fallback.
Before you begin
Confirm the following before requesting mirror enablement:
Plugin version:
iacm-terraform-plugin/v0.287.0or later. If your account has a pinned plugin image version set via theexecution-configAPI, update the pin tov0.287.0or later first.Enablement: Harness must enable the provisioner binary mirror for your account. Contact Harness Support and include your account ID. Go to Account Settings > Account Details > General to find your account ID. Harness confirms when the feature flag is active. After enablement, the plugin automatically routes provisioner downloads through HAR on the next pipeline run without any pipeline or workspace changes required.
Disable vendor fallback
To treat a mirror miss as a hard failure instead of falling back to the vendor site, set PLUGIN_PROVISIONER_MIRROR_NO_FALLBACK=true on your workspace. Use this when you need to guarantee that all provisioner binaries come from HAR, for example in an environment where vendor sites are unreachable.
You need the IaCM Workspace Edit role or higher to add environment variables to a workspace. Go to IaCM plugins for role details.
To set the variable:
Navigate to your workspace and select the Connectors and Variables tab.
In the Environment Variables section, select + Add Variable.
Set Key to
PLUGIN_PROVISIONER_MIRROR_NO_FALLBACKand Value totrue.Select Save Changes.
Verify the mirror
After Harness enables the mirror, run a pipeline and check the Installing provisioner step logs. A successful mirror download includes a message similar to:
If the requested version is not in HAR and fallback is active, the log includes a message similar to:
Troubleshooting
Next steps
Go to IaCM plugins for the full list of plugin environment variables.
Go to PLUGIN_BINARY_DIR to use a provisioner binary from a custom image instead of downloading one at runtime.
Last updated
Was this helpful?