Credential Brokering Patterns for AI Agents Part 4: Eliminating Plaintext

AI-generated overview

Christian Posta argues that credential-brokering systems should let the gateway perform final decryption, leaving the controller with ciphertext and metadata but no plaintext credentials or decrypt permission. The gateway already sees access tokens when sending upstream requests, so the change does not eliminate gateway exposure; it prevents a compromised controller from harvesting plaintext. The article also recommends keeping refresh tokens outside the gateway’s reach, isolating the broker and controller, and rewrapping ciphertext. Agent-signed proofs bound to request targets and trusted execution environments are described as possible further protections, though gateway compromise remains a concern.

What’s discussed

  • In the proposed design, the controller releases ciphertext to the gateway, while the broker provides the plaintext data-encryption key to the gateway for decryption.
  • The broker accepts the gateway’s SVID and verifies the user’s subject token against the identity provider’s JWKS during each unwrap.
  • The controller is described as retaining row metadata and state while losing its decrypt and encrypt permissions.
  • The article says a compromised gateway can request credentials for other resources belonging to active users while their subject tokens remain valid, typically about an hour after a user’s last request.
  • The article recommends periodically rewrapping ciphertext in OpenBao and raising the Transit key’s minimum decryption version to invalidate older ciphertext.
  • The article identifies two IETF WIMSE drafts, a Workload Proof Token and an HTTP Message Signatures profile, as approaches for binding proofs to agent requests.

A short overview on Fiper. Read or listen to the full work at the original source.