Commit f2a40b6
committed
Fix --tls=false being ignored when --api-key is present
The SDK (v1.39.0+) auto-enables TLS when API-key credentials are set,
unless ConnectionOptions.TLSDisabled is true. The envconfig package
(v0.1.0) predates this field and does not set it when TLS is explicitly
disabled, so the SDK re-enables TLS despite the user's --tls=false.
Bridge the gap by setting TLSDisabled in the CLI after
profile.ToClientOptions() when the profile has TLS explicitly disabled.
Bump cliext SDK dependency to v1.40.0
The cliext module was on go.temporal.io/sdk v1.32.1 while the root
module uses v1.40.0. This caused the ConnectionOptions.TLSDisabled
field (added in v1.39.0) to be unresolved when editing cliext.1 parent 3faa05f commit f2a40b6
3 files changed
Lines changed: 34 additions & 114 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
0 commit comments