pulumi/sdk/go/common
Ian Wahbe c299365ac6 Allow encrypting the `id` property for a resource
We already handled id correctly when it was an output. We just didn't
handle it correctly for the special ID field in a serialized resource.

When we serialize a resource, we now check if `"id"` is a secret output.
If so, we set `coreapi.ResourceV3.ID` to `resource.SecretSig`. We
reverse this process when deserializing.

This solution is sound as long as
- `stack.SerializeResource` is the only place where resources are
serialized.
- `stack.DeserializeResource` is the only place where resources are
deserialized.
- We can assume that `resource.SecretSig` is not used as an ID.
2022-02-08 16:29:10 +01:00
..
apitype Allow encrypting the `id` property for a resource 2022-02-08 16:29:10 +01:00
constant expose execution kind via update metadata (#5258) 2020-08-31 09:07:59 -07:00
diag Allow disabling default providers (#8829) 2022-01-26 18:08:36 +01:00
encoding Improve error message and add test for #1440 (#8268) 2021-10-26 16:55:52 +01:00
resource Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
testing Toward replacing MSBuild with make+bash on Windows (#8617) 2022-01-07 22:27:14 -05:00
tokens Make PackageName just a QName (#8807) 2022-01-21 19:23:14 +00:00
tools Toward replacing MSBuild with make+bash on Windows (#8617) 2022-01-07 22:27:14 -05:00
util Toward replacing MSBuild with make+bash on Windows (#8617) 2022-01-07 22:27:14 -05:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Fix typo in comment (#8936) 2022-02-06 15:28:35 -08:00