Skip to content

Commit c7fbaf4

Browse files
committed
AppSec documentation for ingress-controller
1 parent be15c75 commit c7fbaf4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

content/en/security/application_security/setup/nginx/ingress-controller.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,47 @@ the oTel and Datadog modules.
7373

7474
To disable OpenTelemetry, set `enable-opentelemetry: false`.
7575

76+
## Enabling AppSec
77+
78+
You can enable the WAF provided by AppSec to protect your applications from security threats. To do so, update your Helm values to include the AppSec configuration:
79+
80+
```yaml
81+
controller:
82+
config:
83+
main-snippet: |
84+
load_module /modules_mount/ngx_http_datadog_module.so;
85+
# AppSec thread pool configuration (adjust threads and max_queue as needed)
86+
thread_pool waf_thread_pool threads=2 max_queue=16;
87+
http-snippet: |
88+
# Enable AppSec
89+
datadog_appsec_enabled on;
90+
datadog_waf_thread_pool_name waf_thread_pool;
91+
opentelemetry:
92+
enabled: false
93+
extraModules:
94+
- name: nginx-datadog
95+
image:
96+
registry: docker.io
97+
image: datadog/ingress-nginx-injection
98+
tag: "v1.10.0"
99+
distroless: false
100+
```
101+
102+
**Key configuration parameters:**
103+
- `thread_pool waf_thread_pool`: Creates a dedicated thread pool for AppSec processing. Adjust `threads` and `max_queue` based on your traffic patterns and available resources.
104+
- `datadog_appsec_enabled on`: Enables the Application Security module for threat detection and protection. This can be omitted so that AppSec can be enabled/disabled through Remote Configuration.
105+
- `datadog_waf_thread_pool_name waf_thread_pool`: Associates the matching requests with the configured thread pool.
106+
107+
Refer to [the configuration reference][7] for more configurable options.
108+
109+
<div class="alert alert-info">
110+
For production environments, monitor the thread pool performance and adjust the <code>threads</code> and <code>max_queue</code> parameters based on your traffic volume and latency requirements.
111+
</div>
112+
76113
[1]: https://github.com/kubernetes/ingress-nginx
77114
[2]: https://kubernetes.io/docs/concepts/services-networking/ingress/
78115
[3]: https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/
79116
[4]: https://hub.docker.com/r/datadog/ingress-nginx-injection
80117
[5]: https://github.com/DataDog/nginx-datadog/tree/master/example/ingress-nginx
81118
[6]: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#enable-opentelemetry
119+
[7]: https://github.com/DataDog/nginx-datadog/blob/master/doc/API.md

0 commit comments

Comments
 (0)