Authentication enforcement

From RedHatProductSecurity/prodsec-skills · View interactive version

Authentication enforcement is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Enforce authentication and authorization at the API gateway for AI systems. Use when designing, building, or reviewing API gateways that front inference engines, LLM APIs, or AI model endpoints.

How to use this skill

Skill file

Authentication Enforcement at the API Gateway

Security Requirement

AI model APIs MUST require that all principals (humans and applications) are identified, authenticated, and authorized before requests reach the models. The API gateway is the primary enforcement point for this control.

AI software MUST implement a robust standard authentication mechanism or require integration with an identity provider by default. Reducing this security posture should only be an option the user explicitly chooses, never the default.

What Is Not Acceptable as Default

These approaches may seem to "facilitate use" but are not acceptable for cloud services and should not be the default for products.

Required Controls

| Control | Details |

|---|---|

| Authentication | Standard protocol (OAuth 2.1/OIDC) via IdP integration |

| Authorization | Verify the authenticated principal has permission for the requested operation |

| Identity | Every request must be attributable to a specific principal |

Architectures Without an API Gateway

If the AI software architecture or platform does not include an API gateway, these security controls MUST be implemented by other components:

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.