Page MenuHomeDevCentral

Deploy Certbot everywhere
ClosedPublic

Authored by dereckson on Dec 16 2023, 01:01.
Tags
None
Referenced Files
F3765796: D3248.id8345.diff
Fri, Nov 22, 14:21
F3765749: D3248.id8711.diff
Fri, Nov 22, 14:04
Unknown Object (File)
Thu, Nov 21, 02:58
Unknown Object (File)
Tue, Nov 19, 06:53
Unknown Object (File)
Sat, Nov 16, 00:09
Unknown Object (File)
Sat, Nov 16, 00:09
Unknown Object (File)
Fri, Nov 15, 13:12
Unknown Object (File)
Fri, Nov 15, 12:55
Subscribers
None

Details

Summary

Currently, certbot was deployed:

  • as a system package on webserver-core
  • as a Docker container and wrapper, with DNS hook on paas-docker
  • not at all elsewhere

This change merges the different units as a part of the roles/core/certificates
unit to have a consistent installation through all machines, Docker included.

Don't try to issue certificate, as to use DNS registration, we currently
need a manual intervention to add a CNAME DNS records for the _acme_challenge.
verification subdomain.

Certificates are renewed with a daily script running certbot renew, installed
through periodic on FreeBSD or as a systemd timer on Linux with systemd nodes.

Ref T1505.

Test Plan

Deploy on Hervil

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Error_modules/node.py:442E501flake8 E501
Unit
No Test Coverage
Branch
universal-letsencrypt
Build Status
Buildable 5375
Build 5656: arc lint + arc unit

Event Timeline

dereckson created this revision.

Avoid to define authenticator both, one in cli.ini, one in command line

Think it's okey except my comment,
But why every day ? is it not too short ? Maybe each one 3 day or maybe one week could be better ?

roles/core/certificates/files/acme-dns-auth.py
24

no map.jinja for the storage path depending of the OS ?

This revision is now accepted and ready to land.Dec 16 2023, 20:18
roles/core/certificates/files/acme-dns-auth.py
24

Not sure I'm comfortable to templatize Python scripts. We lose the linter for example if we do that.

What if we look both paths?

So we can have the same script first looking /usr/local/etc then /etc. Some scripts already do that like.

TODO: Cleanup certbot_dir from webserver-core

dereckson marked an inline comment as done.

Rebased. Use /usr/local/etc/periodic. Clean certbot_dir.

This revision is now accepted and ready to land.Jul 25 2024, 20:41
This revision was landed with ongoing or failed builds.Jul 25 2024, 20:41
This revision was automatically updated to reflect the committed changes.