Skip to content

Conversation

@danegsta
Copy link
Member

@danegsta danegsta commented Nov 4, 2025

Description

Added test cases and fixed some bugs related to overriding the default certificate paths for containers.

@danegsta danegsta requested a review from mitchdenny as a code owner November 4, 2025 03:15
@danegsta danegsta requested review from Copilot and karolz-ms November 4, 2025 03:15
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

🚀 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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12654

Or

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

@danegsta danegsta added this to the 13.0 milestone Nov 4, 2025
@danegsta danegsta added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Nov 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR extends the container certificate trust configuration testing to cover multiple certificate trust scopes (Append, Override, None) and custom certificate path configurations. The changes enhance test coverage for certificate authority trust scenarios and fix a bug in how certificate bundles are created for multiple paths in the same directory.

Key changes:

  • Expanded test cases to cover CertificateTrustScope enum values (Append, Override, None) with custom certificate path overrides
  • Fixed a bug in DcpExecutor.cs where multiple certificate bundle paths in the same directory were creating duplicate file system entries instead of grouping them

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/Aspire.Hosting.Tests/DistributedApplicationTests.cs Expanded test coverage to verify certificate trust behavior across all three trust scopes (Append, Override, None) and with custom certificate paths
src/Aspire.Hosting/Dcp/DcpExecutor.cs Fixed null-coalescing operator order and grouped certificate bundle paths by directory to avoid duplicate file system entries

@danegsta danegsta merged commit 80fabe3 into dotnet:main Nov 4, 2025
582 of 585 checks passed
@danegsta
Copy link
Member Author

danegsta commented Nov 4, 2025

/backport to release/13.0

@dotnet-policy-service dotnet-policy-service bot modified the milestones: 13.0, 13.1 Nov 4, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Started backporting to release/13.0: https://github.com/dotnet/aspire/actions/runs/19057488155

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

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants