Skip to content

Conversation

jfversluis
Copy link
Member

I don't think this method is super useful and can only cause security risks. Let's initially remove it and if people do ask for it we'll see about it then.

Removed DisableDevCertSecurityCheck method and its documentation.
@jfversluis jfversluis added this to the .NET 10.0 GA milestone Oct 10, 2025
@Copilot Copilot AI review requested due to automatic review settings October 10, 2025 11:51
@jfversluis jfversluis added area-templates Project templates, Item Templates for Blazor and MAUI area-aspire Work that has to do with the Aspire integration labels Oct 10, 2025
Copy link
Contributor

@Copilot 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 removes the DisableDevCertSecurityCheck method from the MAUI Aspire Service Defaults template to eliminate potential security risks. The method was designed to bypass certificate validation for development certificates but could introduce security vulnerabilities if used improperly.

  • Removes the DisableDevCertSecurityCheck extension method entirely
  • Eliminates associated XML documentation and conditional compilation attributes
  • Reduces the template's attack surface by removing certificate validation bypass functionality

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

Labels

area-aspire Work that has to do with the Aspire integration area-templates Project templates, Item Templates for Blazor and MAUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant