-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
nixos/acme: Custom ACME endpoint #72007
Conversation
30aae66
to
81fc131
Compare
Could somebody run I don't have the appropriate credentials to do that yet (NixOS/ofborg#406). |
Might be blocked by #71291 (comment) [EDIT] Fixed |
Can we refactor the |
@GrahamcOfBorg test acme |
81fc131
to
6ee6f3d
Compare
Add a new option permitting to point certbot to an ACME Directory Resource URI other than Let's Encrypt production/staging one. In the meantime, we are deprecating the now useless Let's Encrypt production flag.
The recent custom endpoint addition allows us to directly point certbot to the custom Pebble directory endpoint. Thanks to that, we can ditch the Pebble patch we were using so far; making this test maintenance easier.
6ee6f3d
to
781f0cf
Compare
Yup, good idea. Just updated the PR. It now deprecates the production option. |
@GrahamcOfBorg test acme [Edit] flaky test? [Edit2] yes, flaky test. |
@GrahamcOfBorg test acme |
…-uri nixos/acme: Custom ACME endpoint (cherry picked from commit 992035c)
I don't think it was an improvement to the module to remove the option entirely. You can't remember the server URL and when testing you often want to switch to the staging server to not trigger the lets encrypt rate limit. |
Motivation for this change
We currently do not allow users to setup a custom ACME endpoint in
config.security.acme
and hardcode the Let's Encrypt production/staging endpoints.Let's encrypt is not the only entity issuing certificates using the ACME protocol anymore [1], this PR allow users to choose an alternative issuer both on a per-certificate and global scope.
This PR also has the nice side effect of allowing us to drop the
pebble
patch we use in the associated nixos test by usingpebble
's custom directory endpoint instead of the boulder one.PR idea was suggested by a
pebble
maintainer.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @flokli @aszlig