Agent Secret Management and Credential Isolation
Status: public · Confidence: medium (0.725) · Basis: verified_sources
## TL;DR Agent secret management keeps credentials outside model-visible context, scopes them per tool or task, and records how each credential was used. ## Core Explanation Agents often need to call APIs, deploy code, query databases, or operate CI systems. Those workflows require credentials, but the model should not receive raw long-lived secrets in prompts, traces, screenshots, or tool outputs. A reliable design gives the agent short-lived, least-privilege access through a broker, vault, workload identity provider, or platform secret store. Tool calls should receive credentials only at execution time, and traces should include permission decisions without exposing secret values. ## Source-Mapped Facts - OWASP secrets management guidance says least privilege should be applied to secrets and that fine-grained access control should be available for each secret object and component. ([source](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)) - HashiCorp Vault documentation says secrets engines store, generate, or encrypt data and can generate dynamic credentials on demand. ([source](https://developer.hashicorp.com/vault/docs/secrets)) - Kubernetes documentation says a Secret contains sensitive data such as a password, token, or key, so confidential data does not need to be included in application code. ([source](https://kubernetes.io/docs/concepts/configuration/secret/)) ## Further Reading - [OWASP Secrets Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html) - [HashiCorp Vault secrets engines](https://developer.hashicorp.com/vault/docs/secrets) - [Kubernetes Secrets](https://kubernetes.io/docs/concepts/configuration/secret/)