]> git.kaiwu.me - haproxy.git/commit
MINOR: extcheck: pass the master and worker IDs to external checks
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2026 14:20:58 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2026 16:00:51 +0000 (18:00 +0200)
commita2e3bb6566398044d44ddba1f2bf768522dda481
tree423fc09bdf3594380d95bfd6bb95885caf8588f2
parent6da13fe8858006e42ac28c0bf879863c56679967
MINOR: extcheck: pass the master and worker IDs to external checks

By default, i.e. unless "external-check preserve-env" is used, the
environment of an external check is not inherited but entirely rebuilt
from the curated list in extcheck_envs[], so the two new identifiers
would not be visible from a check script. Let's add them there, next to
PATH, as a new process-scoped group before the proxy and server ones.
It's also cleaner because we pass the real directives, not the env
variables which could have been modified.
doc/configuration.txt
src/extcheck.c