-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
acme: share accounts between certificates #85185
Conversation
There are strict rate limits on account creation for Let's Encrypt certificates. It is important to reuse credentails when possible.
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, thanks!
@GrahamcOfBorg build nixosTests.acme
Guessing you mean @GrahamcOfBorg test acme |
(cc @grahamc; not sure whether I was just too impatient or whether ofborg failed to recognize my command until I posted it in a non-review comment?) |
@emilazy I fully agree with that. I'll keep the PR as-is then, and support both scenarios. 🙂 |
Not sure what's up with either of the tests; the AArch64 test isn't running because I'm not a trusted user, the x86_64 test is failing cryptically. We know the ACME tests are flaky, so let's hope it's just nondeterminism and spin the wheel again... @GrahamcOfBorg test acme |
@GrahamcOfBorg test acme |
backport: [detached HEAD ecfd73d] acme: share accounts between certificates |
Fixes #85152
Motivation for this change
There are strict rate limits on account creation for Let's Encrypt certificates. It is important to reuse credentials when possible.
This is a regression from #84781. Having tested on my own system which had this change committed, this new symlink logic will not affect already updated hosts and not trigger another account refresh.
I am tempted to check if
/var/lib/acme/.lego/${cert}
is a directory and remove it, thus undoing the effect of #85152 but I'm uneasy about deleting folders automatically :P Let me know what you think.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)