mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 23:23:32 +01:00
[PR #847] [CLOSED] Fix hook based challenges if the same domain appears twice or more #945
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/847
Author: @jcmoraisjr
Created: 10/17/2021
Status: ❌ Closed
Base:
master← Head:jm-fix-dns-challenge📝 Commits (1)
d2780f7fix hook based challenges if the same domain appears twice or more📊 Changes
1 file changed (+7 additions, -11 deletions)
View changed files
📝
dehydrated(+7 -11)📄 Description
When two or more domains are present in the challenge, all the hook calls happen before asking the acme server to verify the challenge. This is breaking configurations that need to verify the same domain more than once, e.g. dns based challenges with
example.com. and*.example.com. In this case,example.comwill be verified twice, maybe with distinct tokens, leading to the second configuration overwriting the first one before the challenge verification.This update moves the hook call into the while-loop that asks the acme server to verify the challenge, so a second configuration will only happen after the first one has being verified.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.