Skip to content
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

Changelog / Warnings should clarify private_key changes within provisioning. #9723

Closed
mobiuscog opened this issue Oct 30, 2016 · 2 comments
Closed

Comments

@mobiuscog
Copy link

With the release of 0.6.7 last year, the following improvement was within the changelog:

  • connection/ssh: Accept private_key contents instead of paths (#3846)

However, private_key paths were still accepted until the recent commit 968472a#diff-d1b9df521bc0abcc44e4d3cefd5414b7 which arrived with the release of 0.7.7

Unfortunately, this then breaks SSH provisioning connections for anyone that has missed the discussion or similar documents, without warning and just begins failing SSH handshakes (a colleague went from 0.7.3 to 0.7.7 and I spent a morning diving into the code to figure out why).

The documentation is kept fairly well up-to-date, but there was nothing in the changelog regarding this, and it would have made sense for it to be mentioned as a backwards incompatibility. Ideally, it would have failed to plan/run with a suitable error message, although the subtlety here may well be that it was being set via interpolation.

Terraform is great, but can be really frustrating when things just break.

@stack72
Copy link
Contributor

stack72 commented Nov 1, 2016

Hi @mobiuscog

My apologies for the issue here - this was something that has, unfortunately, slipped through the net. We just posted an errata for it as part of our 0.7.8 release announcement!

We apologise for the problems here and will try and make sure this doesn't happen again

Please also note the retroactive addition to a Backwards Incompaitiblity notice in the v0.7.4 release regarding private keys and the connection block of provisioners:
* https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md#074-september-19-2016

Paul

@ghost
Copy link

ghost commented Apr 20, 2020

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.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants