Built-in role for self-service API keys on Microsoft.ApiManagement/aigateways
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- azure, python
- Ambito
- authentication, cloud, documentation
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 18
- Fork
- 9
- Merge medio
- 1g 16h
- PR unite (30g)
- 23
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/aigateway
-
How do I use the AI Gateway to route to ADO Remote MCP Server?Forse già presa @santiagxf l’ha presa oggi. Apertaquestion
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
Azure/aigateway#72 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Playground testing to external claude enterprise fails from AI GatewayForse già presa @santiagxf l’ha presa oggi. Apertainvestigate
Difficoltà 3/5 1-2 giorni Idoneità per principianti 53/100
Azure/aigateway#71 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
migrate-apim: partialWhen conditions are declared in the schema and implemented in the planner, and nothing checks the two agreeForse già presa @santiagxf l’ha presa oggi. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/aigateway
Issue simili
-
roadmap/v1.3.0 scope/entitlement type/improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
databrickslabs/ontos#1778 ·
I maintainer di solito rispondono entro 2 giorni
-
bug good first issue help wanted up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ClickHouse/loom#2075 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfForse già presa @fedonman l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 69/100
StevenBlack/hosts#3314 ·
-
task
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
SparseLinearAlgebra/spla#316 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno