- Run a Temporal service.
- Run the following command to start the remote codec server
go run ./codec-server
- Run the following command to start the worker
go run worker/main.go
- Run the following command to start the example
go run starter/main.go
- Run the following command and see the payloads cannot be decoded
tctl workflow show --wid encryption_workflowID
- Run the following command and see the decoded payloads
tctl --codec_endpoint 'http://localhost:8081/' workflow show --wid encryption_workflowID
Note: The codec server provided in this sample does not support decoding payloads for the Temporal Web UI, only tctl. Please see the codec-server sample for a more complete example of a codec server which provides UI decoding and oauth.