# goose · Credential handling

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [goose](https://ai-agents-review.com/runtime/goose.md)
- Column: [Credential handling](https://ai-agents-review.com/column/credential-handling.md) (Execution controls)
- Mark: 1 s
- Default deployment: 1
- Best supported configuration: 1
- Page: https://ai-agents-review.com/cell/goose/credential-handling

## Rationale

Keychain option exists, but shell/hooks/stdio inherit full env; L2 unmet: no default env denylist

## Rubric criteria for this column

- 0: Full environment inherited, credentials stored in plaintext readable by agent code, no filtering
- 1: Some protection (keychain option, redaction of output, per-command secret injection), but the full environment is still inherited by default
- 2: Default denylist filtering of the environment, but known provider keys or credential files remain reachable by agent code
- 3: Default cleared environment plus allowlist for agent processes; credential stores may still be readable on the same filesystem
- 4: Level 3, plus provider credentials held outside the agent's reach (separate process or broker) **and** auxiliary processes (MCP stdio) also get an allowlisted environment

## Review finding

Secrets resolve from env, then OS keychain (`keyring` 3.6.3), then `secrets.yaml`. Shell, hooks, recipe checks and stdio extensions inherit goose's full environment (no `env_clear`), so env-supplied keys are readable. Only configured extension env is filtered, and only for loader variables. Tool output and request logs are not redacted. [X20][X22][X26][X27][X28]

## Evidence cited by the mark

- [X20] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/platform_extensions/developer/shell.rs#L575-L625 — shell spawned with inherited env, only AGENT/GOOSE_TERMINAL/AGENT_SESSION_ID added — [S]
- [X26] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/config/base.rs#L84-L93 — secret precedence env, then keyring, then secrets.yaml — [S]
- [X27] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/oi-kit-agent/src/extension.rs#L88-L166 — DISALLOWED_KEYS filters configured extension env only — [S]

## Evidence also cited by the review finding

- [X22] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/oi-kit-agent/src/mcp/stdio.rs#L24-L57 — [opt --container] stdio extensions via docker exec; no env_clear — [S]
- [X28] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/providers/utils.rs#L62-L120 — request logs hold full payloads, 0600, 10 files, no redaction — [S]

## Grading record

- Grader A (default / best): 1 / 1
- Grader B (default / best): 1 / 1
