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

Adding nsupdate DNS challenge #169

Merged
merged 7 commits into from
Feb 14, 2025
Merged

Adding nsupdate DNS challenge #169

merged 7 commits into from
Feb 14, 2025

Conversation

diLLec
Copy link
Contributor

@diLLec diLLec commented Feb 11, 2025

Hey all,

please find attached our implementation for nsupdate to include into the module. I hope that my change covers all the documentation needs that you have here - please tell me if there is anything missing. Anyhow, please give me some feedback on my changes. There also is a test playbook which imports the task out of the role which I can provide if you need it.

Greetings,
Michael

@diLLec diLLec requested a review from a team as a code owner February 11, 2025 14:48
Copy link
Collaborator

@schurzi schurzi left a comment

Choose a reason for hiding this comment

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

nice addition, thank you!
Let's first get the tests green and make ansible-lint happy. ;)

roles/acme/README.md Outdated Show resolved Hide resolved
connection: local
delegate_to: localhost
vars:
relevant_domains: "{{ ([acme_domain.zone] + acme_domain.subject_alt_name | default([])) | ansible.builtin.unique }}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this needs to change. acme_domain.zone will not be in the generated csr and will not be considered as a valid domain for the certificate. Also this is a difference to the other challenge providers and I'd like to keep the basic logic the same.

What need do you see for doing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Allright, I've changed acme_domain.zone into acme_domain.certificate_name. As one could specify a wildcard here, the *. needs to be replaced in the record (see below). This is also the way how it's done in the other challenge handlers (like autodns.yml).

@diLLec diLLec force-pushed the main branch 2 times, most recently from a55b370 to bb49e60 Compare February 14, 2025 10:11
Comment on lines +23 to +25
loop_control:
label: "zone={{ domain }} rr={{ record_name }} (TXT) {{ record_data }}"
loop_var: "domain"
Copy link
Collaborator

Choose a reason for hiding this comment

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

praise: great idea, this makes the log more readable!

@schurzi schurzi merged commit ae971d0 into telekom-mms:main Feb 14, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants