crowdsec/pkg
mmetc a32aa96752
feature flags (#1933)
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.
2022-12-20 16:11:51 +01:00
..
acquisition Add Kubernetes audit acquisition (#1767) 2022-12-06 13:47:29 +01:00
apiclient apiclient: fix http roundtrip (clone body also) (#1758) 2022-12-14 16:42:46 +01:00
apiserver lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
csconfig Add postgres socket support, clean some code (#1926) 2022-12-12 16:08:19 +00:00
csplugin Add Kubernetes audit acquisition (#1767) 2022-12-06 13:47:29 +01:00
csprofiles unit tests: always capture testcase variable -> allow parallel testing (#1797) 2022-10-10 10:48:26 +02:00
cstest feature flags (#1933) 2022-12-20 16:11:51 +01:00
cwhub lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
cwversion refactor: use runtime rather than ldflags for go details (#1302) 2022-03-14 11:29:34 +01:00
database Add postgres socket support, clean some code (#1926) 2022-12-12 16:08:19 +00:00
exprhelpers lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
fflag feature flags (#1933) 2022-12-20 16:11:51 +01:00
hubtest enabled linters: gocritic, nilerr (#1853) 2022-11-07 10:36:50 +01:00
leakybucket use a copy of bucket processors in LeakRoutine (#1902) 2022-11-30 10:59:47 +01:00
metabase lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
models print missing "AS" values as empty strings instead of "0 " (#1867) 2022-11-14 09:55:53 +01:00
parser Typos, grammar (#1905) 2022-12-06 15:55:27 +01:00
protobufs Add plugin interface code in protobufs package (#921) 2021-08-31 14:40:17 +02:00
time Windows Support (#1159) 2022-05-17 12:14:59 +02:00
types Add Kubernetes audit acquisition (#1767) 2022-12-06 13:47:29 +01:00
yamlpatch unit tests: always capture testcase variable -> allow parallel testing (#1797) 2022-10-10 10:48:26 +02:00