[Design Proposal] OAuth Support for Agent API Interfaces #550
AnoshanJ
started this conversation in
Design Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Agent Manager exposes APIs for agent invocation, for agents deployed on the platform, but currently these endpoints are unsecured. This creates several limitations:
Since the platform already includes Thunder as the identity provider and the API Platform Gateway for policy enforcement, OAuth support should be integrated directly into the Agent lifecycle.
User Stories
Existing Solutions
Within the platform ecosystem, API security is typically handled through:
Currently, Agent APIs do not automatically integrate with these components.
Current workaround
Users must manually configure authentication outside the platform or expose APIs without built-in OAuth protection. This leads to inconsistent security practices and makes it harder to securely expose Agent APIs.
Proposed Solution
Overview
We need to:
Key principles:
Design
Gateway Integration
All Agent APIs are routed through the API Platform Gateway. Authentication is enforced at the gateway layer via policies.
Authentication Modes
1. API Key
2. OAuth (Secure Consumption)
Authorization
How do we control which applications can access which Agents?
A Thunder-based authorization approach is adopted:
Token behavior:
aud(audience) claims corresponding to the Agent resources the application is authorized to accessRequirements from Thunder:
This authorization flow will be surfaced to consumers through the API Platform Developer Portal.
API Deployment Models
Two primary models for API creation in the gateway were evaluated:
Developer Portal
Agent API discovery and consumption will be handled by the API Platform Developer Portal. This avoids duplicating portal infrastructure and abstracts the complexity of application management, credential generation, and authorization.
Requirements from the Developer Portal:
Integration is dependent on Developer Portal availability.
Agent Publishing
UI Support
Agent Deployment Configuration
Users can enable OAuth when configuring an Agent deployment.
Endpoint Authentication
Agent Testing (Console)
The testing page allows users to generate a test API Key and invoke the API.
Features:
Out of Scope
The initial implementation does not include:
The first version focuses only on machine-to-machine API access using client_credentials.
Alternatives Considered
A custom React-based Agent Catalog was initially proposed for API discovery and consumption. This has been dropped in favor of the API Platform Developer Portal, which provides equivalent functionality without the overhead of maintaining a separate portal. Requirements for what the portal must support are documented in the Developer Portal section above.
Milestones
api-configurationtrait with JWT policy supportBeta Was this translation helpful? Give feedback.
All reactions