Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(client): DNS-01 TXT record check #57

Merged
merged 2 commits into from
Feb 25, 2025
Merged

fix(client): DNS-01 TXT record check #57

merged 2 commits into from
Feb 25, 2025

Conversation

lidel
Copy link
Contributor

@lidel lidel commented Feb 17, 2025

This PR implements Wait in p2p-forge/client and does not proceed with ACME if TXT record
is not present and does not include the expected value.

The goal is to lower the number of failed registrations and retries + allows us to remove 5s sleep and usually finish successful registration under 1 second.

  • lowered TTL for DNS-01 TXT record to avoid stale values on retries
  • Wait probing real TXT record's presence and value, with backoff
  • use local DNS resolver in tests
  • include file directive in e2e tests (avoid future regressions if upstream impl. of file plugin starts acting as catch-all)

@lidel lidel requested a review from aschmahmann February 17, 2025 20:22
properly implements `Wait` and does not proceed with ACME if TXT record
is not present and does not include the expected value.

this will lower the numberof failed registrations and retries + allows
us to remove 5s sleep
@lidel lidel force-pushed the acme-dns-01-fixes branch from a689e16 to a3e3ff3 Compare February 17, 2025 20:26
@lidel lidel mentioned this pull request Feb 17, 2025
39 tasks
lidel

This comment was marked as duplicate.

Copy link
Contributor Author

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Merging to include in Kubo 0.34.0-rc1

@lidel lidel merged commit edd8ed2 into main Feb 25, 2025
4 checks passed
@lidel lidel deleted the acme-dns-01-fixes branch February 25, 2025 14:16
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