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

Add endpoint to answer ACME DNS-01 challenges. #163

Merged
merged 1 commit into from
May 2, 2020
Merged

Conversation

kentonv
Copy link
Member

@kentonv kentonv commented Mar 22, 2020

The Let's Encrypt API will be invoked from the user's own Sandstorm server. The Sandcats.io server only needs to provide a way to publish TXT records to pass ACME challenges.

@kentonv
Copy link
Member Author

kentonv commented Mar 22, 2020

@paulproteus Did I miss anything?

@@ -36,7 +36,7 @@ createDomainIfNeeded = function(mysqlQuery) {
}
}

deleteRecordIfExists = function (wrappedQuery, domain, bareHost) {
deleteRecordIfExists = function (wrappedQuery, domain, bareHost, type) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Now that I look at it, I guess I didn't need to add the type parameter here, since A records and ACME TXT records go on different hostnames anyway. Oh well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually this is outright wrong, I can't reuse this function. Fixing.

@kentonv
Copy link
Member Author

kentonv commented Mar 29, 2020

Whoops, I misread some docs and thought that ACME challenges required two TXT records, but they actually only require one.

The Let's Encrypt API will be invoked from the user's own Sandstorm server. The Sandcats.io server only needs to provide a way to publish TXT records to pass ACME challenges.
@kentonv
Copy link
Member Author

kentonv commented May 2, 2020

This has been deployed for a while and seems to work. Merging.

@kentonv kentonv merged commit 11d197c into master May 2, 2020
@kentonv kentonv deleted the acme-challenge branch May 2, 2020 19:19
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.

None yet

1 participant