pulumi/pkg/resource/plugin
Matt Ellis af2a2d0f42 Correctly flow secretness across structured values
For providers which do not natively support secrets (which is all of
them today), we annotate output values coming back from the provider
if there is a coresponding secret input in the inputs we passed in.

This logic was not tearing into rich objects, so if you passed a
secret as a member of an array or object into a resource provider, we
would lose the secretness on the way back.

Because of the interaction with Check (where we call Check and then
take the values returned by the provider as inputs for all calls to
Diff/Update), this would apply not only to the Output values of a
resource but also the Inputs (because the secret metadata would not
flow from the inputs of check to the outputs).

This change augments our logic which transfers secrets metadata from
one property map to another to handle these additional cases.
2019-05-15 09:32:25 -07:00
..
analyzer.go Add license headers 2018-05-22 15:02:47 -07:00
analyzer_plugin.go Improve error message when failing to load plugins (#2542) 2019-03-11 22:17:01 +00:00
check.go Add license headers 2018-05-22 15:02:47 -07:00
config_source.go Add license headers 2018-05-22 15:02:47 -07:00
context.go Remove uses of plugins in the snapshot (#2662) 2019-04-23 09:53:44 -07:00
host.go Remove uses of plugins in the snapshot (#2662) 2019-04-23 09:53:44 -07:00
host_server.go Move management of root resource state to engine (#1944) 2018-09-18 11:47:34 -07:00
langruntime.go Add nodejs support for query mode 2019-05-02 18:08:08 -07:00
langruntime_plugin.go Add nodejs support for query mode 2019-05-02 18:08:08 -07:00
plugin.go Improve error message when failing to load plugins (#2542) 2019-03-11 22:17:01 +00:00
provider.go Refresh inputs (#2531) 2019-03-11 13:50:00 -07:00
provider_plugin.go Correctly flow secretness across structured values 2019-05-15 09:32:25 -07:00
provider_plugin_test.go Correctly flow secretness across structured values 2019-05-15 09:32:25 -07:00
rpc.go Retain secrets for unenlightented providers 2019-05-10 17:07:52 -07:00
rpc_test.go Follow up on #2369 (#2397) 2019-01-28 17:38:16 -08:00