Skip to content

Conversation

@crivetimihai
Copy link
Member

@crivetimihai crivetimihai commented Oct 30, 2025

fix: Add missing oauth_config and passthrough_headers columns to a2a_agents

PR #1270 added oauth_config and passthrough_headers to the A2AAgent model
but forgot to include the database migration. This caused SQLAlchemy errors
when querying a2a_agents from older databases.

This migration:

  • Adds oauth_config column (JSON, nullable)
  • Adds passthrough_headers column (JSON, nullable)
  • Creates idx_a2a_agents_team_visibility index for query performance
  • Creates idx_a2a_agents_owner_visibility index for query performance

The indexes match the pattern used for other resource tables (tools, servers,
gateways, etc.) and are critical for multitenancy/RBAC query performance.

Fixes SQLAlchemy OperationalError: no such column: a2a_agents.oauth_config

…agents

PR #1270 added oauth_config and passthrough_headers to the A2AAgent model
but forgot to include the database migration. This caused SQLAlchemy errors
when querying a2a_agents from older databases.

This migration:
- Adds oauth_config column (JSON, nullable)
- Adds passthrough_headers column (JSON, nullable)
- Creates idx_a2a_agents_team_visibility index for query performance
- Creates idx_a2a_agents_owner_visibility index for query performance

The indexes match the pattern used for other resource tables (tools, servers,
gateways, etc.) and are critical for multitenancy/RBAC query performance.

Fixes SQLAlchemy OperationalError: no such column: a2a_agents.oauth_config

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai merged commit 8628f5a into main Oct 30, 2025
41 of 43 checks passed
@crivetimihai crivetimihai deleted the fix-alembic branch October 30, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants