Hello,
We are exploring Temporal as a potential candidate for running our workflows, I have created certificate and keys to connect to temporal cloud using docker utility temporalio/client-certificate-generation.
This certificates work good when we use them on local machine for testing., But as soon as we deploy the solution in Kubernetes, only workflows are executed using same certificates without worker.
The workers are started as a part of application startup and it fails with following error,
TransportError: tonic::transport::Error(Transport, hyper::Error(Connect, Custom { kind: InvalidData, error: InvalidCertificateData("invalid peer certificate: UnknownIssuer") }))
[0] at NativeConnection.connect (/usr/src/app/node_modules/@temporalio/worker/lib/connection.js:55:23)
[0] at async run (/usr/src/app/temporal/src/worker.js:13:22)
[0] TransportError: tonic::transport::Error(Transport, hyper::Error(Connect, Custom { kind: InvalidData, error: InvalidCertificateData("invalid peer certificate: UnknownIssuer") }))
[0] at NativeConnection.connect (/usr/src/app/node_modules/@temporalio/worker/lib/connection.js:55:23)
[0] at async run (/usr/src/app/temporal/src/worker.js:13:22)
This results in no Workflows are able to complete the execution.
And the main problem is, if same certificate configuration works for workflows as a part of same application, why it fails for worker.