Skip to content

deploy: add Agent ID User (AUID) demo under kubernetes-service/auid - #31

Closed
vj926 wants to merge 1 commit into
microsoft:mainfrom
vj926:vij/auid
Closed

deploy: add Agent ID User (AUID) demo under kubernetes-service/auid#31
vj926 wants to merge 1 commit into
microsoft:mainfrom
vj926:vij/auid

Conversation

@vj926

@vj926 vj926 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds an Agent ID User (AUID) end-to-end sample under deploy/azure/kubernetes-service/auid/, parallel to the existing kubernetes-service/dev/ tutorial. Demonstrates the non-OBO complement: an Entra Agent Identity with its own first-class user object (microsoft.graph.agentUser) calling a downstream service as itself — no human in the loop.

What's in this PR

  • backend/ — FastAPI broker that walks the full Blueprint -> Agent ID -> AUID FIC chain in pure Python (auid_flow.py: recipe 03.01-03.04).
  • weather-agent/ — downstream FastAPI service that validates the AUID bearer token (idtyp=user, appid, iss, tid, aud, exp) and returns weather + claims.
  • ui/index.html — chat UI with a static Acting as badge (Agent ID User UPN) and a live debug panel that renders each FIC step as it runs.
  • scripts/ — PowerShell helpers: 00-preflight-check (verifies every Entra permission, scope, FIC, and oauth2PermissionGrant), 01-provision-agentic-user, 02-grant-agentic-user-consent, 03-test-token-chain.
  • .claude/skills/deploy-auid-demo/ — skill with SKILL.md and PERMISSIONS.md (definitive list of required permissions/scopes/FICs/grants).
  • README.md — OBO vs AUID comparison, architecture diagram, quickstart, validation notes.

Conventions followed

Notes for reviewers

  • AUID token here targets scope=https://graph.microsoft.com/.default; weather-agent does strict claim-based validation (Graph tokens carry a nonce header that prevents third-party signature verification). For full RS256 verification, register a dedicated weather app and set WEATHER_AGENT_APP_ID in .env — documented in the README and PERMISSIONS.md.
  • k8s/Helm chart mirroring the OBO AKS demo is planned as a follow-up; the local 3-tier stack already proves the flow end-to-end.

Adds the Agent ID User end-to-end sample (Blueprint -> Agent ID -> AUID
FIC chain in Python) parallel to the existing kubernetes-service/dev
tutorial. Includes broker (FastAPI), downstream Weather Agent that
validates the AUID token, UI, provisioning + preflight scripts, and a
deploy-auid-demo skill.
@vj926

vj926 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

Withdrawing this PR. It predates the migration to the mcr.microsoft.com/entra-sdk/auth-sidecar pattern and posts directly to login.microsoftonline.com from the backend with a BLUEPRINT_CLIENT_SECRET. The replacement is #33, which delivers the same AUID demo as a self-contained sibling of deploy-agent-aks-dev (PR #28), uses the auth-sidecar with Workload Identity (no client secret in the cluster), and verifies the AUID JWT signature against the tenant JWKS in the Weather Agent.

Please redirect review to #33.

@vj926 vj926 closed this Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant