Restrict the server to an allowlist of subscriptions and resource groups

Aperta
#3,915 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@msalaman ci sta già lavorando.

Dal 5/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

customer-reported needs-team-attention question server-Azure.Mcp tools-Core

Add a way to restrict the server to specific Azure subscriptions or resource groups.

When debugging locally, developers often switch between projects and subscriptions with az login.
The server uses whichever identity and subscription is active, so the LLM can end up with access to data it was never meant to see, such as production, when it was only meant for dev and test environments.

--read-only and --namespace limit which tools are exposed, not which resources they can reach, and AZURE_SUBSCRIPTION_ID is only a default (see #2479). An allowlist set at startup would keep the server scoped no matter which account is active, e.g.:

azmcp server start --allowed-subscription <id> --allowed-resource-group rg-app-dev
Lingua principale
C#
Stelle
3.9k
Fork
689
Merge medio
2g 11h
PR unite (30g)
143

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/mcp

Tutte le issue di microsoft/mcp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.