-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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: Disable bash tracing #147498
nixos/acme: Disable bash tracing #147498
Conversation
Honestly I'm not too keen on disabling this. When it was introduced there was quite some discussion about it (see here for some of that). The main reason it is there is that ACME failures tend to be really hard to reproduce, and having the script's logs has always been really helpful in debugging. With the module working reliably for quite some time now, I can understand that the value of having it enabled is probably being outweighed by the log spam. I'm still undecided though, I'd be keen to hear what other people think (@NixOS/acme & co). |
It's probably easier to opt in than to opt out because one can just do:
This is not possible the other way around |
Ok well for a middle ground, how do you feel about adding |
5013663
to
fb63dd4
Compare
I hope this is close to what you had in mind |
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.
Yeah this looks good! Lets see if someone can merge it so I can rebase my PR for acme
nixos/modules/security/acme.nix
Outdated
@@ -616,6 +617,8 @@ in { | |||
options = { | |||
security.acme = { | |||
|
|||
enableDebugLogs = mkEnableOption "debug logging in the acme script" // { default = true; }; |
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.
This works yeah? I'm always adding brackets in an abundance of caution
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.
Yeah I've been doing this for years now ;)
@m1cr0man Do you want me to remove the backport label or are you fine with backporting this change? |
Actually.. I hate to be indecisive like this but maybe this is better as an option under security.acme.certs? In your PR description you point out the difficulty debugging if theres many acme clients. If its under the submodule options, that can be solved here too :) |
This is horrible if you want to debug failures that happened during system switches but your 30-ish acme clients spam the log with the same messages over and over again.
fb63dd4
to
e37aab2
Compare
Looks good now! |
@GrahamcOfBorg test acme |
Successfully created backport PR #149371 for |
Motivation for this change
This is horrible if you want to debug failures that happened during
system switches but your 30-ish acme clients spam the log with the same
messages over and over again.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes