NixOS ACME / LetsEncrypt | 105 Members | |
| Another day, another cert renewal | 45 Servers |
| Sender | Message | Time |
|---|---|---|
| 31 Jan 2022 | ||
| There is no point in actively pulling in network.target. see https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ | 10:05:42 | |
| But we can probably remove the network.target altogether if network-online.target is used | 10:06:30 | |
| 2 Mar 2022 | ||
| I’ve upgraded NixOS to a recent commit from unstable and ACME is not working anymore. All I see in the logs is:
over and over again. (I replaced my actual domain with example.com) Does anyone have any pointers as to how I could debug this? | 01:01:25 | |
| start looking at the systemd unit | 09:33:15 | |
| look for what paths are actually missing | 09:33:26 | |
| 4 Mar 2022 | ||
| m1cr0man: so do you remember #153942? i didn't notice it at the time but the issue that it solved may be able to be made redundant. https://github.com/NixOS/nixpkgs/commit/81a67a3353b09c0abade5f2d17e91d23873fc7fb added SupplementalGroups=acme if ACME certs are used to the Caddy service, which gives the Caddy service access to the certs mo matter what group the Caddy service user is a part of. (In fact, I think my assertions made it so you'd have to add the acme group to the caddy user, even if it would work fine without it due to SupplementalGroups, whoops.) I think we can make this change across the board, and (potentially) remove the assertions? Let me know what you think. | 19:34:56 | |
| 5 Mar 2022 | ||
| Heyo 👋 Sorry got distracted and forgot to reply earlier. Heading off but I'll read any replies tomorrow. Yeah this is interesting. SupplementalGroups certainly would raise false alarms with the assertion the way it is. When you say make the change across the board, what are you thinking of doing? I'm also thinking that depending on your plans here that assuming the cert's group is acme wouldn't be sufficient and you'd want to rely on | 00:43:44 | |
Migrating all web servers that we support to use it instead of the assertions, ideally. | 02:48:20 | |
| Yeah honestly I think that would be a good idea :) There will be some things to note however. Firstly, we have weak values for group set on a cert used by nginx/httpd (example: Secondly there was in the past some concern raised around granting acme group to other services because it would grant that service access to more certs than you may want. You might get some backlash in that regard. In reality, this is hard to operate around and for wildcard certs you're likely to only have 1 cert shared across multiple services anyway. Lastly there was still some cases where people/services wanted root as the owner and before the | 14:45:35 | |
| Point 2 is really why your assertion was acceptable in the first place. We're letting users know that the permissions are incorrect and they have to decide how to solve it, rather than us just blanket-granting access to certs which may or may not be what the user expects | 14:46:52 | |
| Riiight, completely forgot about that. I think the best thing to do here is to revisit how the Caddy module operates in this regard -- so removing the blanket "acme" group addition. (Since I'm not sure the best way to do this, would it be appropriate to open an issue to discuss it with the module maintainer?) | 17:36:06 | |
| Yeah that's probably best, and so that it's on record on Github too | 17:44:17 | |
In reply to @m1cr0man:m1cr0man.comWould it be appropriate to label the issue as a bug? | 19:34:00 | |
| (don't wanna open an issue with no label idk) | 19:34:07 | |
| i think so | 19:34:22 | |
| hah uh idk what label to use honestly 😅 I think it's more just discussion atm, nothing is wrong per se | 19:34:33 | |
| * hah uh idk what label to use honestly 😅 I think it's more just discussion/suggestion atm, nothing is wrong per se | 19:34:40 | |
| true | 19:34:43 | |
| yeah ill do no label | 19:34:53 | |
m1cr0man: am i just blind, or is the group option for not defined in certOpts? | 19:51:09 | |
* m1cr0man: am i just blind, or is the group option not defined in certOpts? | 19:51:14 | |
| it's defined in the inheritableModule thing | 19:51:23 | |
| oh | 19:51:53 | |
i feel like this description is inaccurate? | 19:52:02 | |
| oh nevermind | 19:52:24 | |
| guess its not | 19:52:27 | |
hm | 19:52:57 | |
| yeah that's 100% necessary | 19:53:11 | |
| ran into it myself and covered by the test suite | 19:53:19 | |
| so is that if the certificate doest have to be renewed, but the group changed? | 19:53:33 | |