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

feat: Implement authoritative DNS check for acme challenge #154

Merged
4 commits merged into from Feb 8, 2023
Merged

feat: Implement authoritative DNS check for acme challenge #154

4 commits merged into from Feb 8, 2023

Conversation

ghost
Copy link

@ghost ghost commented Feb 7, 2023

Closes #20

@ghost ghost requested a review from humphd February 7, 2023 22:19
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

This looks pretty good. A few questions and small things to fix.

Another question I have in general: there's a lot of places this code can/will throw. Are we going to leave-out exception handling for most internal calls, and leave it to the caller to deal with? Is there anything in this code you want to log (debug logs) or errors we should be surfacing with more meaningful error messages?

app/lib/lets-encrypt.server.ts Show resolved Hide resolved
app/lib/lets-encrypt.server.ts Outdated Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Feb 8, 2023

This looks pretty good. A few questions and small things to fix.

Another question I have in general: there's a lot of places this code can/will throw. Are we going to leave-out exception handling for most internal calls, and leave it to the caller to deal with? Is there anything in this code you want to log (debug logs) or errors we should be surfacing with more meaningful error messages?

If anything goes wrong, we do want this to fail causing the queue job to restart, and the exceptions contain meaningful error messages that can be caught and re-thrown by the logic of the queue worker.

To help with maintainability, I'm trying to limit the scope of this class, to only work with let's encrypt, and have no knowledge at all about SQL or the queue system.

At the moment I don't see the need to add additional debug logging, but if you think there are places that we would benefit on keeping an extra eye on, I'd be happy to add them (error handlig and logging should still be only happening in the queue worker code)

@ghost ghost requested a review from humphd February 8, 2023 14:38
@humphd
Copy link
Contributor

humphd commented Feb 8, 2023

At the moment I don't see the need to add additional debug logging, but if you think there are places that we would benefit on keeping an extra eye on, I'd be happy to add them (error handlig and logging should still be only happening in the queue worker code)

OK, let's continue with this approach, and keep an eye on things as we add tests. Layering in logging later is often much harder.

app/lib/lets-encrypt.server.ts Outdated Show resolved Hide resolved
app/lib/lets-encrypt.server.ts Outdated Show resolved Hide resolved
@ghost ghost merged commit 543284b into DevelopingSpace:main Feb 8, 2023
@ghost ghost deleted the issue-20 branch February 10, 2023 16:07
This pull request was closed.
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.

Implement code that verifies a challenge
3 participants