Page MenuHomeDevCentral

Deploy Certbot everywhere
ClosedPublic

Authored by dereckson on Dec 16 2023, 01:01.
Tags
None
Referenced Files
F3711596: D3248.diff
Sun, Nov 3, 04:22
Unknown Object (File)
Fri, Nov 1, 12:20
Unknown Object (File)
Fri, Nov 1, 07:48
Unknown Object (File)
Thu, Oct 31, 20:13
Unknown Object (File)
Thu, Oct 31, 10:55
Unknown Object (File)
Sun, Oct 27, 21:13
Unknown Object (File)
Sun, Oct 27, 11:35
Unknown Object (File)
Sat, Oct 26, 20:04
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:446E501flake8 E501
Unit
No Test Coverage
Branch
universal-letsencrypt
Build Status
Buildable 5125
Build 5406: 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.