AI Engineer

Who Is Making This Request? Agent Auth 101 - Kamil Potrec, Keycard

Published 2026-10-28 · Duration 18:35

Summary

The talk outlines the critical security requirements for agent authentication and authorization in AI systems. Current practices, such as relying on personal access tokens (PATs) or over-privileged service accounts, are insufficient because agents are non-deterministic actors. Proper agent authentication requires establishing per-agent identity, implementing delegation semantics, using short-lived scoped credentials, and integrating federated trust across diverse, often legacy, systems. The speaker details the architectural shift needed, moving credential management out of the agent's execution environment and into secure gateways or dedicated control planes to ensure auditability and control.

Download summary

Key takeaways

  1. The Problem with Current Agent Auth 0:32

    Current methods (PATs, static keys, service accounts) fail because they lack clear attribution (who made the request: user or agent?), are over-privileged, and cannot account for the non-deterministic nature of agents. This risk was previously accepted because software was deterministic, but agents introduce a new, unpredictable actor.

  2. Required Components for Proper Agent Auth 12:10

    A robust system must provide: 1) Per-agent (and potentially per-session) identities. 2) Delegation semantics (defining which agents can act on behalf of users). 3) Short-lived, scoped credentials, preventing the use of master keys. 4) Federated trust across existing, diverse systems (legacy APIs). 5) Policy enforcement (determining if human approval is needed). 6) Comprehensive audit logging.

  3. Architectural Solutions: Gateways vs. SDKs

    While SDKs are easy to write, they fail to secure credentials from the agent's execution environment. Gateways (or proxies) solve this by intercepting all communication, forcing agents to request credentials from a secure vaulting service, thereby physically removing credentials from the agent's reach. This enables instantaneous revocation and request introspection.

Technical details

  • Credential Management Flaws 113s

    Relying on user PATs or static keys means the MCP server only sees the user's identity, not the agent. Service accounts often become 'over-privileged buckets of permissions,' which is dangerous when dealing with non-deterministic agents.

  • OAuth and Federation 365s

    OAuth is key for allowing agents to advertise how to obtain credentials and receive dynamic, scoped credentials limited to the specific interaction. Workload Identity Federation, private key authentication, certificates, and URL-based authorization are suggested mechanisms for agent authentication.

  • Gateway Functionality

    Gateways act as a physical control layer, intercepting requests to validate policies, fetch specific credentials from a runtime authorization service, and inject them into the request path. This provides instantaneous revocation and allows for request introspection (e.g., blocking a 'send email' request even if 'read email' is permitted).

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.