]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: acme: renewal notification over the dpapi sink
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 19 May 2025 13:56:54 +0000 (15:56 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 19 May 2025 14:07:25 +0000 (16:07 +0200)
commite803385a6e688a4e5c75e95c9600aa9eda98ff31
treeffc83edd73485996c1e4078dee9797fba70bccf1
parent99d6c889d07820686bab7631e751cb618e4d55e5
MINOR: acme: renewal notification over the dpapi sink

Output a sink message when the certificate was renewed by the ACME
client.

The message is emitted on the "dpapi" sink, and ends by \n\0.
Since the message contains this binary character, the right -0 parameter
must be used when consulting the sink over the CLI:

Example:

$ echo "show events dpapi -nw -0" | socat -t9999 /tmp/haproxy.sock -
<0>2025-05-19T15:56:23.059755+02:00 acme newcert foobar.pem.rsa\n\0

When used with the master CLI, @@1 should be used instead of @1 in order
to keep the connection to the worker.

Example:

$ echo "@@1 show events dpapi -nw -0" | socat -t9999 /tmp/master.sock -
<0>2025-05-19T15:56:23.059755+02:00 acme newcert foobar.pem.rsa\n\0
src/acme.c