Use hardcoded ArmoredPublicKey for TF binary installation#5019
Closed
andrewnester wants to merge 2 commits intorelease-0.297.1from
Closed
Use hardcoded ArmoredPublicKey for TF binary installation#5019andrewnester wants to merge 2 commits intorelease-0.297.1from
andrewnester wants to merge 2 commits intorelease-0.297.1from
Conversation
pietern
approved these changes
Apr 19, 2026
3 tasks
|
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 We upgraded the install to 0.266.1 and again executed the command, which completed successfully. We ran this on both Windows and Ubuntu. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 deploywith and without the fix and confirm it helped