AI Agent Secrets Handling: Why the Agent Process Should Never See an API Key
An AI agent that holds API keys in process memory is an exfiltration target. The architecture that survives keeps the keys at the gateway and exposes only short-lived, identity-bound tokens to the agent. This walkthrough covers the three patterns enterprises use today, the failure modes that surface under prompt injection or pre-auth RCE, and the broker pattern that closes the gap.