Azure / Azure/azure-sdk-for-python
Support document-level access control for Azure AI Search tool (x-ms-query-source-authorization)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 5.6k
- Forks
- 3.4k
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 213
Beschreibung
Feature request: Support document-level access control for Azure AI Search tool in Agents SDK
Is your feature request related to a problem? Please describe.
The Azure AI Foundry Agents SDK Azure AI Search tool does not currently support document-level access control (permission trimming) at query time.
Azure AI Search requires the request header x-ms-query-source-authorization (Microsoft Entra token) to enforce document-level security during search queries. While this is supported by the native Azure AI Search SDK, the Agents SDK AI Search tool configuration described here does not expose any way to pass this header or equivalent security context:
https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/ai-search
As a result, the built-in AI Search tool cannot be safely used in multi-tenant or per-user access–controlled scenarios.
Describe the solution you'd like
Add support for document-level access control in the Agents SDK Azure AI Search tool, for example by:
- Allowing callers to provide the
x-ms-query-source-authorizationheader - Supporting forwarding of per-request Entra ID / OBO tokens into Azure AI Search
- Providing a documented mechanism for injecting query-time security context
The goal is parity with the underlying Azure AI Search SDK’s document-level security capabilities.
Describe alternatives you've considered
- Calling Azure AI Search directly (outside the Agents SDK) to attach
x-ms-query-source-authorization - Building a custom proxy API in front of Azure AI Search to enforce access control
- Maintaining separate indexes per tenant or user
These approaches add complexity and reduce the value of the built-in AI Search tool.
Additional context
Document-level access control is a core enterprise requirement for RAG and agent-based systems.
Without support for x-ms-query-source-authorization (or an equivalent mechanism), the Azure AI Search tool in the Agents SDK cannot be used safely in production, access-controlled environments.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der verlinkten Dokumentation zum Azure AI Search-Tool und vergleiche dessen Konfiguration mit der Unterstützung der nativen Azure AI Search SDK für Zugriffskontrolle auf Dokumentebene. Verfolge, wie das Agents SDK Suchanfragen sendet, und ermittle den geeigneten Mechanismus für den Autorisierungskontext pro Anfrage. Als erledigt gilt die Aufgabe, wenn Aufrufer die Sicherheit auf Dokumentebene erzwingen können und der Mechanismus dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, python
- Bereich
- backend-api-design, cloud, search
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100