Architecture · All ADRs
ADR 0009 — Credential broker and isolated connector execution
Architecture decision record — status: Accepted.
Status: Accepted
Decision#
Connector code never receives credentials. It runs in a worker thread (heap limits, hard timeout, no ambient fetch) and performs I/O only through ctx.http / ctx.grpc, which message the parent broker. The broker:
- permits only the connection's allowed hosts (plus environment deny lists and SSRF rules);
- strips any auth headers supplied by connector code and injects the vault credential itself (API key, bearer/OAuth2, basic, AWS SigV4);
- retries only idempotent requests, applies a per-connection circuit breaker, signs requests and sets idempotency keys.
Outputs are sanitized (injected credentials removed wherever they appear, secret shapes redacted, size bounded) before reaching the agent.
Consequences#
A buggy or compromised connector cannot exfiltrate credentials to another host. Adding a service never touches the security core.