opentofu/internal/backend/local
Brandon Croft c1a730314d
Relocate localterraform.com aliasing to backend configurators
Previously, remote and cloud backends would automatically alias localterraform.com as the configured hostname during configuration. This turned out to be an issue with how backends could potentially be used within the builtin terraform_remote_state data source. Those data sources each configure the same service discovery with different targets for localterraform.com, and do so simultaneously, creating an occasional concurrent map read & write panic when multiple data sources are defined.

localterraform.com is obviously not useful for every backend configuration. Therefore, I relocated the alias configuration to the callers, so they may specify when to use it. The modified design adds a new method to backend.Enhanced to allow configurators to ask which aliases should be defined.
2023-07-21 09:55:41 -06:00
..
testdata checks: hide check diagnostics during plans that will not wait for approval (#32938) 2023-04-11 10:54:30 +02:00
backend_apply_test.go testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
backend_apply.go [testing framework] implement expect_failures functionality (#33443) 2023-07-10 11:30:44 +01:00
backend_local_test.go testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
backend_local.go Propagate generated config filename into the Terraform graph (#33255) 2023-05-24 13:58:26 +02:00
backend_plan_test.go testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
backend_plan.go write generated config when using the cloud integration 2023-05-30 00:17:02 -07:00
backend_refresh_test.go testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
backend_refresh.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend.go Relocate localterraform.com aliasing to backend configurators 2023-07-21 09:55:41 -06:00
cli.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
hook_state_test.go backend/local: Allow storage impls to customize intermediate persistence 2023-05-23 15:25:48 -07:00
hook_state.go backend/local: Allow storage impls to customize intermediate persistence 2023-05-23 15:25:48 -07:00
local_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
testing.go s/Schemas/ProviderSchema/ 2023-07-06 10:37:35 -04:00