-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 Brandit.com as DNS provider #1890
Conversation
Hello, in order for a PR adding a DNS provider to be accepted, you have to:
make test
make test
make generate-dns
rm -rf .lego
./lego -m [email protected] --dns YOUR_PROVIDER_NAME -d *.example.com -d example.com -s https://acme-staging-v02.api.letsencrypt.org/directory run Note the wildcard domain is important.
make checks
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello,
the 48 commits can be squashed because they don't help with the review.
can you also rebase your PR on the HEAD of the branch master
?
Note: avoid using a fork from an organization because a maintainer (or our automation) cannot modify the PR.
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: Ludovic Fernandez <[email protected]>
there is still this one #1890 (comment) |
Co-authored-by: Ludovic Fernandez <[email protected]>
Question, The default timeout is usually not enough. Should i do anything about that like leave a message or set a different default? |
You can set the best default for the provider. |
I think this is everything. Thanks for taking the time to do such a thorough review. |
Co-authored-by: Ludovic Fernandez <[email protected]>
can you run the |
can you also give me the "new" output of the following command:
|
$ lego -m [email protected] --dns brandit -d "*.example.xxxxxxx.com" -d example.xxxxxxx.com -s https://acme-staging-v02.api.letsencrypt.org/directory run
2023/04/13 18:29:51 Please review the TOS at https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf
Do you accept the TOS? Y/n
Y
2023/04/13 18:29:53 [INFO] acme: Registering account for [email protected]
!!!! HEADS UP !!!!
Your account credentials have been saved in your Let's Encrypt
configuration directory at "/mnt/e/dev/src/github.com/xxxxxxx/lego/.lego/accounts".
You should make a secure backup of this folder now. This
configuration directory will also contain certificates and
private keys obtained from Let's Encrypt so making regular
backups of this folder is ideal.
2023/04/13 18:29:53 [INFO] [*.example.xxxxxxx.com, example.xxxxxxx.com] acme: Obtaining bundled SAN certificate
2023/04/13 18:29:54 [INFO] [*.example.xxxxxxx.com] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/6106562984
2023/04/13 18:29:54 [INFO] [example.xxxxxxx.com] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/6106562994
2023/04/13 18:29:54 [INFO] [*.example.xxxxxxx.com] acme: use dns-01 solver
2023/04/13 18:29:54 [INFO] [example.xxxxxxx.com] acme: Could not find solver for: tls-alpn-01
2023/04/13 18:29:54 [INFO] [example.xxxxxxx.com] acme: Could not find solver for: http-01
2023/04/13 18:29:54 [INFO] [example.xxxxxxx.com] acme: use dns-01 solver
2023/04/13 18:29:54 [INFO] [*.example.xxxxxxx.com] acme: Preparing to solve DNS-01
2023/04/13 18:30:23 [INFO] [example.xxxxxxx.com] acme: Preparing to solve DNS-01
2023/04/13 18:30:34 [INFO] [*.example.xxxxxxx.com] acme: Trying to solve DNS-01
2023/04/13 18:30:34 [INFO] [*.example.xxxxxxx.com] acme: Checking DNS record propagation using [172.25.96.1:53]
2023/04/13 18:30:36 [INFO] Wait for propagation [timeout: 30m0s, interval: 2s]
2023/04/13 18:30:36 [INFO] [*.example.xxxxxxx.com] acme: Waiting for DNS record propagation.
2023/04/13 18:30:38 [INFO] [*.example.xxxxxxx.com] acme: Waiting for DNS record propagation.
...
2023/04/13 18:35:33 [INFO] [*.example.xxxxxxx.com] acme: Waiting for DNS record propagation.
2023/04/13 18:35:35 [INFO] [*.example.xxxxxxx.com] acme: Waiting for DNS record propagation.
2023/04/13 18:35:42 [INFO] [*.example.xxxxxxx.com] The server validated our request
2023/04/13 18:35:42 [INFO] [example.xxxxxxx.com] acme: Trying to solve DNS-01
2023/04/13 18:35:42 [INFO] [example.xxxxxxx.com] acme: Checking DNS record propagation using [172.25.96.1:53]
2023/04/13 18:35:44 [INFO] Wait for propagation [timeout: 30m0s, interval: 2s]
2023/04/13 18:35:44 [INFO] [example.xxxxxxx.com] The server validated our request
2023/04/13 18:35:44 [INFO] [*.example.xxxxxxx.com] acme: Cleaning DNS-01 challenge
2023/04/13 18:35:55 [INFO] [example.xxxxxxx.com] acme: Cleaning DNS-01 challenge
2023/04/13 18:36:05 [INFO] [*.example.xxxxxxx.com, example.xxxxxxx.com] acme: Validations succeeded; requesting certificates
2023/04/13 18:36:05 [INFO] Wait for certificate [timeout: 30s, interval: 500ms]
2023/04/13 18:36:06 [INFO] [*.example.xxxxxxx.com] Server responded with a certificate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What code inspection tool do you use? I normally just use goland and it doesn't complain about double lines. I installed
|
You have to run the linter at the root of the project. FYI, I'm also a core maintainer of golangci-lint 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds support for the Brandit DNS provider.
Fixes #1876
The company I work for is a customer of Brandit and are willing to set aside resources to maintain this provider
Output of command, example.com was replaced with example..com and parts are masked