[Design] Support External Evaluation Policy (Invoke) in management SDKs
Maintainer thường phản hồi trong vòng 1 ngày
@weidongxu-microsoft đang làm issue này rồi.
Từ ngày 15/10/2026.
- #50819 của @copilot-swe-agent — đã đóng, không merge
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
Design support for Azure Policy External Evaluation ("Invoke") in Java 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
An initial Java prototype is available at:
https://github.com/Azure/azure-sdk-for-java/pull/49701
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 Java-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.
- Ngôn ngữ chính
- Java
- Star
- 2.6k
- Fork
- 2.2k
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 231
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/azure-sdk-for-java
-
mgmt, in track 1 migration guide, call out that file-based authentication method is not recommendedCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởAzure.Identity
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
Azure/azure-sdk-for-java#48894 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Azure.Core HttpClient
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Azure/azure-sdk-for-java#50961 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Azure.Core.V2 clientcore
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Azure/azure-sdk-for-java#50936 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Paging extenisonsĐang mởclientcore
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Azure/azure-sdk-for-java#50935 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update Configuration handlingĐang mởclientcore
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Azure/azure-sdk-for-java#50934 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Azure/azure-sdk-for-java
Issue tương tự
-
staticAssetsPath follows symlinks outside the directory on WindowsCó thể đã có người làm @ybelMekk đã nhận hôm nay. Đang mởbug security findings
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
navikt/mock-oauth2-server#1132 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent:working follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Sanne/incus-spawn#1683 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
checkstyle/checkstyle#22210 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
google/error-prone#6239 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Failing Test]: BigqueryClient.queryUnflattened fails BigQuery ITs on a transient 503Có thể đã có người làm @mxtymoshyk đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày