Skip to content

Rename new experimental KeyPair API to WithServerAuthenticationCertificate#13104

Merged
danegsta merged 1 commit into
microsoft:mainfrom
danegsta:danegsta/certApiName
Nov 22, 2025
Merged

Rename new experimental KeyPair API to WithServerAuthenticationCertificate#13104
danegsta merged 1 commit into
microsoft:mainfrom
danegsta:danegsta/certApiName

Conversation

@danegsta

Copy link
Copy Markdown
Member

Renames the new CertificateKeyPair APIs for endpoint TLS configuration to WithServerAuthenticationCertificate to make it clear the API is specifically intended to manage server auth certificates.

Fixes #13037

Copilot AI review requested due to automatic review settings November 21, 2025 22:25
@danegsta danegsta requested a review from mitchdenny as a code owner November 21, 2025 22:25
@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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13104

Or

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

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.

Pull request overview

This pull request renames the experimental CertificateKeyPair API to WithServerAuthenticationCertificate to clarify that this API is specifically designed for managing server authentication certificates used in TLS endpoint configuration. The renaming affects method names, annotation classes, and all related documentation.

Key Changes

  • Renamed all *CertificateKeyPair* methods to *ServerAuthenticationCertificate*
  • Updated annotation classes from CertificateKeyPairAnnotation to ServerAuthenticationCertificateAnnotation
  • Updated callback annotation classes to match the new naming convention
  • Modified all usages across tests, integrations, and playground examples

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/TestingAppHost1/TestingAppHost1.AppHost/Program.cs Updated test usage from WithoutCertificateKeyPair() to WithoutServerAuthenticationCertificate()
tests/Aspire.Hosting.Tests/DistributedApplicationTests.cs Updated test method calls to use new API names
tests/Aspire.Hosting.Redis.Tests/AddRedisTests.cs Updated all test methods and annotation references to new naming
src/Aspire.Hosting/ResourceBuilderExtensions.cs Renamed public API methods and updated XML documentation
src/Aspire.Hosting/ApplicationModel/ServerAuthenticationCertificateConfigurationCallbackAnnotaion.cs Renamed classes and updated XML documentation examples
src/Aspire.Hosting/ApplicationModel/ServerAuthenticationCertificateAnnotation.cs Renamed annotation class
src/Aspire.Hosting/ApplicationModel/ResourceExtensions.cs Updated internal annotation type references
src/Aspire.Hosting.Yarp/YarpResourceExtensions.cs Updated annotation references and method calls
src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs Updated method calls and annotation type checks
src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs Updated method calls and annotation type checks
src/Aspire.Hosting.Keycloak/KeycloakResourceBuilderExtensions.cs Updated method calls and annotation type checks
playground/AspireWithNode/AspireWithNode.AppHost/AppHost.cs Updated playground example to use new API
playground/publishers/aspire-output/docker-compose.yaml New generated file (unrelated to this PR)
playground/AspireWithNode/NodeFrontend/pnpm-lock.yaml New generated lock file (unrelated to this PR)

@danegsta danegsta merged commit d174e9f into microsoft:main Nov 22, 2025
301 of 302 checks passed
@dotnet-policy-service dotnet-policy-service Bot added this to the 13.1 milestone Nov 22, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider renaming new CertificateKeyPair APIs to differentiate from other potential certificate usage

3 participants