Repository navigation
Commit 37f0499
committed
feat(sandbox): support AWS session tokens in SigV4 signing
Add session_token parameter to apply_sigv4_to_request so SigV4 signing
works with temporary STS credentials (AccessKeyId + SecretAccessKey +
SessionToken). The aws-sigv4 SDK handles injecting the
x-amz-security-token header automatically when a session token is
present.
The call site resolves AWS_SESSION_TOKEN from the SecretResolver
alongside the access/secret keys. The token is optional — static IAM
keys continue to work without it.
Prepares for issue NVIDIA#1576 (aws_sts_assume_role refresh strategy) which
will provide short-lived STS credentials via gateway-side rotation.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Jesse Jaggars <[email protected]>1 parent 181af80 commit 37f0499
2 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
470 | 472 | | |
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
474 | 476 | | |
475 | 477 | | |
| 478 | + | |
476 | 479 | | |
477 | 480 | | |
478 | 481 | | |
| |||
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
| 516 | + | |
513 | 517 | | |
514 | 518 | | |
515 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
228 | 248 | | |
229 | 249 | | |
230 | 250 | | |
| |||
237 | 257 | | |
238 | 258 | | |
239 | 259 | | |
| 260 | + | |
240 | 261 | | |
241 | 262 | | |
242 | 263 | | |
| |||
0 commit comments