Skip to content

Conversation

@bhillkeyfactor
Copy link
Collaborator

Fixed bug with dns

@spbsoluble spbsoluble requested a review from Copilot November 11, 2025 14:53
Copilot finished reviewing on behalf of spbsoluble November 11, 2025 14:56
Copy link

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 fixes a DNS-related bug in the ACME CA Plugin by improving how the Common Name (CN) is extracted from X.509 subject strings. Previously, simple string replacement could fail when subjects contained additional fields beyond the domain, causing issues during ACME DNS validation.

  • Replaced string replacement logic with regex-based extraction in ExtractDomainFromSubject
  • Added proper error handling for subjects without a valid CN field
  • Updated CHANGELOG for version 1.0.2

Reviewed Changes

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

File Description
CHANGELOG.md Documents the DNS bug fix in version 1.0.2 release notes
AcmeCaPlugin/AcmeCaPlugin.cs Implements regex-based CN extraction to properly handle multi-field X.509 subjects

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# v1.0.2
* Fix DNS issue when fields outside domain are in the subject

# v1.0.1
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

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

Inconsistent markdown formatting: This header has a leading space before the # which breaks markdown formatting. It should be # v1.0.1 without the leading space to match the format of other headers.

Suggested change
# v1.0.1
# v1.0.1

Copilot uses AI. Check for mistakes.
@spbsoluble spbsoluble merged commit 2e903d2 into release-1.0 Nov 17, 2025
36 checks passed
@spbsoluble spbsoluble deleted the dnsbug branch November 17, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants