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
π fix start up config error for appsec and review doc for appsec tls (#300)
* π fix start up config error for appsec
* :doc: add documentation on appsec variables and missing conf parameter
* π± fix lint
* π± fix lint
* π± fix lint
* π± fix after lot of tests
* update exemple tls with new variables tested
* fix exemple appsec with release and not localplugin
---------
Co-authored-by: mhx <mathieu@hanotaux.fr>
Copy file name to clipboardExpand all lines: README.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -310,17 +310,16 @@ make run
310
310
### Note
311
311
312
312
> [!IMPORTANT]
313
-
> Some of the behaviours and configuration parameters are shared globally across *all* crowdsec middlewares even if you declare different middlewares with different settings.
313
+
> Some of the behaviours and configuration parameters are shared globally across _all_ crowdsec middlewares even if you declare different middlewares with different settings.
314
314
>
315
315
> **Cache is shared by all services**: This means if an IP is banned, all services which are protected by an instance of the plugin will deny requests from that IP
316
316
>
317
317
> If you define different caches for different middlewares, only the first one to be instantiated will be bound to the crowdsec stream.
318
318
>
319
-
> Overall, this middleware is designed in such a way that **only one instance of the plugin is *possible*.** You can have multiple crowdsec middlewares in the same cluster, the key parameters must be aligned (MetricsUpdateIntervalSeconds, CrowdsecMode, CrowdsecAppsecEnabled, etc.)
319
+
> Overall, this middleware is designed in such a way that **only one instance of the plugin is _possible_.** You can have multiple crowdsec middlewares in the same cluster, the key parameters must be aligned (MetricsUpdateIntervalSeconds, CrowdsecMode, CrowdsecAppsecEnabled, etc.)
320
320
321
321
> [!WARNING]
322
-
> **Appsec maximum body limit is defaulted to 10MB**
323
-
> *Be careful when you upgrade to >1.4.x*
322
+
> **Appsec maximum body limit is defaulted to 10MB** > _Be careful when you upgrade to >1.4.x_
324
323
325
324
### Variables
326
325
@@ -351,7 +350,18 @@ make run
351
350
- CrowdsecAppsecHost
352
351
- string
353
352
- default: "crowdsec:7422"
354
-
- Crowdsec Appsec Server available on which host and port. The scheme will be handled by the CrowdsecLapiScheme var.
353
+
- Crowdsec Appsec Server available on which host and port.
354
+
- CrowdsecAppsecTlsInsecureVerify
355
+
- bool
356
+
- default: false
357
+
- Disable verification of certificate presented by Appsec
358
+
- CrowdsecAppsecTlsCertificateAuthority
359
+
- string
360
+
- default: ""
361
+
- PEM-encoded Certificate Authority of Appsec
362
+
- CrowdsecAppsecScheme
363
+
- string
364
+
- default: value of `CrowdsecLapiScheme`, expected values are: `http`, `https`
355
365
- CrowdsecAppsecPath
356
366
- string
357
367
- default: "/"
@@ -368,6 +378,10 @@ make run
368
378
- int64
369
379
- default: 10485760 (= 10MB)
370
380
- Transmit only the first number of bytes to Crowdsec Appsec Server.
`CrowdsecLapiTlsCertificateBouncerKey`, `CrowdsecLapiTlsCertificateBouncer`, `CrowdsecLapiTlsCertificateAuthority`, `CrowdsecCapiMachineId`, `CrowdsecCapiPassword`, `CrowdsecLapiKey`, `CaptchaSiteKey`, `CaptchaSecretKey` and `RedisCachePassword` can be provided with the content as raw or through a file path that Traefik can read.
631
+
`CrowdsecLapiTlsCertificateBouncerKey`, `CrowdsecLapiTlsCertificateBouncer`, `CrowdsecLapiTlsCertificateAuthority`, `CrowdsecAppsecTlsCertificateAuthority`, `CrowdsecCapiMachineId`, `CrowdsecCapiPassword`, `CrowdsecLapiKey`, `CrowdsecAppsecKey`, `CaptchaSiteKey`, `CaptchaSecretKey` and `RedisCachePassword` can be provided with the content as raw or through a file path that Traefik can read.
618
632
The file variable will be used as preference if both content and file are provided for the same variable.
619
633
620
634
Format is:
@@ -677,6 +691,13 @@ Set the `crowdsecLapiScheme` to https.
677
691
Crowdsec must be listening in HTTPS for this to work.
678
692
Please see the [tls-auth example](https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/blob/main/examples/tls-auth/README.md) or the official documentation: [docs.crowdsec.net/docs/local_api/tls_auth/](https://docs.crowdsec.net/docs/local_api/tls_auth/)
679
693
694
+
#### Use HTTPS to communicate with the Appsec
695
+
696
+
To communicate with the Appsec in HTTPS you need to either accept any certificates by setting the `crowdsecAppsecTLSInsecureVerify` to true or add the CA used by the server certificate of Crowdsec using `crowdsecAppsecTLSCertificateAuthority` or `crowdsecAppsecTLSCertificateAuthorityFile`.
697
+
Set the `crowdsecAppsecScheme` to https.
698
+
699
+
Currently AppSec does not support mTLS authentication for the AppSec Component.
700
+
680
701
#### Manually add an IP to the blocklist (for testing purposes)
0 commit comments