Built-in role for self-service API keys on Microsoft.ApiManagement/aigateways
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- azure, python
- Lĩnh vực
- authentication, cloud, documentation
Hướng nghiên cứu
Start by reading the AI Gateway role definitions and documentation for standalone Microsoft.ApiManagement/aigateways resources; the issue does not name repository files or tests. Define the minimum actions for key creation, rotation, and telemetry, then assess whether key operations can be limited to keys created by the caller. Done means a built-in role or documented portal permissions meet the request; the issue identifies no existing test to run.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
There is no built-in role that lets a user manage API keys on a standalone AI Gateway (Microsoft.ApiManagement/aigateways) and view its telemetry without also being able to change gateway configuration.
Some API consumers may need to call the API using keys rather than Microsoft Entra user authentication. The people who manage those keys should be able to create and rotate them without full gateway management rights.
This is a follow-up to #6. The custom role suggested there targets the APIM service resource type and does not work for the standalone aigateways resource.
Current behavior
A user who only has AI Gateway Developer or AI Gateway Contributor cannot create a key. Neither role includes any Microsoft.ApiManagement/aigateways/apiKeys/* action:
| Built-in role | Relevant actions | Can create keys |
|---|---|---|
| AI Gateway Developer | workspaces/aliases/read, workspaces/toolServers/read |
No |
| AI Gateway Contributor | workspaces/modelProviders/*, workspaces/aliases/*, workspaces/toolServers/* |
No |
| AI Gateway User / Models User / Tools User | data actions only | No |
| Contributor / Owner | Broad management permissions (including Microsoft.ApiManagement/aigateways/*) |
Yes, but grants much broader access than key management |
No built-in role provides narrowly scoped API-key management for aigateways. Broad built-in roles such as Contributor or Owner can manage gateway keys, but also grant broad permissions beyond keys. |
Workaround we are using
We currently assign this custom role to an entra group with our developers as members. The RG contains the gateway and its Application Insights resource. It has not been validated end to end with the portal and telemetry queries:
{
"roleName": "AI Gateway Self-Service Key Operator",
"description": "Allows API key creation, retrieval, and rotation on standalone AI Gateway, plus read-only access to models and telemetry.",
"assignableScopes": ["/subscriptions/<subscription-id>"],
"permissions": [
{
"actions": [
"Microsoft.ApiManagement/aigateways/read",
"Microsoft.ApiManagement/aigateways/workspaces/read",
"Microsoft.ApiManagement/aigateways/workspaces/models/read",
"Microsoft.ApiManagement/aigateways/workspaces/modelProviders/read",
"Microsoft.ApiManagement/aigateways/workspaces/modelProviders/models/read",
"Microsoft.ApiManagement/aigateways/workspaces/telemetryExporters/read",
"Microsoft.ApiManagement/aigateways/apiKeys/read",
"Microsoft.ApiManagement/aigateways/apiKeys/write",
"Microsoft.ApiManagement/aigateways/apiKeys/listSecrets/action",
"Microsoft.ApiManagement/aigateways/apiKeys/regeneratePrimaryKey/action",
"Microsoft.ApiManagement/aigateways/apiKeys/regenerateSecondaryKey/action",
"Microsoft.Insights/Components/Read",
"Microsoft.Insights/Components/Query/Read",
"Microsoft.Insights/Components/MetricDefinitions/Read",
"Microsoft.Insights/Components/Metrics/Read",
"Microsoft.Insights/Logs/Read",
"Microsoft.Insights/Logs/ApiManagementGatewayLogs/Read"
],
"notActions": [],
"dataActions": [],
"notDataActions": []
}
]
}
Limitations:
- The role is assigned at gateway resource-group scope. Members can manage keys on the gateway; key operations are not restricted to keys created by the individual member.
- Telemetry queries have not been verified end to end with this exact role assignment.
Requests
- A built-in role (or an extension of
AI Gateway Developer) for key self-service onaigateways, similar to the workaround above. - If possible, a way to limit key operations to keys the caller created.
- Documentation of the minimum actions the AI Gateway portal needs to create a key and show telemetry.
- Ngôn ngữ chính
- Python
- Star
- 18
- Fork
- 9
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 23
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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/aigateway
-
How do I use the AI Gateway to route to ADO Remote MCP Server?Có thể đã có người làm @santiagxf đã nhận hôm nay. Đang mởquestion
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Azure/aigateway#72 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Playground testing to external claude enterprise fails from AI GatewayCó thể đã có người làm @santiagxf đã nhận hôm nay. Đang mởinvestigate
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 53/100
Azure/aigateway#71 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
migrate-apim: partialWhen conditions are declared in the schema and implemented in the planner, and nothing checks the two agreeCó thể đã có người làm @santiagxf đã nhận hôm nay. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Azure/aigateway
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
qboson/kaiwu-pytorch-plugin#2308 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
NL-BioImaging/biomero-converter#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Name the maintainers in CODEOWNERSCó thể đã có người làm @TorecLuik đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
NL-BioImaging/BIOMERO.shallower#41 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
soup drift-alarm drops malformed and unrecognised live rows without saying so, then reports OK on the rows that are leftCó thể đã có người làm @abdulwaarith0 đã nhận hôm nay. Đang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
MakazhanAlpamys/Soup#3665 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
roadmap/v1.3.0 scope/entitlement type/improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
databrickslabs/ontos#1778 ·
Maintainer thường phản hồi trong vòng 2 ngày