Regression in Azure AI Search Elevated Read Access: App-Only Tokens No Longer Supported with x-ms-enable-elevated-read Header
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- azure, python
- Ambito
- authentication, search
Direzione di ricerca
The failing call is search_client.search(...) with a headers={"x-ms-enable-elevated-read": "true"} argument, using a service principal credential; the service error is quoted in the issue body. Start by reproducing the call with an app-only credential and checking how the SDK's search client passes custom headers and credentials. Done means the team has decided whether the SDK should change or the docs should state that elevated read requires a user token, and the reporter's workaround is confirmed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
search_results = search_client.search(
search_text="",
filter=f"artefact_id eq '{artefact_id.lower()}'",
select=["id"],
top=100,
headers={"x-ms-enable-elevated-read": "true"},
)
We are experiencing a regression/change in behavior when using Azure AI Search elevated read access.
Previously, our application was able to successfully query documents from an Azure AI Search index using the x-ms-enable-elevated-read header while authenticating through a service principal (app-only authentication). This capability was being used to retrieve existing indexed documents, including records that contain user permission restrictions, so that stale entries could be identified and deleted before re-ingestion.
ERROR : azure.core.exceptions.HttpResponseError:
Header 'x-ms-enable-elevated-read' requires an AAD user access token.
App-only tokens are not supported.
Code:
Message: Header 'x-ms-enable-elevated-read' requires an AAD user access token.
App-only tokens are not supported.
Due to this behavior change:
1] Existing documents with restricted permissions cannot be retrieved using elevated read access.
2] The ingestion process cannot reliably identify and delete previously indexed documents.
3] Duplicate or stale documents may remain in the index.
4] Automated synchronization between source repositories and Azure AI Search is impacted.
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 1g 22h
- PR unite (30g)
- 189
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/azure-sdk-for-python
-
needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Azure/azure-sdk-for-python#50155 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundForse già presa @jianingwang123 l’ha presa 17 giorni fa. Apertaneeds-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
Azure/azure-sdk-for-python#49886 · 1 commento · 2 reazioni · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledForse già presa @14H034160212 l’ha presa 19 giorni fa. ApertaAI Projects Client customer-reported question
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49854 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedForse già presa @hidingmyname l’ha presa 27 giorni fa. ApertaClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49723 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaEngSys
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49614 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/azure-sdk-for-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vllm-project/vllm#70030 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TigreGotico/tugaphone#408 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
gke-labs/kube-agents#7308 ·
I maintainer di solito rispondono entro 1 giorno
-
t: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
-
chore
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
lugassawan/swe-workbench#841 ·