]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: add command-line -dC to dump the configuration file
authorErwan Le Goas <elegoas@haproxy.com>
Wed, 14 Sep 2022 15:51:55 +0000 (17:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 17 Sep 2022 09:27:09 +0000 (11:27 +0200)
commitb0c05015168f482eb84b1db78fdd6f158e5383a2
tree17b2c07837bffa4f0cdae14ec66773c1e64f3e8d
parentacfdf7600b7dafcc8ba8c80158ba0b6a119806fb
MINOR: config: add command-line -dC to dump the configuration file

This commit adds a new command line option -dC to dump the configuration
file. An optional key may be appended to -dC in order to produce an
anonymized dump using this key. The anonymizing process uses the same
algorithm as the CLI so that the same key will produce the same hashes
for the same identifiers. This way an admin may share an anonymized
extract of a configuration to match against live dumps. Note that key 0
will not anonymize the output. However, in any case, the configuration
is dumped after tokenizing, thus comments are lost.
doc/configuration.txt
doc/management.txt
include/haproxy/global-t.h
src/cfgparse.c
src/haproxy.c