Commit 79e2ba6
authored
feat: add GCP Credential Access Boundary downscoping (#805)
## Summary
Add a typed Google Cloud Credential Access Boundary grant and
server-side STS granter to `reqsign-google`. It reuses the
`GrantCredential` / `Granter<Credential>` capability introduced in #803:
a token-only Google source credential authorizes the exchange, and the
result is an expiration-aware token-only `Credential` that the existing
Google signing path can consume.
The service API constructs Cloud Storage bucket and object-prefix rules
from validated types, emits the required list-prefix condition without
accepting raw CEL or STS JSON, enforces the documented CAB and
token-lifetime limits, and performs the exchange through
`Context::http_send`. Source and output deadlines are checked around
I/O, granted outputs are never cached, and credential material is
redacted from errors and `Debug`.
This is the second service implementation of scoped credential granting
after Azure while keeping authorization semantics within the Google
crate. The client-issued intermediary-token and session-key flow is
intentionally tracked separately in #804.
Live GCP STS and Cloud Storage acceptance remains pending because no
test credential and bucket were available for this implementation.
Closes #749.1 parent 6392bc4 commit 79e2ba6
7 files changed
Lines changed: 1780 additions & 7 deletions
File tree
- reqsign/src
- services/google
- src
- provide_credential
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
22 | 59 | | |
23 | 60 | | |
24 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments