Repository navigation
v1.3.0-alpha.1
Pre-releaseThe first pre-release of the 1.3 line: the runner moves from Terraform to OpenTofu 1.13.9,
and the image is built for linux/amd64 and linux/arm64 again.
This is an alpha, for testing before v1.3.0. The 1.1 and 1.2 lines (v1.1.6, Terraform
1.1.9; v1.2.1, Terraform 1.5.5) are unchanged, and v1.2.1 stays the latest release.
Why OpenTofu
Terraform releases after 1.5.7 are under the Business Source License, which this project can't
ship, and 1.5.7 has had no fixes since 2023. OpenTofu is the open-source (MPL-2.0) continuation
of Terraform under the Linux Foundation, and is maintained.
terraform is a link to tofu, so terraform-controller's Jobs (terraform init, apply,
destroy) and your scripts that call terraform run unchanged.
What changed
- OpenTofu 1.13.9 replaces Terraform 1.5.5. The binary is downloaded for each architecture
and checked against a pinned SHA-256 from the release'sSHA256SUMS, whose GPG signature by
OpenTofu's signing key was verified. linux/amd64andlinux/arm64(#23). Each platform is built and run in CI before the
push:terraform versionmust report OpenTofu on that platform, and the bundled provider must
be built for it. (The arm64 image published after1.2.0contained amd64 binaries; that can't
happen again.)- Providers come from
registry.opentofu.org, which serves the samehashicorp/*
providers. The bundledhashicorp/randomis now 3.9.1 (was 3.1.0). - alicloud is no longer bundled (see below).
openssh-clientis installed, forgit::sshmodule sources (#25).- Removed:
ossutil(an amd64-only binary nothing in terraform-controller calls), and the
unusedterraform.shandhooks/. - Still Alpine 3.24, with the CVE-2026-111497 (Brotli) and eMudhra fixes of
v1.1.6/v1.2.1.
Tools:az2.92.0,git2.54.1,curl8.23.0,jq1.8.2,mysql(MariaDB 11.8 client),
OpenSSH 10.3, Python 3.14.
Scan result: both platforms: eMudhra SAFE (0/14 chains trusted anywhere in the image);
Brotli only in fixed versions (brotli-libs 1.2.1). The finding in the bundled alicloud provider
of v1.1.6 / v1.2.1 is gone with the bundle.
alicloud is no longer bundled
The image no longer carries hashicorp/alicloud 1.187.0, so a Configuration downloads the
version it asks for. A Configuration that doesn't pin a version now gets the newest, 2.2.0
today: a major version up from 1.187.0. If you use alicloud, pin the version you use:
terraform {
required_providers {
alicloud = {
source = "hashicorp/alicloud"
version = "~> 1.187"
}
}
}With the pin, init installs the newest 1.x (1.294.0 today). OpenTofu's registry has no GPG key
for this provider, so init notes that signature validation was skipped.
Air-gapped users can build their own image with the provider they need:
docker build --build-arg PROVIDERS=hashicorp/alicloud/<version> .
Upgrading from 1.1.x or 1.2.x
Tested with terraform-controller (chart 0.8.0) on arm64 nodes; the amd64 image ran the provider,
module and registry paths with Docker:
- Existing state works. State written by
v1.1.6(Terraform 1.1.9) andv1.2.1
(Terraform 1.5.5) was read, changed and destroyed by1.3.0-alpha.1, with resources kept.
Providers recorded asregistry.terraform.io/hashicorp/…keep working. - Bundled and registry providers, an HTTPS call from a provider,
git::httpsmodules,
spec.remote, connection Secrets and destroy all work. initwarning: with a provider from the image's local mirror (random), OpenTofu warns
that the lock file only has checksums for this platform. terraform-controller writes no lock
file, so nothing changes.ossutilis gone: alocal-execthat calls it fails.- On clusters with arm64 nodes, Jobs no longer need to be pinned to amd64.
- Also tested: a
git::sshmodule, a private module registry with its token in.terraformrc
orcredentials.tfrc.json, a provider built against glibc (#21:libc6-compatis now
gcompat), alicloud pinned to~> 1.187, and an image built withPROVIDERS.
With terraform-controller: git::ssh modules and private registries
These depend on terraform-controller, not on the image, and are the same with every runner
version:
-
spec.JobEnvneeds aproviderRef. WithinlineCredentials: truethe controller ignores
JobEnv. AcustomProvider with any key is enough. -
git::sshmodule sources: the controller passesspec.gitCredentialsSecretReferenceonly to
the clone ofspec.remote, not toterraform init. Give the key in the source'ssshkey
argument (base64 of the private key) and accept the host key withJobEnv:spec: providerRef: { name: my-custom-provider, namespace: default } JobEnv: GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=accept-new hcl: | module "m" { source = "git::ssh://git@git.example.com/org/modules.git?ref=v1&sshkey=<base64 key>" }
The key then appears in the Configuration and in
init's log: use a read-only deploy key. -
.terraformrcandcredentials.tfrc.json(spec.terraformRCConfigMapReference,
spec.terraformCredentialsSecretReference) are mounted over/rootand/root/.terraform.d.
OpenTofu reads both, but the mounts hide the providers bundled in the image, sorandom(and
anyPROVIDERSyou built in) is downloaded instead.
Image
oamdev/docker-terraform:1.3.0-alpha.1@sha256:e91120e1277061f441a74f09516fcbfe674c2a2a1626c2112166a09473aaba81 (linux/amd64, linux/arm64)
With terraform-controller:
helm repo add kubevela https://kubevela.github.io/charts
helm upgrade terraform-controller kubevela/terraform-controller -n vela-system \
--reuse-values --set terraformImage=oamdev/docker-terraform:1.3.0-alpha.1What's Changed
- feat: support arm64 architecture for docker image by @shreyasHpandya in #24
- Fix: move base image to alpine 3.24 for CVE-2026-111497 and eMudhra CA by @jerrinfrancis in #26
- Feat: switch the runner to OpenTofu 1.13.9 and build linux/arm64 (1.3.0) by @jerrinfrancis in #29
Full Changelog: v1.2.0...v1.3.0-alpha.1