You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crowdsec-docs/docs/appsec/configuration.md
+46-2Lines changed: 46 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,58 @@ sidebar_position: 6
9
9
Configuring the AppSec Component usually requires the use of multiple files:
10
10
11
11
-[AppSec rules](/appsec/rules_syntax.md) allow you to write a signature to detect and/or block malevolent requests. [You can find more information about the syntax here](/appsec/rules_syntax.md)
12
-
-[acquisition configuration](/log_processor/data_sources/appsec.md) indicates which port is the AppSec Component listening on, and which AppSec configuration it will use.
12
+
-[Acquisition configuration](/log_processor/data_sources/appsec.md) indicates which port is the AppSec Component listening on, and which AppSec configuration it will use.
13
13
- AppSec configuration tells which rules are loaded in in-band (blocking) and out-of-band (non-blocking)
14
14
phases. [it as well allows you to tweak the behavior of the component via the powerful expr bindings](/appsec/rules_syntax.md)
15
15
16
+
## Acquisition configuration
17
+
18
+
## Default configuration
19
+
20
+
The Acquisition configuration is usually present directly within `/etc/crowdsec/acquis.d/` or `/etc/crowdsec/acquis.yaml`:
21
+
22
+
> The default AppSec acquisition configuration
23
+
```yaml
24
+
appsec_config: crowdsecurity/appsec-default
25
+
labels:
26
+
type: appsec
27
+
listen_addr: 127.0.0.1:7422
28
+
source: appsec
29
+
```
30
+
31
+
## Creating custom configuration
32
+
33
+
34
+
If you want to add some custom rules or hooks, it is suggested to add a custom `appsec_config`.
35
+
Modifying existing `appsec_config` will make it *tainted* and will interfere with future updates.
When loading several app sec configs, _hooks_ and _appsec rules_ are appended, and for conflicting options (e.g., `default_remediation`), the last one takes precedence.
0 commit comments