# Secrets read from Google Secret Manager stay hidden

> When an agent reads a secret from Google Secret Manager, the value is masked in what the model sees while the command that fetched it can still use it.

Nov 23, 2026. Topics: Security, Agents, Developers. https://www.generalinput.com/changelog/2026-11-23-secrets-fetched-stay-hidden

We've extended output redaction to secret values an API hands back, starting with [Google Secret Manager](/apps/google-secret-manager). When one of our agents, or the current `geni` CLI running a command for Claude Code or Codex, reads a secret through Secret Manager's REST API (as gcloud, curl and other HTTP clients call it), the model sees `[REDACTED:secret]` instead in printed output, job logs and job reports. In a file, the file tools show it as `[REDACTED:secret]`, and refuse a file that is the secret. The command that fetched the value still has the real one, so piping it into a file, a request or a Vault credential still works.

It runs in the same egress proxy as the [Agent Firewall](/agent-firewall).

### How it works

- **The catalog marks which responses carry a secret.** For Secret Manager that is the access call, global and regional. We hide the decoded value, the field as returned and their common encodings, binary values included.
- **The value is registered before it is delivered.** The proxy records the secret for redaction before the command gets the response, so it cannot print it first.
- **Unreadable means not delivered.** A secret response the proxy cannot read, such as a compressed or oversized one, is refused rather than passed on.
- **It lasts as long as the sandbox.** Later commands and file reads in that sandbox stay redacted; through `geni`, the protection covers the one command.
- **Markers are not secrets.** Saving a credential whose value contains a redaction marker is refused, with a note to pipe the real value instead.

### Also shipped

- Job logs are redacted as they are written for every job, not only jobs that used a credential.