]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: anon: store the anonymizing key in the CLI's appctx
authorErwan Le Goas <elegoas@haproxy.com>
Wed, 14 Sep 2022 15:24:22 +0000 (17:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 17 Sep 2022 09:27:09 +0000 (11:27 +0200)
commit54966dffdac3fb54885c20970ccccdd78a05ed16
treea10a7f60785fd8f3247a976253820d4a1784a4f4
parentfad9da83da7f950997df60f23cb3d75d9c754cf9
MINOR: anon: store the anonymizing key in the CLI's appctx

In order to allow users to dump internal states using a specific key
without changing the global one, we're introducing a key in the CLI's
appctx. This key is preloaded from the global one when "set anon on"
is used (and if none exists, a random one is assigned). And the key
can optionally be assigned manually for the whole CLI session.

A "show anon" command was also added to show the anon state, and the
current key if the users has sufficient permissions. In addition, a
"debug dev hash" command was added to test the feature.
doc/management.txt
include/haproxy/applet-t.h
include/haproxy/tools.h
src/cli.c
src/debug.c