mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 06:17:26 +00:00
MINOR: cli: correct commentary and replace 'set global-key' name
Correct a commentary in in include/haproxy/global-t.h and include/haproxy/tools.h Replace the CLI command 'set global-key <key>' by 'set anon global-key <key>' in order to find it easily when you don't remember it, the recommandation can guide you when you just tap 'set anon'. No backport needed, except if anonymization mechanism is backported.
This commit is contained in:
parent
f30c5d7666
commit
d78693178c
@ -2208,7 +2208,7 @@ set anon [on|off] [<key>]
|
||||
to spot bugs, but a low enough bit count (24) to make them non-reversible due
|
||||
to the high number of possible matches. When turned on, if no key is
|
||||
specified, the global key will be used (either specified in the configuration
|
||||
file by "anonkey" or set via the CLI command "set global-key"). If no such
|
||||
file by "anonkey" or set via the CLI command "set anon global-key"). If no such
|
||||
key was set, a random one will be generated. Otherwise it's possible to
|
||||
specify the 32-bit key to be used for the current session, for example, to
|
||||
reuse the key that was used in a previous dump to help compare outputs.
|
||||
@ -2220,7 +2220,7 @@ set dynamic-cookie-key backend <backend> <value>
|
||||
Modify the secret key used to generate the dynamic persistent cookies.
|
||||
This will break the existing sessions.
|
||||
|
||||
set global-key <key>
|
||||
set anon global-key <key>
|
||||
This sets the global anonymizing key to <key>, which must be a 32-bit
|
||||
integer between 0 and 4294967295 (0 disables the global key). This command
|
||||
requires admin privilege.
|
||||
|
@ -42,7 +42,7 @@
|
||||
#define MODE_STOPPING 0x1000 /* the process is in the deinit phase, the event loop is not running anymore. */
|
||||
#define MODE_DUMP_LIBS 0x2000 /* dump loaded libraries at the end of init phase */
|
||||
#define MODE_DUMP_KWD 0x4000 /* dump registered keywords (see kwd_dump for the list) */
|
||||
#define MODE_DUMP_CFG 0x8000 /* dump the configure file */
|
||||
#define MODE_DUMP_CFG 0x8000 /* dump the configuration file */
|
||||
#define MODE_DUMP_NB_L 0x10000 /* dump line numbers when the configuration file is dump */
|
||||
|
||||
/* list of last checks to perform, depending on config options */
|
||||
|
@ -63,7 +63,7 @@
|
||||
/* use if you want to return a simple hash. Key 0 doesn't hash. */
|
||||
#define HA_ANON_STR(key, str) hash_anon(key, str, "", "")
|
||||
|
||||
/* use if you want to return a hash like : IP('hash'). Key 0 doesn't hash. */
|
||||
/* use if you want to return a hash like : ID('hash'). Key 0 doesn't hash. */
|
||||
#define HA_ANON_ID(key, str) hash_anon(key, str, "ID(", ")")
|
||||
|
||||
/* use if you want to return a hash like : PATH('hash'). Key 0 doesn't hash. */
|
||||
|
@ -3278,7 +3278,7 @@ static struct cli_kw_list cli_kws = {{ },{
|
||||
{ { "experimental-mode", NULL }, NULL, cli_parse_expert_experimental_mode, NULL, NULL, NULL, ACCESS_MASTER }, // not listed
|
||||
{ { "mcli-debug-mode", NULL }, NULL, cli_parse_expert_experimental_mode, NULL, NULL, NULL, ACCESS_MASTER_ONLY }, // not listed
|
||||
{ { "set", "anon", NULL }, "set anon <setting> [value] : change the anonymized mode setting", cli_parse_set_anon, NULL, NULL },
|
||||
{ { "set", "global-key", NULL }, "set global-key <value> : change the global anonymizing key", cli_parse_set_global_key, NULL, NULL },
|
||||
{ { "set", "anon", "global-key", NULL }, "set anon global-key <value> : change the global anonymizing key", cli_parse_set_global_key, NULL, NULL },
|
||||
{ { "set", "maxconn", "global", NULL }, "set maxconn global <value> : change the per-process maxconn setting", cli_parse_set_maxconn_global, NULL },
|
||||
{ { "set", "rate-limit", NULL }, "set rate-limit <setting> <value> : change a rate limiting value", cli_parse_set_ratelimit, NULL },
|
||||
{ { "set", "severity-output", NULL }, "set severity-output [none|number|string]: set presence of severity level in feedback information", cli_parse_set_severity_output, NULL, NULL },
|
||||
|
Loading…
Reference in New Issue
Block a user