]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: acme: add a basic scheduler
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 May 2025 12:55:08 +0000 (14:55 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 May 2025 14:01:32 +0000 (16:01 +0200)
commit7fe59ebb88d83d1a841659fa3a0f5b140ee6109e
treee45efb819dba4730538b38bbed866e6de6278d67
parent7251c13c77810643e0ab4704ec42a93a3a846868
MEDIUM: acme: add a basic scheduler

This patch implements a very basic scheduler for the ACME tasks.

The scheduler is a task which is started from the postparser function
when at least one acme section was configured.

The scheduler will loop over the certificates in the ckchs_tree, and for
each certificate will start an ACME task if the notAfter date is past
curtime + (notAfter - notBefore) / 12, or 7 days if notBefore is not
available.

Once the lookup over all certificates is terminated, the task will sleep
and will wakeup after 12 hours.
doc/configuration.txt
src/acme.c