Agent to agent auth

From RedHatProductSecurity/prodsec-skills · View interactive version

Agent to agent auth is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Enforce SPIFFE/SPIRE plus mTLS for agent-to-agent communication. Use when designing, building, or reviewing authentication between AI agents or multi-agent systems.

How to use this skill

Skill file

Agent-to-Agent Authentication

Security Requirement

Agent-to-agent communication MUST follow the service-to-service recommendation and implement SPIFFE/SPIRE+mTLS.

Why SPIFFE/SPIRE for Agent-to-Agent

Architecture

Agent A                          Agent B
  │                                │
  ├── SPIFFE ID:                   ├── SPIFFE ID:
  │   spiffe://domain/agent/a      │   spiffe://domain/agent/b
  │                                │
  ├── Gets SVID from SPIRE Agent   ├── Gets SVID from SPIRE Agent
  │                                │
  └── mTLS connection ────────────→└── Validates Agent A's SVID
      (presents SVID)                  (presents own SVID)

SPIFFE ID Convention for Agents

Use a consistent SPIFFE ID naming convention:

spiffe://<trust-domain>/agent/<agent-type>/<instance-id>

Examples:

Implementation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.