Repository navigation
[docs] Document Key Vault certificate credentials for Entra applications - #2028
Closed
aspire-repo-bot[bot] wants to merge 1 commit into
Closed
aspire-repo-bot[bot] wants to merge 1 commit into
aspire-repo-bot[bot] wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <[email protected]>
Merged
7 of 14 tasks
Contributor
Author
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Member
docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]Recommendation: needs human Source used: microsoft/aspire#21425 (merged 2026-11-02) Phase A — claims
Phase B — doc-testerNot run; rendering of the changed pages is not browser-checked. 🤖 Posted by aspire.dev - squad (AI Agent) |
Member
|
Superseded by #2086 which consolidates the Entra ID docs. |
Eric Erhardt (eerhardt)
added a commit
that referenced
this pull request
Nov 11, 2026
## Summary Documents the Microsoft Entra ID hosting integration (epic microsoft/aspire#21060) as one consolidated set of pages under `integrations/security/microsoft-entra-id/`. It replaces ten independent bot-written draft PRs that overlapped, edited the same files, and in places contradicted the shipped API. Every claim was checked against `microsoft/aspire` (README, code, `[AspireExport]` attributes, polyglot fixtures, tests, and the end-to-end deployment tests). New pages: | Page | Covers | | --- | --- | | Overview (`index`) | Preview posture, prerequisites, package install, run vs publish, settings workloads receive, connection names | | Secure a web app and API | Web-to-API walkthrough, local vs Azure deployment | | Redirect URIs and sign-in | Endpoint-derived, host-parameter, and literal URIs, browser origins, ID-token issuance, audiences, sovereign clouds | | Client credentials | Secret, local developer certificate, managed identity federation, Key Vault certificate (+ automatic cert-read RBAC), store, file, `x5c` | | Expose and call APIs | Scopes, application ID URI, API permissions, `DownstreamApis`, consent, pre-authorization, Graph and custom APIs | | Application roles | `WithAppRole`, retirement rules, `PublishWithAppRoleAssignment` for managed identities | | Existing registrations | `AddExistingEntraApplication` vs `AsExistingApplication`, supported vs rejected settings | | Customize infrastructure | `ConfigureInfrastructure`, tags, `serviceManagementReference`, experimental `Aspire.Hosting.Azure.Provisioning.EntraId` (`ASPIREAZUREPROVISIONING001`) | | Lifecycle and permissions | Permissions matrix, create/redeploy/cleanup, tenant suffix, owners, retained grants, limitations, transient Graph failures, troubleshooting | Other changes: sidebar group under Security & identity, a Microsoft Entra ID row in the Azure provisioning package table, and cross-links from the local provisioning, user-assigned identity, and Key Vault pages. Superseded drafts (closed after this PR opens): #1928, #1934, #1944, #1964, #1973, #1991, #2027, #2028, #2031, #2043. ### Consolidation notes and assumptions - Defects in the drafts that were not carried over: `apphost.ts` titles, the wrong `syncKey`, C# before TypeScript, a nonexistent `prerelease` prop on `InstallPackage`, an unverified `shortName`, aligned fluent indentation, the stale "add URL callbacks before `WithRedirectUris`" note (resolution now waits for all URL customizations), and a claim that `local-provisioning.mdx` documents "Missing subscription configuration". - The 17.0 what's-new page is intentionally not edited (#1928 only touched that page), per the task instructions. - TypeScript samples are not `twoslash`-annotated because the bundled twoslash data predates the Entra package. The method names and option shapes were verified against `apphost.mts` and the `[AspireExport]` attributes. C#-only APIs (`WithCredential`, `EntraIdApi`, `EntraIdApiPermission`, `EntraIdAppRole`) show C# only or use the TypeScript DTO equivalents. - Nested sidebar items carry no per-item locale translations, matching every other nested integration group in `integrations.topics.ts`. - `integration-docs.json` mappings were intentionally not added. `reconcileIntegrationDocs` prunes official-package entries missing from `aspire-integrations.json`, so `pnpm test:unit:structured-data` fails until the packages appear on NuGet. They can be added by the integrations updater afterwards. - No `<ApiReference>` components are used because no generated API data exists for these packages yet. ### Open questions and unverifiable claims - Epic items still open and not reflected as final: API review (#21075), security review (#21080), release docs/samples (#21079), platform and failure-path dispositions (#21078). - "Azure CLI with Bicep 0.36.1 or later" comes only from the integration README and playground README. - The `AzureAd` Microsoft.Identity.Web snippets were checked against Microsoft.Identity.Web source (`AddMicrosoftIdentityMessageHandler(IConfiguration, string)`, `EnableTokenAcquisitionToCallDownstreamApi`, `AddMicrosoftIdentityWebApi`) but not executed end to end. - The app-role sample's use of `WithAllowWebApiToBeAuthorizedByACL` follows the shipped end-to-end deployment test. The exact Microsoft.Identity.Web rejection behavior for tokens without `roles` is from that test and the option's XML doc. - Transient Graph failures after registration creation are documented as a known limitation with "deploy again" guidance, per #21372. No automatic retry exists in 17.0. ## Third-party links and affiliations None. All added links point to Microsoft-owned sites (learn.microsoft.com, entra.microsoft.com, aka.ms, devblogs.microsoft.com, nuget.org package pages) and the existing aspire.dev docs. ## Validation Run from `src/frontend`; `pnpm build` was not run, per repository policy: - `pnpm install --frozen-lockfile`: passed - `pnpm test:unit:structured-data`: passed (5 files, 99 tests) - `pnpm exec vitest run --config vitest.config.ts`: passed (97 files, 1398 passed, 1 skipped), including `seo-lengths`, `typescript-first-apphost-tabs`, and `twoslash-blocks` - `pnpm exec eslint config/sidebar/integrations.topics.ts --max-warnings 0`: passed - `pnpm exec prettier --write config/sidebar/integrations.topics.ts`: applied - A script that resolves every internal link and anchor in the new and edited pages: all OK - Style sweep for em dashes, bold lead-in bullets, `Overview` headings, non-TypeScript-first tabs, bad `syncKey`/titles, and missing trailing slashes: clean - Three independent read-only fact-check passes against the microsoft/aspire sources; all reported discrepancies were fixed before this commit - Regenerated `.starlight-icons/*` and `twoslash/aspire.d.ts` were restored and are not in the commit --------- Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents changes from microsoft/aspire#21425
Author:
@eerhardt(source PR author)Target branch: Targeting
release/17.0based on the source PR milestone17.0(target_resolution:exact_match).Why: The source PR lets
WithCertificateFromKeyVaultaccept an Azure Key Vault resource (also in polyglot AppHosts) and automatically grants the Key Vault Certificate User role in run and publish modes. aspire.dev had no Entra ID integration page. Triggered signals:integration_readme_changed,pr_body_has_cli_flag_mention,pr_body_has_user_facing_section.Changes:
src/frontend/src/content/docs/integrations/security/entra-id.mdxcovering the Key Vault resource reference (C# and TypeScript), requirements for the certificate, role assignment behavior in run/publish modes, overrides, existing vaults, and the URL form.src/frontend/config/sidebar/integrations.topics.tsto add the page under Security & identity.