Skip to content

fix: preserve other challenge TXT records during cleanup - #24

Open
phantooom wants to merge 1 commit into
imroc:masterfrom
phantooom:codex/fix-shared-cname-cleanup
Open

phantooom wants to merge 1 commit into
imroc:masterfrom
phantooom:codex/fix-shared-cname-cleanup

Conversation

@phantooom

Copy link
Copy Markdown

When concurrent DNS-01 challenges resolve to the same CNAME target, cleaning up one challenge currently deletes TXT records belonging to the others. The value mismatch only produces a warning before the record is still deleted, causing pending validations to fail with incorrect or missing TXT records.

Skip records whose value differs from the current challenge key, retaining the existing normalized record-name comparison. The regression test exercises the real Tencent Cloud SDK through an in-memory HTTP transport: four challenges present TXT values concurrently at one target, then cleanup and repeated cleanup must preserve the remaining values and an unrelated record name.

Validation:

  • The new regression test fails against unmodified v1.5.3 and passes with this fix.
  • go test ./...
  • go test -race ./...
  • The shared-target regression passes 10 consecutive runs.

This branch has not been deployed

No deployments
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.

1 participant