Skip to content

Document Entra ID security considerations from release review - #2111

Merged
Eric Erhardt (eerhardt) merged 4 commits into
release/17.0from
eerhardt/entra-security-docs
Nov 11, 2026
Merged

Eric Erhardt (eerhardt) merged 4 commits into
release/17.0from
eerhardt/entra-security-docs

Conversation

@eerhardt

Copy link
Copy Markdown
Member

Summary

Follow-up to #2086. These changes address the documentation gaps found in the Entra ID hosting integration security review and threat model (microsoft/aspire#21080). That review was an engineering review, not a formal security sign-off.

  • Tenant-wide consent (WithAdminConsent) (expose-and-call-apis.mdx, lifecycle-and-permissions.mdx): Explain that consent applies to the whole tenant without a prompt. Note that Graph application permissions reach deployed apps through managed identity federation. Recommend treating high-privilege permissions as admin access, reviewing consent changes in PRs, and deploying from CI with a least-privilege identity.
  • Grants and credentials are never revoked (lifecycle-and-permissions.mdx): Add a new "Revoke what remains" section with Azure CLI and Graph commands that delete grants, app role assignments, and certificate credentials.
  • Local developer certificate (client-credentials.mdx): The tenant resource suffix is empty by default. If a run reaches a production registration, it replaces that registration's certificate credentials, and publishing doesn't remove the dev key. The local PFX isn't password protected and isn't cleaned up.
  • Vault-wide Key Vault Certificate User role (client-credentials.mdx, lifecycle-and-permissions.mdx): Add a caution that the role covers every certificate in the vault, and recommend a dedicated vault.
  • Redirect URIs (redirect-uris-and-sign-in.mdx): Aspire passes URIs through as they are, and Entra enforces its own restrictions. Recommend exact HTTPS URIs and restricting who can set host parameters.

Third-party links and affiliations

None. The new links point to Microsoft Learn (learn.microsoft.com/entra/identity-platform/reply-url) and the Microsoft Entra admin center.

Validation

  • Confirmed that every internal anchor (#revoke-what-remains, #role-assignments-for-certificate-access, #managed-identity-federation, #required-permissions) matches an existing heading.
  • git diff --check: passed.
  • prettier --check on the changed files reported issues. It reports the same issues on the unmodified baseline files, so I didn't reformat them.
  • I didn't run the site build or lint.

Clarify tenant-wide consent risks, vault-wide certificate access, local
developer certificate handling, redirect URI validation, and how to revoke
grants and credentials that Aspire no longer manages.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 68b00e03-418b-4839-88a1-d0ebfc318f60

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The cleanup guidance uses the API’s service principal ID instead of the caller managed identity’s principal ID, which can leave the caller’s role grant intact and retain its authorization.

1 open issue
What changed in this PR

This documentation-only follow-up to #2086 adds security guidance for the Microsoft Entra ID hosting integration, addressing gaps identified during the engineering security review.

Changes:

  • Clarifies tenant-wide consent risks and least-privilege deployment practices.
  • Documents retained credentials and grants, manual cleanup, and vault-wide certificate access.
  • Adds guidance for trusted redirect URIs and host parameters.
File Description
src/​frontend/​src/​content/​docs/​integrations/​security/​microsoft-entra-id/​redirect-uris-and-sign-in.mdx Adds redirect URI safety and host-parameter guidance.
src/​frontend/​src/​content/​docs/​integrations/​security/​microsoft-entra-id/​lifecycle-and-permissions.mdx Adds privilege guidance and commands for revoking retained access.
src/​frontend/​src/​content/​docs/​integrations/​security/​microsoft-entra-id/​expose-and-call-apis.mdx Explains tenant-wide consent risks and privileged-change review practices.
src/​frontend/​src/​content/​docs/​integrations/​security/​microsoft-entra-id/​client-credentials.mdx Clarifies developer certificate risks and recommends dedicated certificate vaults.

Review effort: Balanced

@eerhardt
Eric Erhardt (eerhardt) enabled auto-merge (squash) November 11, 2026 03:08
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #2111. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #2111 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@eerhardt
Eric Erhardt (eerhardt) merged commit aa493db into release/17.0 Nov 11, 2026
16 checks passed
@eerhardt
Eric Erhardt (eerhardt) deleted the eerhardt/entra-security-docs branch November 11, 2026 03:57
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.

2 participants