News for hackers. Stuff that matters.
Re:Uacme: ACMEv2 client written in plain C with minimal depe... by vbezhenar on Sunday August 21, 2022 @01:05PM (#32542131)
Just install docker or k8s and use certbot image.
Re:Uacme: ACMEv2 client written in plain C with minimal depe... by deathanatos on Sunday August 21, 2022 @04:06PM (#32543909)
I know you jest, but if you're in k8s, I'd check out cert-manager (https://cert-manager.io/). It works quite well, and as it integrates w/ k8s, it stores the cert in a Secret where an Ingress picks it up automatically, and it solves the whole multiple-replicas-all-need-the-cert problem that I have w/ certbot.

(I agree, while certbot works, it's a bit of a usability nightmare.)

Re:Uacme: ACMEv2 client written in plain C with minimal depe... by yrro on Monday August 22, 2022 @07:45AM (#32550091)
Wish it had a way to kick off a pod after a certificate is issued, that way I could automate applying the issued certificates to the devices where they'll be used.

(Yeah I currently do this with a cron job so it's not _so_ bad)...

Re:Uacme: ACMEv2 client written in plain C with minimal depe... by deathanatos on Monday August 22, 2022 @02:57PM (#32555653)
Yes. I would appreciate such a feature, too. For Ingresses, it doesn't matter (as the controller is smart & picks it up automatically) but we have a database whose cert requires a rolling restart, and yeah, it'd be good to have a way to trigger that.

(We get around this, normally, by having regular reboots of the nodes for system updates. So no pod lives long enough for a replacement cert to not get picked up in time, usually. In the off case reboots don't happen, we have alerting.)

Re:Uacme: ACMEv2 client written in plain C with minimal depe... by zdw on Sunday August 21, 2022 @02:45PM (#32543183)
And have docker insert firewall rules in ways you didn't expect on a production server? Sounds fun.

The solution is frequently less software, not more.

Re:Uacme: ACMEv2 client written in plain C with minimal depe... by vbezhenar on Sunday August 21, 2022 @03:43PM (#32543694)
Well, podman then? I think it's pretty much user-space and does not tinker with system settings.
Re:Uacme: ACMEv2 client written in plain C with minimal depe... by jabbany on Sunday August 21, 2022 @01:31PM (#32542382)
The thread above has mentioned a very real problem with snap running on OpenVZ. It requires either squashfs as a kernel module or FUSE+squashfuse. Many OpenVZ hosts will not provide either and docker/k8s is obviously out if you are already operating inside a container...

Like, squashfs is great and all and packaged app images are an acceptable way of delivering desktop apps... but there's so much lossage here when certbot indirectly requires both just for an install.

(I ended up going with acme.sh instead.)

Re:Uacme: ACMEv2 client written in plain C with minimal depe... by yakubin on Sunday August 21, 2022 @01:34PM (#32542415)
I think vbezhenar was just joking.
Re:Uacme: ACMEv2 client written in plain C with minimal depe... by jabbany on Sunday August 21, 2022 @01:44PM (#32542522)
Frankly at this point I'd happily accept it if certbot required docker or k8s over snap.

At least then I know I'll have to run it in a container (and give up then) instead of waste hours figuring out why I get a snap error message when I try to run/install certbot before finally coming to the conclusion it is impossible.

Re:Uacme: ACMEv2 client written in plain C with minimal depe... by goodpoint on Sunday August 21, 2022 @03:50PM (#32543754)
Poe's law detected.