Commit 97a67f0
authored
feat(aws): support maximum-allowed S3 Express sessions (#840)
## Context
S3 Express CreateSession gives an omitted session-mode header distinct
semantics: AWS attempts the maximum privilege allowed by policy, trying
ReadWrite before falling back to ReadOnly. The existing API could only
request an explicit mode, forcing clients to choose without knowing the
caller's IAM permissions.
This adds a typed maximum-allowed grant selection that omits the header
while preserving the exact wire behavior of explicit ReadOnly and
ReadWrite grants. It remains within the existing Granter composition,
fixed five-minute session lifetime, and redaction boundary.
Fixes #8351 parent 9d3208e commit 97a67f0
3 files changed
Lines changed: 219 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
0 commit comments