[Design] Support External Evaluation Policy (Invoke) in management SDKs
Les mainteneurs répondent en général sous 1 jour
@msyyc y travaille déjà.
Depuis le 15/10/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Summary
Design support for Azure Policy External Evaluation ("Invoke") in Python management SDKs.
The SDK should handle the following flow:
- Detect
403 RequestDisallowedByPolicywithmissingPolicyTokenDetails. - Call
acquirePolicyTokenusing the original request URI, method, and payload. - Add the returned token to
x-ms-policy-external-evaluations. - Replay the original operation once.
Cross-language context and service clarifications are tracked in:
https://github.com/Azure/azure-sdk/issues/10081
Initial Python design direction:
https://github.com/Azure/azure-sdk/issues/10081#issuecomment-6120821333
Byte-for-byte payload requirement
For an operation with request-body byte sequence B, the following must use the same serialized bytes:
- The original ARM operation body.
acquirePolicyToken.operation.content.- The replayed ARM operation body.
Logical JSON equality is insufficient. Deserializing and reserializing the payload may change property ordering, whitespace, escaping, number formatting, null handling, or encoding and invalidate the token's content binding.
The implementation should retain the final serialized request content and reuse it without modification for token acquisition and replay. Bodyless operations such as DELETE should preserve the service-defined empty/null content behavior.
Design goals
- Work across management libraries without service-specific changes.
- Support PUT, PATCH, POST, and DELETE operations.
- Preserve the exact serialized request content without unnecessary overhead.
- Prevent recursive acquire/replay loops.
- Surface policy-evaluation and token-acquisition failures clearly.
- Define tracing, logging, and token-redaction behavior.
- Decide whether support is default-enabled or explicitly configured.
Expected outcome
Please propose the Python-specific architecture and public API, preferably with a prototype covering:
- successful
403 → acquirePolicyToken → replay; - verification that the original, token-acquisition, and replay payloads are byte-for-byte identical;
- prevention of payload reserialization;
- bodyless operations;
- token-acquisition failure or policy denial;
- replay-loop prevention;
- synchronous and asynchronous APIs;
- integration with the management client pipeline.
The prototype is for design validation and does not need to be production-ready.
- Langage dominant
- Python
- Étoiles
- 5.6k
- Forks
- 3.4k
- Merge moyen
- 1 j 22 h
- PR mergées (30 j)
- 189
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Azure/azure-sdk-for-python
-
needs-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Azure/azure-sdk-for-python#50155 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundPeut-être pris @jianingwang123 l’a pris il y a 17 jours. Ouverteneeds-triage
Difficulté 1/5 1-3 heures Accessibilité débutants 72/100
Azure/azure-sdk-for-python#49886 · 1 commentaire · 2 réactions · 2 personnes assignées ·
Les mainteneurs répondent en général sous 1 jour
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledPeut-être pris @14H034160212 l’a pris il y a 19 jours. OuverteAI Projects Client customer-reported question
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49854 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedPeut-être pris @hidingmyname l’a pris il y a 27 jours. OuverteClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49723 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. OuverteEngSys
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49614 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Azure/azure-sdk-for-python
Issues similaires
-
🧫10장-투향
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
hyunjimoon/golden-cage-book#188 ·
-
agent/scanner bug stage/010-actionable
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
torch-spyre/spyre-inference#1812 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: fenced drafts inside <think> tags break parsing or are returned instead of the answerPeut-être pris @aad1tyaaaaa l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
google/langextract#639 ·
Les mainteneurs répondent en général sous 1 jour
-
[oblt-aw][autodoc] Update autodoc routing docs for relative in-repo lock usesPeut-être pris @github-actions l’a pris aujourd’hui. Ouverte
Difficulté 1/5 1-3 heures Accessibilité débutants 87/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour