Skip to content

v1.3.0-alpha.1

Pre-release
Pre-release

Choose a tag to compare

@anoop2811 anoop2811 released this 16 Nov 04:09
· 10 commits to master since this release
37b723a

The 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's SHA256SUMS, whose GPG signature by
    OpenTofu's signing key was verified.
  • linux/amd64 and linux/arm64 (#23). Each platform is built and run in CI before the
    push: terraform version must report OpenTofu on that platform, and the bundled provider must
    be built for it. (The arm64 image published after 1.2.0 contained amd64 binaries; that can't
    happen again.)
  • Providers come from registry.opentofu.org, which serves the same hashicorp/*
    providers. The bundled hashicorp/random is now 3.9.1 (was 3.1.0).
  • alicloud is no longer bundled (see below).
  • openssh-client is installed, for git::ssh module sources (#25).
  • Removed: ossutil (an amd64-only binary nothing in terraform-controller calls), and the
    unused terraform.sh and hooks/.
  • Still Alpine 3.24, with the CVE-2026-111497 (Brotli) and eMudhra fixes of v1.1.6 / v1.2.1.
    Tools: az 2.92.0, git 2.54.1, curl 8.23.0, jq 1.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) and v1.2.1
    (Terraform 1.5.5) was read, changed and destroyed by 1.3.0-alpha.1, with resources kept.
    Providers recorded as registry.terraform.io/hashicorp/… keep working.
  • Bundled and registry providers, an HTTPS call from a provider, git::https modules,
    spec.remote, connection Secrets and destroy all work.
  • init warning: 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.
  • ossutil is gone: a local-exec that calls it fails.
  • On clusters with arm64 nodes, Jobs no longer need to be pinned to amd64.
  • Also tested: a git::ssh module, a private module registry with its token in .terraformrc
    or credentials.tfrc.json, a provider built against glibc (#21: libc6-compat is now
    gcompat), alicloud pinned to ~> 1.187, and an image built with PROVIDERS.

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.JobEnv needs a providerRef. With inlineCredentials: true the controller ignores
    JobEnv. A custom Provider with any key is enough.

  • git::ssh module sources: the controller passes spec.gitCredentialsSecretReference only to
    the clone of spec.remote, not to terraform init. Give the key in the source's sshkey
    argument (base64 of the private key) and accept the host key with JobEnv:

    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.

  • .terraformrc and credentials.tfrc.json (spec.terraformRCConfigMapReference,
    spec.terraformCredentialsSecretReference) are mounted over /root and /root/.terraform.d.
    OpenTofu reads both, but the mounts hide the providers bundled in the image, so random (and
    any PROVIDERS you 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.1

What's Changed

Full Changelog: v1.2.0...v1.3.0-alpha.1