From 8eee153e6825458ca340b8cba1f2db6c961477f0 Mon Sep 17 00:00:00 2001 From: "vpatil16@ext.uber.com" Date: Wed, 22 Oct 2025 11:09:39 -0700 Subject: [PATCH 1/2] Mutual TLS with sample test scenarios Signed-off-by: vpatil16@ext.uber.com --- new_samples/client_samples/helloworld/hello_world_sample.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/new_samples/client_samples/helloworld/hello_world_sample.go b/new_samples/client_samples/helloworld/hello_world_sample.go index c5534d40..457f8b62 100644 --- a/new_samples/client_samples/helloworld/hello_world_sample.go +++ b/new_samples/client_samples/helloworld/hello_world_sample.go @@ -2,11 +2,12 @@ package main import ( "context" + "time" + "github.com/google/uuid" "github.com/uber-common/cadence-samples/new_samples/worker" "go.uber.org/cadence/.gen/go/shared" "go.uber.org/zap" - "time" ) func main() { @@ -42,7 +43,7 @@ func main() { defer cancel() resp, err := cadenceClient.StartWorkflowExecution(ctx, &req) if err != nil { - logger.Error("Failed to create workflow", zap.Error(err)) + logger.Error("Error: Unsecure connection to cadence", zap.String("error", err.Error())) panic("Failed to create workflow.") } From 117a8bbe5488fee52391ba100cfd4e145a094a79 Mon Sep 17 00:00:00 2001 From: "vpatil16@ext.uber.com" Date: Wed, 22 Oct 2025 11:11:21 -0700 Subject: [PATCH 2/2] Mutual TLS with sample test scenarios Signed-off-by: vpatil16@ext.uber.com --- new_samples/client_samples/helloworld_tls/hello_world_tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_samples/client_samples/helloworld_tls/hello_world_tls.go b/new_samples/client_samples/helloworld_tls/hello_world_tls.go index 39c8d6e7..ab9870dd 100644 --- a/new_samples/client_samples/helloworld_tls/hello_world_tls.go +++ b/new_samples/client_samples/helloworld_tls/hello_world_tls.go @@ -54,7 +54,7 @@ func main() { defer cancel() resp, err := cadenceClient.StartWorkflowExecution(ctx, &req) if err != nil { - logger.Error("Failed to create workflow", zap.Error(err)) + logger.Error("Error: Unsecure connection to cadence", zap.String("error", err.Error())) panic("Failed to create workflow.") }