@@ -52,6 +52,7 @@ func (h HTTPProxyTest) Execute(ctx context.Context, r *harness.Runner) (client.W
5252 namespace : r .Namespace ,
5353 clientCertPath : r .ClientCertPath ,
5454 clientKeyPath : r .ClientKeyPath ,
55+ caCertPath : r .CACertPath ,
5556 tlsServerName : r .TLSServerName ,
5657 taskQueue : r .TaskQueue ,
5758 workflowID : "wf-" + uuid .NewString (),
@@ -94,7 +95,7 @@ func SubprocessExecuteWorkflow(ctx context.Context, args *subprocessArgs) error
9495 clientOpts := client.Options {HostPort : fmt .Sprintf ("passthrough:///%s" , args .server ), Namespace : args .namespace }
9596 if args .clientCertPath != "" {
9697 var err error
97- clientOpts .ConnectionOptions .TLS , err = harness .LoadTLSConfig (args .clientCertPath , args .clientKeyPath , args .tlsServerName )
98+ clientOpts .ConnectionOptions .TLS , err = harness .LoadTLSConfig (args .clientCertPath , args .clientKeyPath , args .caCertPath , args . tlsServerName )
9899 if err != nil {
99100 return fmt .Errorf ("failed loading TLS config: %w" , err )
100101 }
@@ -139,6 +140,7 @@ type subprocessArgs struct {
139140 namespace string
140141 clientCertPath string
141142 clientKeyPath string
143+ caCertPath string
142144 tlsServerName string
143145 taskQueue string
144146 workflowID string
@@ -151,6 +153,7 @@ func (s *subprocessArgs) flags() []cli.Flag {
151153 & cli.StringFlag {Name : "namespace" , Destination : & s .namespace , Required : true },
152154 & cli.StringFlag {Name : "client-cert-path" , Destination : & s .clientCertPath },
153155 & cli.StringFlag {Name : "client-key-path" , Destination : & s .clientKeyPath },
156+ & cli.StringFlag {Name : "ca-cert-path" , Destination : & s .caCertPath },
154157 & cli.StringFlag {Name : "tls-server-name" , Destination : & s .tlsServerName },
155158 & cli.StringFlag {Name : "task-queue" , Destination : & s .taskQueue , Required : true },
156159 & cli.StringFlag {Name : "workflow-id" , Destination : & s .workflowID , Required : true },
@@ -167,6 +170,9 @@ func (s *subprocessArgs) args() []string {
167170 if s .clientCertPath != "" {
168171 args = append (args , "--client-cert-path" , s .clientCertPath , "--client-key-path" , s .clientKeyPath )
169172 }
173+ if s .caCertPath != "" {
174+ args = append (args , "--ca-cert-path" , s .caCertPath )
175+ }
170176 if s .tlsServerName != "" {
171177 args = append (args , "--tls-server-name" , s .tlsServerName )
172178 }
0 commit comments