You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Make confidential HTTP requests in Go: learn to use enclave execution, secret injection, and optional response encryption in your workflows."
9
9
datePublished: "2026-02-10"
10
-
lastModified: "2026-02-10"
10
+
lastModified: "2026-05-22"
11
11
---
12
12
13
13
import { Aside } from"@components"
@@ -170,6 +170,42 @@ Run the simulation:
170
170
cre workflow simulate
171
171
```
172
172
173
+
## Request timeout
174
+
175
+
The `Timeout` field on the inner `Request` object controls how long the enclave waits for the external API to respond before cancelling the call. It uses the [`google.protobuf.Duration`](https://protobuf.dev/reference/protobuf/google.protobuf/#duration) type.
176
+
177
+
**Default and limits:**
178
+
179
+
-**Default**: If you omit `Timeout`, a default of **5 seconds** is applied.
180
+
-**Maximum**: **10 seconds**. Values above this limit will error.
181
+
182
+
If your API routinely takes longer than 5 seconds, set an explicit timeout so the request does not fail unexpectedly.
183
+
184
+
Use `durationpb.New()` with a `time.Duration` value on the `Request` field:
Secrets are injected into request bodies and headers using Go template syntax: `{{.secretName}}`. The placeholder name must match the `Key` in your `VaultDonSecrets` list.
description: "Make confidential HTTP requests in TypeScript: learn to use enclave execution, secret injection, and optional response encryption in your workflows."
9
9
datePublished: "2026-02-10"
10
-
lastModified: "2026-02-10"
10
+
lastModified: "2026-05-22"
11
11
---
12
12
13
13
import { Aside } from"@components"
@@ -136,6 +136,39 @@ Run the simulation:
136
136
cre workflow simulate
137
137
```
138
138
139
+
## Request timeout
140
+
141
+
The `timeout` field on the inner `request` object controls how long the enclave waits for the external API to respond before cancelling the call. It uses the [Protocol Buffers `Duration`](https://protobuf.dev/reference/protobuf/google.protobuf/#duration) type.
142
+
143
+
**Default and limits:**
144
+
145
+
-**Default**: If you omit `timeout`, a default of **5 seconds** is applied.
146
+
-**Maximum**: **10 seconds**. Values above this limit will error.
147
+
148
+
If your API routinely takes longer than 5 seconds, set an explicit timeout so the request does not fail unexpectedly.
The JSON form is also accepted: `timeout: { seconds: "10", nanos: 0 }` (using `DurationJson`).
171
+
139
172
## Template syntax for secrets
140
173
141
174
Secrets are injected into request bodies and headers using Go template syntax: `{{.secretName}}`. The placeholder name must match the `key` in your `vaultDonSecrets` list.
0 commit comments