pulumi/pkg/resource/deploy
Ian Wahbe 999da67dcd
Fix (Read,Invoke) denied default provider handling (#9067)
* Fix (Read,Invoke) denied default provider handling

When denying default providers was added, we had no special handling for
Reads and Invokes. This lead to confusing error messages. The fix (#8853)
involved checking on invokes. This check didn't apply to several types
of calls (Read) as well as blocking invokes with providers applied.

This PR fixes the logic to only deny providers when they are default
providers.

It also pushes the change into `getProviderFromSource`, which ensures
that this behavior is handled the same way (and correctly) for both
Invokes and Reads.

* Append to changelog

* Add testing

* Fix lint

* Fix spelling + nit
2022-02-28 15:33:45 -08:00
..
deploytest Add RetainOnDelete resource option (#8746) 2022-02-16 22:11:12 +00:00
providers Allow disabling default providers (#8829) 2022-01-26 18:08:36 +01:00
builtins.go Make resource autonames determinstic (#8631) 2022-01-20 11:18:54 +00:00
deployment.go Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
deployment_executor.go Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
deployment_test.go Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
import.go Add RetainOnDelete resource option (#8746) 2022-02-16 22:11:12 +00:00
manifest.go Split Manifest type to it's own file (#8712) 2022-01-10 12:25:24 +00:00
plan.go Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
snapshot.go Add wildcard for --target and family (#8883) 2022-02-01 21:11:38 +01:00
snapshot_test.go Add wildcard for --target and family (#8883) 2022-02-01 21:11:38 +01:00
source.go Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
source_error.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
source_eval.go Fix (Read,Invoke) denied default provider handling (#9067) 2022-02-28 15:33:45 -08:00
source_eval_test.go Fix (Read,Invoke) denied default provider handling (#9067) 2022-02-28 15:33:45 -08:00
source_fixed.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
source_null.go Clone snapshot before testing with it (#8551) 2021-12-09 09:09:48 +00:00
source_query.go Fix (Read,Invoke) denied default provider handling (#9067) 2022-02-28 15:33:45 -08:00
source_query_test.go Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
step.go Add RetainOnDelete resource option (#8746) 2022-02-16 22:11:12 +00:00
step_executor.go Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
step_generator.go Add RetainOnDelete resource option (#8746) 2022-02-16 22:11:12 +00:00
step_generator_test.go Specify fields on engine diff (#8488) 2021-11-30 12:25:27 -08:00
target.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00