pulumi/pkg/resource
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
..
analyzer Update error handling (#8406) 2021-11-12 18:37:17 -08:00
deploy Fix (Read,Invoke) denied default provider handling (#9067) 2022-02-28 15:33:45 -08:00
edit Update error handling (#8406) 2021-11-12 18:37:17 -08:00
graph Implement the --exclude-protected feature (#8359) 2021-11-15 11:45:14 -08:00
provider Update error handling (#8406) 2021-11-12 18:37:17 -08:00
stack [secrets] Fix + refactor bulk decryption. (#9039) 2022-02-25 08:51:52 -08:00
testdata support jar files 2020-08-10 14:15:35 -07:00