diff options
author | Lucas Savva <lucas@m1cr0man.com> | 2022-09-19 01:07:29 +0100 |
---|---|---|
committer | Winter <winter@winter.cafe> | 2022-10-06 10:30:24 -0400 |
commit | 657ecbca0ece81c5e2a411d7044a3d837f520408 (patch) | |
tree | c9fb808af8caff284c5f686917af5a859b5f12c8 /nixos/tests/common | |
parent | 39796cad46f1d0b0a14e84a680ababf5ab1ff86d (diff) |
nixos/acme: Make account creds check more robust
Fixes #190493 Check if an actual key file exists. This does not completely cover the work accountHash does to ensure that a new account is registered when account related options are changed.
Diffstat (limited to 'nixos/tests/common')
-rw-r--r-- | nixos/tests/common/acme/client/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/common/acme/client/default.nix b/nixos/tests/common/acme/client/default.nix index 503e610d1ac9e..9a37e4f2fd35e 100644 --- a/nixos/tests/common/acme/client/default.nix +++ b/nixos/tests/common/acme/client/default.nix @@ -9,6 +9,11 @@ in { defaults = { server = "https://${caDomain}/dir"; email = "hostmaster@example.test"; + # Avoid a random 0-8 minute sleep when testing renewals. + # We are not using LE servers in testing so this is not + # going to impact their load. + # See https://github.com/go-acme/lego/issues/1656 + extraLegoRenewFlags = ["-no-random-sleep"]; }; }; |