Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/ADRs/0136-runner-secrets-through-one-stored-secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ Date: 2026-10-07

Accepted

*Amended by [ADR 0145](0145-keep-credential-deny-list-out-of-runner-secret-refusal.md),
which keeps the credential deny-list that #3373 adds to the `env.sandbox` gate
out of the refused-names rule below, matches that rule case-insensitively, and
adds the `DYLD_*` family to the refused prefixes.*

## Context

A custom harness's `pre_script`, `post_script` and `validation_loop` read
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: "145. Keep the credential deny-list out of the runner-secret refusal"
status: Accepted
Comment thread
waynesun09 marked this conversation as resolved.
Resolved
relates_to:
- agent-infrastructure
- security-threat-model
topics:
- harness
- secrets
- github-actions
---

# 145. Keep the credential deny-list out of the runner-secret refusal

Date: 2026-10-19

Amends: [ADR 0136](0136-runner-secrets-through-one-stored-secret.md)

## Status

Accepted

## Context

[ADR 0136](0136-runner-secrets-through-one-stored-secret.md) refuses some
names as runner-secret bundle keys, and its refusal reads the sandbox
reserved set (`reservedSandboxKeys`). #3373 makes `env.sandbox` also refuse
the credential-class deny-list: proxy, TLS-trust, Git, interpreter, loader
and shell-behavior names.

Those names are legitimate host-side. `pre_script` and `post_script` need
proxy and TLS settings to reach internal networks, and the sandbox child
never sees a runner-secret value. If the deny-list were merged into
`reservedSandboxKeys`, a bundle carrying, for example, `HTTPS_PROXY` would
fail validation and stop every run that uses it.

The refusal also has two gaps. It matched exact case, so a lowercase key
such as `path` passed, although the `env.sandbox` gate matches
case-insensitively. It refused `LD_*` but not the macOS dynamic-linker family
`DYLD_*`, which the plugin-env door already refuses.

## Decision

This ADR settles the runner-secret refusal's name set once `env.sandbox`
refuses the credential deny-list: it does not read the deny-list, it matches
case-insensitively, and it refuses the `DYLD_*` family. The second and third
close gaps in that set rather than open a separate decision.

The `env.sandbox` gate checks the credential deny-list beside
`reservedSandboxKeys`; the deny-list is not merged into that map. The
runner-secret refusal keeps reading `reservedSandboxKeys` and does not
consult the deny-list. It also refuses the OIDC and provider-only keys, the
minted role tokens and workflow-set names refused since ADR 0136, and the
runner-owned prefixes, now including `DYLD_*`. Both doors match
case-insensitively. A credential-class name that is not also in
`reservedSandboxKeys` or under a refused prefix is refused at the
`env.sandbox` door and accepted as a runner-secret key.

## Consequences

- The deny-list can widen without breaking runs whose bundles carry
host-side settings.
- Both doors read `reservedSandboxKeys`, so a runner-infrastructure name
added there is refused at both with no second list to keep in sync.
- Proxy, TLS-trust and Git settings stay available to host-side scripts
through runner secrets.
- ADR 0136's refused names stay refused, now with their case variants and
the `DYLD_*` family, so a bundle key such as `path` or `github_token` fails
validation.
3 changes: 3 additions & 0 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ repo baseline and overrides)
`runtime.forge` or `config` (interim until ADR 0112's guarded-field check).
GitLab is unchanged: one masked CI/CD variable per secret, none of these
rules ([ADR 0136](ADRs/0136-runner-secrets-through-one-stored-secret.md)).
The refusal does not consult the credential deny-list that the
`env.sandbox` gate also checks
([ADR 0145](ADRs/0145-keep-credential-deny-list-out-of-runner-secret-refusal.md)).
- Agent configuration env vars: behavioral knobs use `{AGENT}_{SETTING_NAME}`
naming (e.g., `REVIEW_SEVERITY_THRESHOLD`), delivered via `env.runner` and
`env.sandbox` in the harness YAML. Each agent documents its config vars in
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Download the latest binary from [GitHub Releases](https://github.com/fullsend-ai
|---------|-------------|
| [`fullsend run`](run.md) | Execute an agent locally in a sandbox. See [running agents locally](../guides/user/running-agents-locally.md). |
| `fullsend poll` | Discover forge events and dispatch agent pipelines. `--forge gitlab` runs the cron poller ([ADR 0067](../ADRs/0067-gitlab-cron-polling-event-dispatch.md)); events-mode polling also recovers issue opens whose webhook delivery was missed. `--input-driver jira-poll` polls Jira (see [Jira integration](../guides/user/jira-integration.md)). `--input-driver gitlab-webhook` is the GitLab dispatcher job's webhook fast-path ([ADR 0125](../ADRs/0125-gitlab-hybrid-webhook-poller-dispatch.md)). It reads the native webhook body from the file-type `TRIGGER_PAYLOAD` variable, re-validates it against the GitLab API, and creates each routed stage's pipeline (typed inputs, `FULLSEND_DISPATCH_SECRET` HMAC) with the poller-role credential (the `api` route, the default). Scheduled cron polling and the webhook fast path run as the trigger-only service account: once its dispatch activation is recorded, the managed webhook carries the account's pipeline trigger token ([#8509](https://github.com/fullsend-ai/fullsend/issues/8509)), the scaffold sets `FULLSEND_GITLAB_DISPATCH_ROUTE=child-pipeline`, and the command instead starts each pipeline with the job's own `CI_JOB_TOKEN` through the pipeline trigger API (`source=pipeline`); an unknown route, or `child-pipeline` without `CI_JOB_TOKEN`, fails closed. `fullsend poll --forge gitlab --print-dispatch-routes` prints the routes the CLI supports (`api` and `child-pipeline`) and exits; the scaffold runs it before selecting `child-pipeline`, and a CLI that predates the route rejects the flag, so the job stops before any dispatch. It requires `--project`, which has no `CI_PROJECT_PATH` fallback. It deduplicates against the poller's per-mode state on the `fullsend-poll-state-slash` and `fullsend-poll-state-events` branches, so an event the webhook dispatched is not dispatched again by the poller, and the reverse. Shared poller state is occurrence-aware (label additions are keyed on the resource label event ID, dispatched keys are retained for the webhook freshness window, and a failed label dispatch is handed back to the poller as a pending retry); legacy persisted keys keep working. Older pollers do not recognise the new label keys, so before a rollback or mixed-version run, follow the [ADR 0132](../ADRs/0132-occurrence-aware-shared-poller-state.md) guidance to drain in-flight poll jobs or pin every poller to one version. |
| `fullsend lock [agent-name]` | Pin remote dependencies to `lock.yaml` |
| `fullsend lock [agent-name]` | Pin remote dependencies to `lock.yaml`. When it composes a harness (a new or stale entry, or `--update`), it also prints the harness diagnostics, including [reserved `env.sandbox` keys](run.md#reserved-envsandbox-keys). A current entry is not composed, so its keys are not checked, and `lock` composes without event context, so keys from event-guarded overlays are reported only by `fullsend run`. |
| `fullsend scan` | Run security scanners on agent input/output |
| `fullsend eval-measure` | Score wild-run traces into `eval-measurements.jsonl`. See [Eval measurements](../guides/infrastructure/eval-measurements.md). |

Expand Down
23 changes: 22 additions & 1 deletion docs/cli/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ For comparison:
- Child processes inherit both variables. In a pi sub-agent read the deadline, not the budget: the
deadline is the same wall-clock limit the parent has, while `FULLSEND_TIMEOUT_MINUTES` is the
parent iteration's whole budget, not the time the child has left.
- Both names are reserved: an `env.sandbox` entry with either name is dropped. Pre-, post- and
- Both names are reserved: an `env.sandbox` entry with either name is dropped
(see [Reserved `env.sandbox` keys](#reserved-envsandbox-keys)). Pre-, post- and
validation scripts run on the host and do not see them.

**Pacing from a skill.** Read the deadline, not the budget, and keep the arithmetic in two steps —
Expand Down Expand Up @@ -454,6 +455,26 @@ receives one only when the harness declares it under `env.runner`; see
Repo-level setup (provider, profile, `~/.npmrc`, code/fix overlays):
[Private registries and GitHub Packages](../guides/user/customizing-agents.md#private-registries-and-github-packages).

## Reserved `env.sandbox` keys

`fullsend run` drops reserved names from `env.sandbox` instead of exporting
them into the sandbox. Matching is case-insensitive. It warns twice:

- When the harness loads, one warning names every reserved key:
`N env.sandbox key(s) are reserved and will be dropped instead of exported into the sandbox: ...`
- As it writes the sandbox environment, one stderr line per key:
`WARNING: env.sandbox key "NAME" is reserved (runner infrastructure or security deny-list); skipping`

`fullsend lock` prints the load-time warning when it composes a harness. A
current lock entry is not composed; run `fullsend lock --update` to check its
keys. `lock` composes without event context, so a key added by an overlay
guarded on `event` is reported only by `fullsend run`. The reserved names are
listed in the `env.sandbox` note in [Customizing
agents](../guides/user/customizing-agents.md#reserved-envsandbox-names);
where blocked proxy and certificate settings go instead is in [Migrating proxy
and certificate
settings](../guides/user/customizing-agents.md#migrating-proxy-and-certificate-settings).

## Runner secrets

`fullsend run` reads a JSON object of name → value for host-side scripts
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/getting-started/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ Local `fullsend poll` / `fullsend run --forge gitlab` against a private-CA insta

### Sandbox hosts

OpenShell sandboxes do **not** inherit `CI_SERVER_TLS_CA_FILE`. That path is job-local and must not be treated as available inside the sandbox or on a remote gateway host. Agent-controlled TLS environment overrides (`SSL_CERT_FILE`, `SSL_CERT_DIR`, `CURL_CA_BUNDLE`, `NODE_EXTRA_CA_CERTS`) stay blocked.
OpenShell sandboxes do **not** inherit `CI_SERVER_TLS_CA_FILE`. That path is job-local and must not be treated as available inside the sandbox or on a remote gateway host. Agent-controlled TLS environment overrides (`SSL_CERT_FILE`, `SSL_CERT_DIR`, `CURL_CA_BUNDLE`, `NODE_EXTRA_CA_CERTS`) stay blocked; see [Migrating proxy and certificate settings](../user/customizing-agents.md#migrating-proxy-and-certificate-settings) for where those settings go instead.

The OpenShell supervisor reads a fixed list of system CA paths in the sandbox container to build upstream trust (GitLab, registries, inference) and the bundle handed to sandboxed processes. Administrators provision that trust on the **sandbox host**, independently of the job container:

Expand Down
139 changes: 137 additions & 2 deletions docs/guides/user/customizing-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,143 @@ and other lines that are not plain assignments) are skipped with a warning.
these files like `pre_script`. `host_files` can also place configuration that tools load, such
as git config or shell rc files; that is trusted like `pre_script` too.

**Note**: `env.sandbox` cannot modify `PATH`, the harness ignores special
variables to protect sandbox operation.
#### Reserved `env.sandbox` names

**Note**: `env.sandbox` cannot modify runner infrastructure or security
settings through the reserved names below. The runner drops these names
before writing the sandbox environment, case-insensitively:

- **Runner infrastructure and process-loading safeguards:** `PATH`, `HOME`,
`SHELL`, `BASH_ENV`, `ENV`, `LD_PRELOAD`, `LD_LIBRARY_PATH`, `TRACEPARENT`,
and every `FULLSEND_*` variable the runner itself exports into the sandbox
(its output and fetch plumbing, the repository path, role and slug, the
iteration budget and deadline, and its own `PATH` entry). The set grows
with the runner; the warnings described below name any such key a harness
sets.
- **Credentials it mints or receives:** `FULLSEND_GCP_OIDC_AUTH_FILE`,
`FULLSEND_TRIGGER_TOKEN`, `FULLSEND_GITLAB_TRIGGER_ACCOUNT_TOKEN`,
`FULLSEND_WEBHOOK_SECRET`, `FULLSEND_INFERENCE_GATEWAY_API_KEY`,
`FULLSEND_OPENAI_API_KEY`, `OPENAI_API_KEY`, `GH_WORKFLOW_TOKEN`, the
runner-secret bundle and its staging path (`FULLSEND_GITHUB_RUNNER_SECRETS`,
`FULLSEND_GITHUB_RUNNER_SECRETS_FILE`), and the GitHub Actions OpenID Connect
(OIDC) request pair `ACTIONS_ID_TOKEN_REQUEST_URL` /
`ACTIONS_ID_TOKEN_REQUEST_TOKEN`. The runner uses this pair to request a
token proving the job's identity.
- **Non-secret, runner-only inputs that select those credentials:**
`FULLSEND_GCP_OIDC_URL`, `FULLSEND_GCP_PROJECT_ID`,
`FULLSEND_GCP_WIF_PROVIDER`, `FULLSEND_OPENAI_AUDIENCE`,
`FULLSEND_OPENAI_IDENTITY_PROVIDER_ID`,
`FULLSEND_OPENAI_SERVICE_ACCOUNT_ID`.
- **Security-sensitive names also refused in URL-sourced provider credential
definitions:** proxy settings (`HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY`,
`ALL_PROXY`), Transport Layer Security (TLS) trust settings that select
certificates for verifying encrypted connections (`SSL_CERT_FILE`,
`SSL_CERT_DIR`, `CURL_CA_BUNDLE`, `NODE_EXTRA_CA_CERTS`), git configuration
(`GIT_SSH_COMMAND`, `GIT_CONFIG_GLOBAL`, `GIT_EXEC_PATH`, `GIT_ASKPASS`,
`GIT_TEMPLATE_DIR`), interpreter injection (`NODE_OPTIONS`, `PYTHONPATH`,
`PYTHONSTARTUP`, `JAVA_TOOL_OPTIONS`, `RUBYOPT`, `PERL5OPT`),
dynamic-linker hooks (`LD_AUDIT`, `DYLD_INSERT_LIBRARIES`), shell behavior
(`IFS`, `CDPATH`, `PROMPT_COMMAND`) and the resolver alias file
(`HOSTALIASES`).

The list is by name, not by namespace: harness-supplied hook inputs such as
`FULLSEND_CANARY_TOKEN` and `FULLSEND_TOOL_ALLOWLIST` are still delivered
through `env.sandbox` — see
[Runtime Implementation](../../contributing/runtime-implementation.md).
Matching is case-insensitive, so `https_proxy` is dropped exactly as
`HTTPS_PROXY` is.

This deny-list covers selected names, not every variable that can affect
network routing, certificate trust, Git or interpreter behavior. An unlisted
name is not necessarily safe.

`fullsend run` warns when the harness loads, naming all reserved keys it will
drop, and warns again on stderr for each key as it writes the sandbox
environment. To check the harness without starting an agent:

1. Run `fullsend lock <agent-name>`. It reports the same lint warning when it
loads and composes the harness. Locking may fetch dependencies and write the
lock file. If the entry is already current, it skips composition and does
not check the keys. `lock` composes without event context, so a key added
by an overlay guarded on `event` is reported only by `fullsend run`.
2. Run `fullsend lock <agent-name> --update` (or
`fullsend lock --all --update`) to check the composed harness when the entry
is current. This forces dependency re-resolution and may change the lock
file; it is not a diagnostics-only operation.

No key-specific warning on a cache hit means the keys were not checked, not
that they are allowed.

A key must start with an ASCII letter or underscore, followed only by ASCII
letters, digits or underscores. `fullsend run` skips invalid names and warns
on stderr; this separate identifier check is not reported by `fullsend lock`.
Dropping a key removes that one `env.sandbox` export; it does not unset a value
that reaches the sandbox another way, as `host_files` `.env.d` does.

This gate covers `env.sandbox` only. `host_files` `.env.d` files are read
before the runtime starts: every launch and the runner's in-sandbox probes
read them as data and take only assignment lines, and never take the
dynamic-loader, interpreter and shell-startup variables that the
[`.env.d` host files](../../reference/harness-reference.md#field-details)
entry in the harness reference lists. `.env` itself is still valid shell that
an agent may source, so keep treating these files like `pre_script`. Either
way, `.env.d` is not a general migration path for blocked proxy or
certificate settings; the harness reference entry has the per-runtime
rules.

#### Migrating proxy and certificate settings

Coordinate these changes with the operator of your OpenShell gateway:

- **Corporate proxies:** use the operator-managed outbound-network settings
Comment thread
waynesun09 marked this conversation as resolved.
Resolved
for the OpenShell version and compute driver you deploy; fullsend records
the version it pins in
[`.github/scripts/openshell-version.sh`](https://github.com/fullsend-ai/fullsend/blob/main/.github/scripts/openshell-version.sh)
at your release tag.
Comment thread
waynesun09 marked this conversation as resolved.
Resolved
The [OpenShell gateway configuration reference](https://github.com/NVIDIA/OpenShell/blob/v0.1.4/docs/how-it-works/gateways/configuration.mdx)
for that version describes proxy chaining for policy-approved TLS
connections using the HTTP CONNECT method to establish a tunnel. Plain-HTTP
destination traffic remains direct. These are not fullsend harness fields or
a general replacement for every `HTTP_PROXY` or `ALL_PROXY` use. Do not
reintroduce application proxy exports through `.env.d` as a workaround.
**GitHub Action limitation:** fullsend's own GitHub Action writes
`gateway.toml` with a fixed template and has no input for upstream proxy or
CA settings. Self-hosted Actions runners behind a corporate proxy that relied
on `HTTPS_PROXY` in `env.sandbox` have no configuration step available yet.
This is tracked as a follow-up for an Action proxy input
([#8505](https://github.com/fullsend-ai/fullsend/issues/8505)).
- **Additional certificate authorities (CAs):** preserve the active sandbox's
OpenShell CA certificate and other required roots in application trust.
OpenShell's supervisor also verifies upstream TLS separately. Follow the
selected driver's certificate-provisioning instructions in that reference,
which documents `proxy_ca_bundle` for a corporate proxy. It requires
`https_proxy`, and on Kubernetes it is a path in the gateway Pod mounted
from a ConfigMap, not a host path. Do not assume that replacing a
generated bundle with a custom-only file, or changing only the agent
image's trust store, configures both trust paths. Have the gateway operator
validate the required application and supervisor connections before
deployment. The linked tag is what the pinned gateway supports; a setting
documented only at a later OpenShell tag is not available until fullsend
bumps the pin. If the linked tag does not document `additional_ca_bundle`
(added in OpenShell 0.1.5, for Podman gateways), a private CA used without
a corporate proxy has no gateway-level replacement for `SSL_CERT_FILE` or
`NODE_EXTRA_CA_CERTS` at that version.
- **Git settings:** place git configuration with `host_files` (a git config
file or shell rc file the tools load) or use the tool's own configuration,
instead of `GIT_SSH_COMMAND`, `GIT_CONFIG_GLOBAL`, `GIT_ASKPASS` and the
other blocked `GIT_*` names. `host_files` content is trusted like
`pre_script`. Git and TLS equivalents the list does not yet cover, such as
`GIT_SSH`, `GIT_CONFIG_*` and `REQUESTS_CA_BUNDLE`, are tracked in
[#8503](https://github.com/fullsend-ai/fullsend/issues/8503).
- **Interpreter, loader and shell names:** `NODE_OPTIONS`, `PYTHONPATH`,
`JAVA_TOOL_OPTIONS`, `LD_AUDIT`, `IFS` and the other blocked names of this
class have no supported replacement route into the sandbox. They are
blocked because they change how code is loaded or run. Which of them
`host_files` `.env.d` still delivers differs by runtime; the
[`.env.d` host files](../../reference/harness-reference.md#field-details)
entry lists what each runtime drops or unsets. Whatever it delivers, it
does so only because that file is trusted like `pre_script`, so it is not
a sanctioned way to restore them.

### Adding a skill

Expand Down
3 changes: 3 additions & 0 deletions docs/guides/user/running-agents-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ or a cached artifact is missing, `fullsend run` falls back to normal network
resolution and prints a warning suggesting you re-run `fullsend lock`.

Use `--update` to force re-resolution even if the lock entry appears current.
A current entry is also not composed, so `fullsend lock` does not check it for
reserved `env.sandbox` keys; see
[Reserved `env.sandbox` keys](../../cli/run.md#reserved-envsandbox-keys).

### Status notification flags

Expand Down
Loading
Loading