a32aa96752
Package fflag provides a simple feature flag system. Feature names are lowercase and can only contain letters, numbers, undercores and dots. good: "foo", "foo_bar", "foo.bar" bad: "Foo", "foo-bar" A feature flag can be enabled by the user with an environment variable or by adding it to {ConfigDir}/feature.yaml I.e. CROWDSEC_FEATURE_FOO_BAR=true or in feature.yaml: ``` --- - foo_bar ``` If the variable is set to false, the feature can still be enabled in feature.yaml. Features cannot be disabled in the file. A feature flag can be deprecated or retired. A deprecated feature flag is still accepted but a warning is logged. A retired feature flag is ignored and an error is logged. A specific deprecation message is used to inform the user of the behavior that has been decided when the flag is/was finally retired. |
||
---|---|---|
.. | ||
testdata/cfssl | ||
01_base.bats | ||
01_crowdsec.bats | ||
02_nolapi.bats | ||
03_noagent.bats | ||
04_capi.bats | ||
04_nocapi.bats | ||
05_config_yaml_local.bats | ||
10_bouncers.bats | ||
11_bouncers_tls.bats | ||
20_collections.bats | ||
30_machines.bats | ||
30_machines_tls.bats | ||
40_cold-logs.bats | ||
40_live-ban.bats | ||
50_simulation.bats | ||
70_http_plugin.bats | ||
71_dummy_plugin.bats | ||
72_plugin_badconfig.bats | ||
80_alerts.bats | ||
90_decisions.bats | ||
97_ipv4_single.bats | ||
97_ipv6_single.bats | ||
98_ipv4_range.bats | ||
98_ipv6_range.bats | ||
99_lapi-stream-mode-scenario.bats | ||
99_lapi-stream-mode-scopes.bats | ||
99_lapi-stream-mode.bats | ||
reformat |