ctx := context.Background()
//ctx = context.WithValue(ctx, cryptconverter.PropagateKey, cryptconverter.CryptContext{KeyId: "test"})
// The workflow input "My Secret Friend" will be encrypted by the DataConverter before being sent to Temporal
we, err := c.ExecuteWorkflow(
ctx,
workflowOptions,
cryptconverter.Workflow,
"My Secret Friend",
)
It should be easy as not putting in the the following;
I want to be able to selectively decide if my workflow is to have its payloads encrypted. I am using the following sample project as a starter to prove I can do it.
samples-go/cryptconverter at master · temporalio/samples-go (github.com)
The following code is where I am focusing in on.
It should be easy as not putting in the the following;
The code in the sample does account for it not being there but I am running into a json.Unmarshal error when I remove it.
In summary, I simply commented out the line that puts the cryptconverter.PropagateKey into the ExecuteWorkflow context.