Skip to content

Commit 7d93036

Browse files
authored
docs(security): clarify audit behavior and runtime guarantees (#5452)
Signed-off-by: Adrien Langou <alangou@nvidia.com>
1 parent fb1d0e3 commit 7d93036

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

‎docs/about/architecture.mdx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ tokens that last for the life of the sandbox run.
195195

196196
### What the agent can see
197197

198-
The agent shares its side of the boundary with the **sandbox**, so
199-
the **sandbox** holds nothing worth stealing: no gateway signing key, no
200-
gateway JWT, and no provider credentials. It can verify that it's talking to
201-
the right **supervisor**, but it can't impersonate one.
198+
The agent shares its container or guest with the trusted **sandbox** runtime.
199+
The runtime holds no gateway signing key, gateway JWT, or provider credentials.
200+
It still protects its TLS private key and enforcement state from the agent.
201+
It can verify that it's talking to the right **supervisor**, but it can't
202+
impersonate one.
202203

203204
If the **supervisor** disconnects, the **sandbox** freezes the agent. The same
204205
**supervisor** process can reconnect and resume it within the recovery window.

‎docs/how-it-works/providers/google.mdx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ The `google-cloud` provider gives sandboxes native GCP credentials so
1111
any Google Cloud SDK works out of the box — Cloud Storage, BigQuery, Drive,
1212
Maps, Discovery Engine, or any other GCP API. A GCE metadata server emulator
1313
on loopback provides credential placeholders that the
14-
sandbox proxy resolves to real tokens at request time. The sandbox process
15-
never holds a real GCP credential.
14+
sandbox proxy resolves to real tokens at request time.
1615

1716
## Quick Start
1817

@@ -131,7 +130,7 @@ When a sandbox starts with the `google-cloud` provider attached:
131130
2. The sandbox relays HTTP requests to the reserved `127.0.0.1:8174`
132131
metadata endpoint over its authenticated supervisor connection. The
133132
supervisor emulates the GCE instance metadata API and serves credential
134-
placeholders to GCP SDKs. Real access tokens remain in the supervisor.
133+
placeholders to GCP SDKs. The emulator does not return real access tokens.
135134
3. When the SDK makes an API call, it sends the placeholder in the
136135
`Authorization` header. The sandbox proxy TLS-terminates the
137136
outbound connection, resolves the placeholder to the real token,
@@ -143,8 +142,11 @@ When a sandbox starts with the `google-cloud` provider attached:
143142
Configuration values (`project_id`, `region`, `service_account_email`)
144143
are **visible in plain text** inside the sandbox — they appear as
145144
environment variables and are served by the metadata endpoint. These are
146-
non-secret identifiers, not credentials. Access tokens are never exposed;
147-
only placeholders reach the sandbox process.
145+
non-secret identifiers, not credentials. The metadata endpoint returns
146+
placeholders in place of access tokens. Credential injection does not
147+
automatically scrub tokens from upstream responses. See
148+
[How Credential Injection Works](/how-it-works/providers/overview#how-credential-injection-works)
149+
for credential delivery and response-handling limits.
148150

149151
The emulator supports Linux sandboxes using the Docker, Podman, Kubernetes,
150152
and VM runtimes. Windows/MXC does not provide this metadata endpoint. SDKs must

‎docs/how-it-works/providers/profiles.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ A request can use a static credential only when all of these checks pass:
7171
| The calling binary and destination are allowed. | Effective sandbox network policy. |
7272
| The host, port, and canonical request path match the credential binding. | Provider profile endpoints, or an explicit sandbox policy binding for an endpointless profile. |
7373
| The request location matches declared placement, the default `Authorization` header, or an explicit body/WebSocket rewrite policy. | The credential's `auth_style` and its header, query parameter, or path template. |
74-
| The HTTP method, path, or protocol operation is allowed when L7 inspection is configured. | Effective sandbox network policy. |
74+
| The HTTP method, path, or protocol operation is allowed when L7 inspection uses `enforcement: enforce`. | Effective sandbox network policy. |
7575
| The credential has not expired. | Provider credential expiry metadata. |
7676

77+
With `enforcement: audit`, request-rule violations are logged and forwarded.
78+
Credential binding, placement, and expiry checks still apply.
79+
7780
Network policy and credential binding serve different purposes. Network policy
7881
authorizes traffic. A credential binding authorizes use of one provider
7982
instance's credentials at an admitted endpoint. A credential binding cannot

0 commit comments

Comments
 (0)