Skip to content

Use hardcoded ArmoredPublicKey for TF binary installation#5019

Closed
andrewnester wants to merge 2 commits intorelease-0.297.1from
release-0.298.0
Closed

Use hardcoded ArmoredPublicKey for TF binary installation#5019
andrewnester wants to merge 2 commits intorelease-0.297.1from
release-0.298.0

Conversation

@andrewnester
Copy link
Copy Markdown
Contributor

@andrewnester andrewnester commented Apr 19, 2026

Changes

Use hardcoded ArmoredPublicKey for TF binary installation

Why

hashicorpPublicKey is HashiCorp's release-signing public key with self-signatures
refreshed on 2026-02-19 (expiration extended to ~2035).

The embedded key in hc-install v0.9.3 has a UserID self-signature that expired
on 2026-04-18, which breaks Terraform checksum verification. hc-install#355
added refreshed signatures, but go-crypto v1 only reads the first armored
block and keeps one SelfSignature per Identity, so the fix is a no-op when
relying on the embedded key. We pass this refreshed block to
releases.ExactVersion.ArmoredPublicKey directly.

Source: https://github.com/hashicorp/hc-install/blob/main/internal/pubkey/pubkey.go

Tests

Manually run rm -rf .databricks && databricks bundle deploy with and without the fix and confirm it helped

@andrewnester andrewnester requested a review from pietern April 19, 2026 10:15
@adamfortuno-cubesmart
Copy link
Copy Markdown

We confirmed the fix resolved this issue. We installed and ran an instance of 0.266.0 to recreate the problem. Generating the error by running databricks bundle validate:

Error: error downloading Terraform: unable to verify checksums signature: openpgp: key expired

We upgraded the install to 0.266.1 and again executed the command, which completed successfully. We ran this on both Windows and Ubuntu.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants