Skip to content

Add local developer certificate credentials for Entra applications - #21382

Merged
Mitch Denny (mitchdenny) merged 5 commits into
mainfrom
eerhardt-secure-entra-local-credentials
Oct 30, 2026
Merged

Mitch Denny (mitchdenny) merged 5 commits into
mainfrom
eerhardt-secure-entra-local-credentials

Conversation

@eerhardt

@eerhardt Eric Erhardt (eerhardt) commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Description

Aspire-created Entra registrations can sign users in without a client credential, but authorization-code redemption and downstream token acquisition need one. This adds an opt-in local developer certificate credential, avoiding client secrets and never provisioning a private key into Entra.

RunWithLocalDeveloperCertificateCredential() creates a dedicated 48-hour RSA signing certificate per Entra resource in the AppHost-specific Aspire store. A subsequent run reuses it while more than 24 hours remain; otherwise it atomically overwrites the same owner-protected PFX file. Only public DER certificate material is embedded in the run-mode Bicep template; changing it invalidates the deployment checksum. Referencing workloads receive the matching private PFX through a secret parameter using SourceType = Base64Encoded and Base64EncodedValue.

Aspire declares the selected certificate as the registration's entire keyCredentials collection and lets Graph assign the credential ID. Deployment replaces existing keys, including unexpired predecessors; there is no separate Graph read or merge. A newly persisted certificate is retained after a provisioning failure for retry. Existing registrations remain caller-managed, and publish mode neither generates nor emits local credentials.

The method is exported to polyglot AppHosts (runWithLocalDeveloperCertificateCredential in TypeScript and the equivalent in Python, Go, Java, and Rust). It is covered by the polyglot fixtures and by tests that invoke the exported capability.

Certificate generation is extracted from the CLI into src/Shared/CertificateFactory.cs, source-linked by both the CLI HTTPS certificate manager and the Entra integration. The shared factory retains RSA-2048/SHA-256 signing and the existing subject/authority key identifier handling. HTTPS-specific extensions and Entra-specific validity, storage, and renewal remain with their respective callers.

The Entra playground has an opt-in authorization-code/Graph /me scenario (useLocalCertificate, off by default). An MVC controller using Identity.Web's AuthorizeForScopes restarts interactive sign-in for incremental-consent and conditional-access challenges; the default and Node sign-in flows are unchanged.

Fixes #21071

User-facing usage

// Use distinct registration names or Azure:TenantResourceSuffix values for development and production.
var entraWeb = builder.AddEntraIdApplication("entra-web")
    .RunWithLocalDeveloperCertificateCredential()
    .PublishWithFederatedManagedIdentityCredential();

builder.AddProject<Projects.Web>("web").WithReference(entraWeb);
const entraWeb = await builder.addEntraIdApplication("entra-web");
await entraWeb.runWithLocalDeveloperCertificateCredential();
await entraWeb.publishWithFederatedManagedIdentityCredential();

For the playground, keep useExistingApplication = false and set useLocalCertificate = true in playground/EntraId/EntraId.AppHost/AppHost.cs. In run mode, the .NET frontend then uses authorization code flow with PKCE and can call Graph /me after user consent.

Security considerations

  • Development and production must use separate Entra registrations. Different resource groups do not isolate tenant-scoped registrations, and excluding a local credential from publish does not revoke a key previously registered against the same application.
  • Private PFX files live under IAspireStore.BasePath/dev-certs/Entra/<resource-name>.pfx, with owner-only Windows ACLs or Unix permissions. Renewal retains no private-key generations; stable lock files coordinate access and interrupted temporary writes are cleaned up.
  • Base64 is not encryption. The PFX is a secret runtime environment value, accessible to the referenced workload and sufficiently privileged host/container tooling. It is not a deployment parameter, image-build input, certificate mount, or published artifact.
  • Aspire owns the development registration's entire certificate credential collection. Deployments replace unrelated keys and unexpired predecessors; older sessions using a replaced certificate must restart. Use dedicated developer registrations rather than sharing with independently managed certificate credentials.
  • The provisioning identity needs Graph application creation/update permissions: delegated Application.ReadWrite.All, or application Application.ReadWrite.OwnedBy for owned registrations, subject to tenant policy. Workloads do not need Graph application-management permissions.
  • Renewal is checked at AppHost startup, not by a background timer. Restart development sessions before certificate expiry. Formal security review remains outstanding.

Validation

  • Passed 477 tests: dotnet test --project tests\Aspire.Hosting.Azure.EntraId.Tests\Aspire.Hosting.Azure.EntraId.Tests.csproj --no-launch-profile -- --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true".
  • Passed 46 tests, with 7 platform-specific skips, after the latest rebase onto main: dotnet test --project tests\Aspire.Cli.Tests\Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-namespace "Aspire.Cli.Tests.Certificates" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true". Includes shared-factory signing, supplied key identifiers, and HTTPS extension regression coverage.
  • Passed: dotnet build playground\EntraId\EntraId.Web\EntraId.Web.csproj -o artifacts\entra-mvc-web-output -v:q.
  • Passed earlier in this PR (not rerun after the final rebase): Aspire.Hosting.Azure.Tests BicepUtilitiesTests (34 tests), a playground AppHost build into an isolated output directory, and az bicep build of the run-mode template with the pinned Graph extension.

Coverage includes renewal thresholds, isolation, overwrite/recovery, contention/cancellation, Windows ACLs, the single-public-key Bicep shape, renewal-driven checksum changes, secret sensitivity, direct secret resolution without provisioning waits, publish exclusion, polyglot capability export, and loading the private key through Microsoft.Identity.Web and verifying its signature with the published public key.

Certificate rotation/update against Graph was exercised manually by the author. Not yet validated: a generated TypeScript/Python/Go/Java/Rust AppHost run against the new export, the polyglot store location, actual container execution, and non-Windows filesystem behavior. API review and formal security review are pending. Test restore reports existing NU1903 advisories for System.Security.Cryptography.Xml 10.0.10; dependency versions were not changed.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21382

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21382"

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 28, 2026 23:02
@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Oct 28, 2026
@github-actions

This comment has been minimized.

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 suffix lookup can read keys from the wrong Entra registration and overwrite unrelated credentials, while cached provisioning can return certificates Entra no longer trusts.

4 open issues
What changed in this PR

Adds opt-in local certificate credentials for Aspire-created Entra applications, enabling authorization-code redemption and downstream token acquisition without client secrets.

Changes:

  • Adds short-lived certificate storage, renewal, public-key reconciliation, and secret runtime configuration.
  • Adds certificate lifecycle, provisioning, Microsoft.Identity.Web compatibility tests, and publish-exclusion snapshots.
  • Documents security and cleanup requirements and adds an opt-in Graph /me playground scenario.
File Description
tests/​Aspire.Hosting.Azure.EntraId.Tests/​TestServices/​CertificateTestTimeProvider.cs Supplies controllable time for certificate tests.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​TestServices/​CertificateGraphTestServices.cs Adds HTTP, MSAL, and token-credential test helpers.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​LocalDeveloperCertificateTests.RunWithLocalDeveloperCertificateCredential_IsIdempotentAndDoesNotGenerateDuringModelConstruction.verified.bicep Captures public-key provisioning output.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​LocalDeveloperCertificateTests.Publish_DoesNotRegisterCertificateServicesOrPublishCertificateConfiguration.verified.bicep Captures certificate-free publish output.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​LocalDeveloperCertificateTests.Publish_DoesNotRegisterCertificateServicesOrPublishCertificateConfiguration_Environment.verified.txt Captures published environment configuration.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​LocalDeveloperCertificateTests.PublicKeys_PreserveUnrelatedAndUnexpiredKeysAndPruneOnlyOwnedExpiredKeys.verified.json Captures reconciled public-key data.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​MicrosoftIdentityWebConfigurationTests.cs Tests certificate-signed code redemption and cached token acquisition.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​LocalDeveloperCertificateTests.cs Tests storage, renewal, permissions, and credential configuration.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​LocalDeveloperCertificateProvisioningTests.cs Tests public inputs, checksums, and Graph failure handling.
src/​Aspire.Hosting.Azure/​Aspire.Hosting.Azure.csproj Grants internal access to Entra integration and tests.
src/​Aspire.Hosting.Azure.EntraId/​README.md Documents usage, security, renewal, and cleanup.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​MicrosoftGraphApplication.cs Adds Graph key-credential provisioning support.
src/​Aspire.Hosting.Azure.EntraId/​LocalDeveloperCertificateStore.cs Creates, protects, reuses, and replaces local certificates.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdResourceExtensions.cs Adds the opt-in API and existing-registration guards.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdLocalKeyCredentials.cs Reads and reconciles public Graph credentials.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdLocalDeveloperCertificateCredential.cs Emits secret PFX configuration behind a provisioning gate.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdApplicationResource.cs Connects certificate credentials to application provisioning.
src/​Aspire.Hosting.Azure.EntraId/​Aspire.Hosting.Azure.EntraId.csproj Includes the shared directory-permission helper.
playground/​EntraId/​README.md Explains enabling and operating the certificate scenario.
playground/​EntraId/​EntraId.Web/​Program.cs Adds optional authorization-code flow and Graph /me calls.
playground/​EntraId/​EntraId.AppHost/​AppHost.cs Wires the opt-in certificate scenario and Graph permission.

Review effort: Balanced

@github-actions

This comment has been minimized.

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.

🔵 Needs a closer look

Token-cache misses after restart can return HTTP 500, certificate lifetime checks mishandle daylight-saving transitions, and key replacement lacks tenant-backed run-mode provisioning coverage.

4 open issues
1 previously missed issue

In code that hasn't changed since last review

Medium severity Handle missing token cache after restart without returning HTTP 500

playground/​EntraId/​EntraId.Web/​Program.cs:84

After a frontend restart, the in-memory token cache is empty while the user's authentication cookie can remain valid. /me then passes authorization, but GetAccessTokenForUserAsync throws MicrosoftIdentityWebChallengeUserException, returning HTTP 500 in the documented restart/reuse workflow. Handle this exception by issuing an OpenID Connect challenge back to /me with the required scopes and any claims challenge, or reject cookies whose accounts are missing from the token cache.

Review effort: Balanced

@github-actions

This comment has been minimized.

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

Local-time validity checks can unnecessarily replace certificates across daylight-saving transitions, frontend restarts can cause authenticated requests to return HTTP 500, and certificate provisioning and renewal lack run-mode test-tenant verification.

5 open issues
1 previously missed issue

In code that hasn't changed since last review

Medium severity Recover authentication when token cache is lost after restart

playground/​EntraId/​EntraId.Web/​Program.cs:84

After restarting the .NET frontend, its authentication cookie can remain valid while AddInMemoryTokenCaches() has lost the user's account and tokens. /me then throws MicrosoftIdentityWebChallengeUserException and returns HTTP 500 instead of acquiring a Graph token; RequireAuthorization() only checks the cookie and does not recover the token cache. Handle the interaction-required exception by issuing an OIDC challenge, or reject cookies whose accounts are absent from the cache, so the documented restart scenario can recover without a manual sign-out.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

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.

🔵 Needs a closer look

Human assessment is needed because authentication cookies can outlive the in-memory token cache after a restart, causing authorized /me requests to fail with HTTP 500 instead of reauthenticating.

3 open issues
2 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

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.

🔵 Needs a closer look

Human assessment is needed for a restart-related authentication edge case where a valid cookie can outlive cached tokens and cause /me to return HTTP 500.

3 open issues

Review effort: Balanced

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 29, 2026 16:56
@github-actions

This comment has been minimized.

…on conversion

- Compare certificate validity in UTC so a daylight-saving transition cannot make a 48-hour certificate look longer and force replacement.
- Import the stored PFX with the default key set on macOS, which does not support ephemeral PFX imports.
- Reject converting a certificate-configured registration to an existing application before the polyglot adapter assigns any IDs.

Co-authored-by: Copilot App <[email protected]>

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 certificate reuse check subtracts local-time endpoints, so a spring daylight-saving transition can trigger unnecessary certificate replacement and invalidate existing sessions.

3 open issues
3 resolved since last review

Review effort: Balanced

@github-actions

This comment has been minimized.

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.

🔵 Needs a closer look

Human assessment is needed because the builder overrides the documented environment-based store path, affecting where private PFX files are written.

2 open issues
1 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@mitchdenny Mitch Denny (mitchdenny) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the local developer certificate lifecycle, provisioning and runtime configuration, publish isolation, and shared certificate factory changes. No blocking correctness findings.

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

18 / 100 PR test projects · 4 PR jobs, from 28 changed files.

Selected PR test projects (18 / 100)

Aspire.Cli.EndToEnd.Tests, Aspire.Cli.Tests, Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Kusto.Tests, Aspire.Hosting.Azure.Provisioning.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.CodeGeneration.Python.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Aspire.Hosting.Docker.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.Foundry.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests, Infrastructure.Tests

Selected PR jobs (4)

cli-starter-validation, extension-e2e, polyglot, typescript-api-compat


How these were chosen — grouped by what changed

⚠️ 15 of the 18 selected test projects come from a single change — src/Aspire.Hosting.Azure/Aspire.Hosting.Azure.csproj.

🔧 src/Aspire.Hosting.Azure/Aspire.Hosting.Azure.csproj (changed source)
→ 2 directly: Aspire.Hosting.Azure.Tests, Infrastructure.Tests
→ 13 via the project graph

show 13

Aspire.Hosting.Azure.Kubernetes.Tests (2 hops), Aspire.Hosting.Azure.Kusto.Tests (2 hops), Aspire.Hosting.Azure.Provisioning.Tests (2 hops), Aspire.Hosting.Blazor.Tests (3 hops), Aspire.Hosting.CodeGeneration.Python.Tests (2 hops), Aspire.Hosting.CodeGeneration.TypeScript.Tests (2 hops), Aspire.Hosting.Docker.Tests (2 hops), Aspire.Hosting.Dotnet.Tests (3 hops), Aspire.Hosting.Foundry.Tests (2 hops), Aspire.Hosting.Radius.Tests (3 hops), Aspire.Hosting.RemoteHost.Tests (2 hops), Aspire.Hosting.Tests (2 hops), Aspire.Playground.Tests (2 hops)

🔧 src/Aspire.Hosting.Azure.EntraId/Aspire.Hosting.Azure.EntraId.csproj (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdLocalDeveloperCertificateCredential.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdResourceExtensions.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/LocalDeveloperCertificateStore.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphApplication.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphKeyCredential.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

📦 affected project Aspire.Cli
→ 1 test: Aspire.Cli.EndToEnd.Tests

📄 playground/EntraId/EntraId.AppHost/AppHost.cs (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/EntraId/EntraId.Web/GraphController.cs (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/EntraId/EntraId.Web/Program.cs (changed)
→ 1 directly: Aspire.Playground.Tests

🔧 src/Aspire.Cli/Aspire.Cli.csproj (changed source)
→ 1 directly: Infrastructure.Tests

🧪 tests/Aspire.Cli.Tests/Certificates/CertificateFactoryTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/EntraIdPolyglotTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/LocalDeveloperCertificateProvisioningTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/LocalDeveloperCertificateTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/LocalDeveloperCertificateProvisioningTests.Checksum_ReusesCachedCertificateAndChangesWhenANewRunRenewsIt.verified.json (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/LocalDeveloperCertificateTests.Publish_DoesNotRegisterCertificateServicesOrPublishCertificateConfiguration.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/LocalDeveloperCertificateTests.Publish_DoesNotRegisterCertificateServicesOrPublishCertificateConfiguration_Environment.verified.txt (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/LocalDeveloperCertificateTests.RunWithLocalDeveloperCertificateCredential_IsIdempotentAndDoesNotGenerateDuringModelConstruction.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/TestServices/CertificateTestTimeProvider.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

Job reasons

Job Triggered by
cli-starter-validation affected project Aspire.Cli
extension-e2e • src/Aspire.Cli/Aspire.Cli.csproj, src/Aspire.Cli/Certificates/CertificateGeneration/CertificateManager.cs
• affected project Aspire.Cli
polyglot • tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Go/apphost.go, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Java/AppHost.java, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Python/apphost.py, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Rust/apphost.rs, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/TypeScript/apphost.mts
• affected project Aspire.Cli
• affected project Aspire.Hosting.Azure.Provisioning.KeyVault
typescript-api-compat affected project Aspire.Cli

Selection computed for commit 28e3729.

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 README incorrectly documents ASPIRE__STORE__PATH as relocating the private PFX even though the builder overwrites it, so it should instead describe setting builder.Configuration["Aspire:Store:Path"] after CreateBuilder and before Build.

3 open issues

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@mitchdenny
Mitch Denny (mitchdenny) merged commit a76b57a into main Oct 30, 2026
498 of 501 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Oct 30, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1991

Generated by PR Documentation Check · copilot · auto · 30 AIC · ⌖ 1.16 AIC · ⊞ 7.1K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1991 targeting release/17.0.

Added new page integrations/security/entra-id-local-certificate.mdx documenting RunWithLocalDeveloperCertificateCredential. Triggered signals: integration_readme_changed (Aspire.Hosting.Azure.EntraId/README.md), pr_body_has_user_facing_section (User-facing usage), pr_body_has_cli_flag_mention.

Note

This draft PR needs human review before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provision secure local credentials for created Entra confidential-client registrations

3 participants