[Cosmos] Disable key authentication in AAD live-test lanes
Mantenedores costumam responder em até 1 dia
@simorenoh já está trabalhando nisso.
Desde 15/9/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Is your feature request related to a problem? Please describe.
The Cosmos AAD live-test lanes set COSMOS_TEST_DATA_AUTH_MODE=aad, but their provisioned accounts still allow local/key authentication. This means accidental key-authenticated data-plane usage can succeed instead of exposing gaps in AAD coverage.
Simply setting disableLocalAuth today would break the test harness. Shared session setup in tests/conftest.py creates databases and containers with ACCOUNT_KEY, and TestConfig.create_test_clients() plus its async counterpart deliberately create key-authenticated setup clients. The custom AAD role in sdk/cosmos/test-resources.bicep also needs to be reviewed for the database lifecycle operations currently performed through those key clients.
This follow-up was identified while reviewing PR #48459.
Describe the solution you'd like
Make the seven AAD live-test lanes run against provisioned Cosmos accounts with local/key authentication disabled.
- Audit every test selected by the AAD markers for direct or helper-mediated key authentication.
- Convert shared database/container setup and cleanup to use AAD or an appropriate ARM control-plane path.
- Update the custom AAD role with only the additional data actions required for test-owned database lifecycle operations.
- Add a Bicep parameter for
disableLocalAuthand enable it only for AAD matrix configurations, leaving key-auth lanes unchanged. - Ensure AAD lanes do not depend on
ACCOUNT_KEYafter deployment. - Add a targeted assertion that key authentication is rejected on the AAD account so regressions are visible.
- Validate all seven AAD lanes, including long, query, split, multi-region, circuit-breaker, and per-partition automatic-failover coverage.
Describe alternatives you've considered
Leaving local authentication enabled preserves the current harness but cannot detect accidental key usage. Enabling disableLocalAuth immediately without migrating setup would fail during session initialization rather than provide meaningful AAD coverage.
Additional context
PR #48459 intentionally keeps AAD lanes on per-run provisioned accounts because their role assignments target the current test tenant's principal. This issue is separate from moving key-auth lanes to fixed rotation-friendly accounts and should be completed before considering the AAD lanes fully key-independent.
- Linguagem predominante
- Python
- Estrelas
- 5.6k
- Forks
- 3.4k
- Merge médio
- 1d 22h
- PRs com merge (30d)
- 189
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Azure/azure-sdk-for-python
-
needs-triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
Azure/azure-sdk-for-python#50155 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundTalvez já em andamento @jianingwang123 assumiu há 17 dias. Abertaneeds-triage
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 72/100
Azure/azure-sdk-for-python#49886 · 1 comentário · 2 reações · 2 responsáveis ·
Mantenedores costumam responder em até 1 dia
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledTalvez já em andamento @14H034160212 assumiu há 19 dias. AbertaAI Projects Client customer-reported question
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Azure/azure-sdk-for-python#49854 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedTalvez já em andamento @hidingmyname assumiu há 27 dias. AbertaClient customer-reported Event Hubs needs-team-attention question Service Attention
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Azure/azure-sdk-for-python#49723 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. AbertaEngSys
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Azure/azure-sdk-for-python#49614 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Azure/azure-sdk-for-python
Issues semelhantes
-
🧫10장-투향
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
hyunjimoon/golden-cage-book#188 ·
-
agent/scanner bug stage/010-actionable
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
torch-spyre/spyre-inference#1812 ·
Mantenedores costumam responder em até 1 dia
-
Bug: fenced drafts inside <think> tags break parsing or are returned instead of the answerTalvez já em andamento @aad1tyaaaaa assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
google/langextract#639 ·
Mantenedores costumam responder em até 1 dia
-
[oblt-aw][autodoc] Update autodoc routing docs for relative in-repo lock usesTalvez já em andamento @github-actions assumiu hoje. Aberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 87/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia