-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform 1.6.0 - Host Key Verification Failed when using git ssh regression #34543
Comments
That linked issue was fixed after version v1.6.0, you should be using the latest patch release, which is v1.6.6. Can you confirm if the problem still exists in a current release? Thanks! |
Hi @jbardin , to my understanding, the issue was fixed with a backport to all of 1.6? We have been running on 1.6.0 for months and the issue just started occurring yesterday/today, hence my thinking that this is a new issue |
@marvelous-melanie, there is no way to retroactively change code that has already been released. In order to get a new patched version of the binary, you would need to download that patched version. The latest patch release for v1.6 is here:v1.6.6, which will include the fix from that issue. If that does not solve your problem, then it is a different issue and we can investigate further. |
Our pipelines started failing today with this issue. Setting the tf client version to 1.6.6 did indeed resolve the issue. I tested with the latest 1.7.0 and it seems that was causing the |
@josiahwitheford, Terraform v1.6 and v1.7 use the exact same go-getter code which calls |
Edit: I realised my error is coming from the Gitlab runner and not the TFC runner. It's confusing, because I fixed the error on the Gitlab side by following this guide:
I was getting this error on the TFC runner side too, but for that, I opened a separate issue. |
I want to reiterate that we did not change anything with our configuration when these failures started. The timeline was as follows:
This seems to indicate to me that something on Terrraform's end has changed which is why I opened the issue. Is it possible something changed with the way Terraform Cloud uses go-getter or sets up SSH keys? I do understand your response here, but the inconsistent behavior isn't really explained. |
When initiating a run on Terraform Cloud using terraform CLI 1.7.0, the |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
This module should successfully download. We have multiple other workspaces running with the same exact configuration (same SSH key, specified in the same way, accessing the same remote module using the exact same module
source
line) but lower versions of Terraform.Those all work perfectly, and this workspace also worked perfectly until starting to fail yesterday, again with no configuration change on our end. Reverting this workspace to 1.5.7 caused the module to begin downloading properly again.
Actual Behavior
The module fails to download.
Steps to Reproduce
terraform init
terraform plan
Additional Context
No response
References
I believe this bug was previously opened and closed in this issue, but given that we started experiencing it again a few days ago, I suspect it has been reintroduced.
The text was updated successfully, but these errors were encountered: