Skip to content

Pss/safe provider download during init in automation#38215

Closed
SarahFrench wants to merge 2 commits intopss/safe-provider-download-during-initfrom
pss/safe-provider-download-during-init-in-automation
Closed

Pss/safe provider download during init in automation#38215
SarahFrench wants to merge 2 commits intopss/safe-provider-download-during-initfrom
pss/safe-provider-download-during-init-in-automation

Conversation

@SarahFrench
Copy link
Copy Markdown
Member

@SarahFrench SarahFrench commented Feb 26, 2026

Context

See previous PR for background: #38205

Terraform run in automation

This is broadly the same for Terraform when run in automation, but of course Terraform cannot prompt for input in automation. Therefore instead of prompting Terraform will save the config locks to the dependency lock file and exit early, at which point a user should review the dependency lock file and make a judgement about the provider. Accepting the provider requires running init again, rejecting requires making necessary edits to config (changing the provider source value, adjusting version constraints etc) and running init with the -safe-init flag again.

Target Release

N/A

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

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

@github-actions
Copy link
Copy Markdown
Contributor

Changelog Warning

Currently this PR would target a v1.15 release. Please add a changelog entry for in the .changes/v1.15 folder, or discuss which release you'd like to target with your reviewer. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label.

@SarahFrench SarahFrench force-pushed the pss/safe-provider-download-during-init-in-automation branch 2 times, most recently from 27fe596 to c84f220 Compare February 27, 2026 15:30
@SarahFrench SarahFrench force-pushed the pss/safe-provider-download-during-init branch from bf0f17d to 388bcbd Compare March 9, 2026 12:28
… use of -safe-init and -intput=false; can write a dep lock file when init stops after downloading config-derived providers only.
…nd is run in automation

Terraform saves config providers to the lock file and exits early, prompting users to review the file's contents.
@SarahFrench SarahFrench force-pushed the pss/safe-provider-download-during-init-in-automation branch from c84f220 to e52de48 Compare March 10, 2026 11:02
@SarahFrench
Copy link
Copy Markdown
Member Author

Closing this PR, as it'll be impacted by other changes.

@SarahFrench SarahFrench closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant