Subdomain and cert manager compatibility#42
Merged
Buxdehuda merged 5 commits intoJun 17, 2025
Merged
Conversation
Owner
|
Hi, can you please remove the extra indentation? I'm getting a merge conflict right now |
added 2 commits
June 17, 2025 18:26
# Conflicts: # certbotstratoapi.py
Contributor
Author
|
Hey how, I resolved all merge conflicts and removed the indentations. Sorry, for that! In addition I rewrite the last regex with BeautifulSoup 😉 |
Owner
|
Great, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
During the integration into cert-manager-webhook-strato
I struggled with presenting ACME-challenges for subdomains.
Issue
In the current version I couldn't create a record for a domain like
subdomain.example.com.Parameter set:
Test cases
1. ✅ Add record for
example.comResult
_acme-challenge.example.comwas created.2. 🚫 Add record for
subdomain.example.comResult
Log
3. 🚫 Add record for
next.subdomain.example.comResult
Log
4. 🚫 Add record for
_acme-challenge.next.subdomain.example.comLog
Analysis
Domain data
By requesting the record the method
get_txt_record()could not find anyone.certbotstratoapi.py:194
The request asks for records page of the
vhost = next.subdomain.example.com.=> This will return the general overview page, because the
vhostdoes not exist.✏️ Modification
Main change
Change
vhostfromself.domain_nametoself.second_level_domain_namein:get_txt_records()push_txt_records()Cert-manager adjustments
CERTBOT_DOMAINto support multiple variants_acme-challenge.subdomain.example.comexample.com.Final tests
example.comsubdomain.example.comnext.subdomain.example.com_acme-challenge.next.subdomain.example.com_acme-challenge.next.subdomain.example.com.Both hooks
auth-hookandcleanup-hookworking now as expected! 🥳