Built-in role for self-service API keys on Microsoft.ApiManagement/aigateways
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- azure, python
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 18
- フォーク
- 9
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 23
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/aigateway のほかの issue
-
How do I use the AI Gateway to route to ADO Remote MCP Server?対応中かも @santiagxf が今日担当しました。 オープンquestion
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Azure/aigateway#72 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Playground testing to external claude enterprise fails from AI Gateway対応中かも @santiagxf が今日担当しました。 オープンinvestigate
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
Azure/aigateway#71 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
migrate-apim: partialWhen conditions are declared in the schema and implemented in the planner, and nothing checks the two agree対応中かも @santiagxf が今日担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
Azure/aigateway の issue をすべて見る
似ている issue
-
roadmap/v1.3.0 scope/entitlement type/improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
databrickslabs/ontos#1778 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue help wanted up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/loom#2075 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itself対応中かも @fedonman が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 69/100
StevenBlack/hosts#3314 ·
-
task
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
SparseLinearAlgebra/spla#316 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信