Skip to content

Commit 5c3d5ed

Browse files
Remove dedicated Cookie Management section
- Remove the standalone Cookie Management (New Approach) section - Keep cookie management configuration examples in HAProxy config sections
1 parent ce169c0 commit 5c3d5ed

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

crowdsec-docs/unversioned/bouncers/haproxy_spoa.mdx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,6 @@ recaptcha
219219
turnstile
220220
```
221221

222-
#### Cookie Management (New Approach)
223-
224-
The HAProxy SPOA bouncer now supports improved cookie management for CAPTCHA handling. This new approach uses `http-after-response` directives to manage CAPTCHA cookies more efficiently:
225-
226-
```haproxy
227-
## Handle captcha cookie management via HAProxy (new approach)
228-
## Set captcha cookie when SPOA provides captcha_status (pending or valid)
229-
http-after-response set-header Set-Cookie %[var(txn.crowdsec.captcha_cookie)] if { var(txn.crowdsec.captcha_status) -m found } { var(txn.crowdsec.captcha_cookie) -m found }
230-
## Clear captcha cookie when cookie exists but no captcha_status (Allow decision)
231-
http-after-response set-header Set-Cookie %[var(txn.crowdsec.captcha_cookie)] if { var(txn.crowdsec.captcha_cookie) -m found } !{ var(txn.crowdsec.captcha_status) -m found }
232-
```
233-
234-
This approach provides:
235-
- Automatic cookie setting when CAPTCHA status is pending or valid
236-
- Automatic cookie clearing when the decision is to allow (no CAPTCHA status)
237-
- More reliable cookie management compared to previous methods
238222

239223
### Prometheus Metrics
240224

0 commit comments

Comments
 (0)