Skip to content

Backport of backends: Fix crash when interrupting during interactive prompt for values' into v1.11#36460

Merged
dbanck merged 3 commits intov1.11from
backport/dbanck/init-sigint-crash/factually-lasting-gopher
Feb 7, 2025
Merged

Backport of backends: Fix crash when interrupting during interactive prompt for values' into v1.11#36460
dbanck merged 3 commits intov1.11from
backport/dbanck/init-sigint-crash/factually-lasting-gopher

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Feb 7, 2025

Backport

This PR is auto-generated from #36448 to be assessed for backporting due to the inclusion of the label 1.11-backport.

The below text is copied from the body of the original PR.


This PR fixes a crash that affects all remote state backends that implement the backendbase.Base. When interrupting (Ctrl+c) during Terraform's interactive value prompt, we convert the resulting unknown value to a null value.
Our generic PrepareConfig wasn't prepared to handle nulls and crashed when applying the sdk-like defaults.

Fixes #36420

Target Release

1.11.x

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

Overview of commits

@github-actions github-actions bot force-pushed the backport/dbanck/init-sigint-crash/factually-lasting-gopher branch from c8e2edb to 37eb6eb Compare February 7, 2025 09:41
@github-actions github-actions bot requested a review from dbanck February 7, 2025 09:41
@dbanck dbanck marked this pull request as ready for review February 7, 2025 09:46
@dbanck dbanck requested a review from a team as a code owner February 7, 2025 09:46
@dbanck dbanck merged commit aafd40d into v1.11 Feb 7, 2025
@dbanck dbanck deleted the backport/dbanck/init-sigint-crash/factually-lasting-gopher branch February 7, 2025 10:33
@github-actions
Copy link
Copy Markdown
Contributor Author

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant