Repository navigation
Updated to cache pfx dev certs on Windows and Linux to avoid binary level changes between runs - #15768
Conversation
…hanges in persistent container usage
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15768Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15768" |
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent persistent container config hash churn by caching exported ASP.NET Core dev certificate PFX bytes on Windows and Linux (similar to existing macOS behavior), so repeated runs produce stable PFX binaries.
Changes:
- Renames the dev-cert cache directory constant to a cross-platform name and reuses it for all OSes.
- Expands PFX caching from macOS-only to all OSes for ASP.NET Core development certificates.
- Updates/adjusts in-code comments around caching behavior.
Co-authored-by: Copilot <[email protected]>
|
🎬 CLI E2E Test Recordings — 55 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #23870893793 |
|
/backport to release/13.2 |
|
Started backporting to |
|
No documentation PR is needed for this change. This is an internal bug fix that extends PFX dev certificate caching to Windows and Linux (previously macOS-only) to prevent persistent container config hash invalidation. There are no public API changes, no new configuration options, and no user-visible behavioral changes — the fix simply makes existing behavior more consistent across platforms. Existing docs already cover dev cert and persistent container usage adequately.
|
Description
We cache dev cert PFX output on Mac (to avoid repeated keychain access prompts), but not Windows and Linux. This unfortunately can result in the PFX binary representation changing between runs which can invalidate the persistent container config hash.
This change adds PFX caching on Windows and Linux to avoid invalidating persistent containers that reference PFX format dev certs.
Fixes #15626
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: