maxlerebourg / crowdsec-bouncer-traefik-plugin

Traefik plugin for Crowdsec - WAF and IP protection
Apache License 2.0
260 stars 14 forks source link

:sparkles: Implement captcha protection #139

Closed maxlerebourg closed 7 months ago

mathieuHa commented 7 months ago

@maxlerebourg

After banning my ip with capcha type in crowdsec: does theses logs make sense ?

traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:27:59 cache:Set key:172.22.0.1 value:c duration:60s
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:27:59 ServeHTTP:handleNoStreamCache ip:172.22.0.1 isBanned:c handleNoStreamCache:banned
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:27:59 handleErrorServeHTTP ip:172.22.0.1 remediation:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:27:59 cache:Get key:172.22.0.1_captcha
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:27:59 captcha:Check ip:172.22.0.1 pass:false
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:27:59 captcha:Validate invalid method: GET
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 ServeHTTP ip:172.22.0.1 isTrusted:false
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 cache:Get key:172.22.0.1
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 ServeHTTP ip:172.22.0.1 cache:hit isBanned:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 handleErrorServeHTTP ip:172.22.0.1 remediation:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 cache:Get key:172.22.0.1_captcha
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 captcha:Check ip:172.22.0.1 pass:false
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 captcha:Validate success:true
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 captcha:ServeHTTP captcha:valid
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 cache:Set key:172.22.0.1_captcha value:d duration:20s
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 ServeHTTP ip:172.22.0.1 isTrusted:false
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 cache:Get key:172.22.0.1
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 ServeHTTP ip:172.22.0.1 cache:hit isBanned:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 handleErrorServeHTTP ip:172.22.0.1 remediation:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 cache:Get key:172.22.0.1_captcha
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:21 captcha:Check ip:172.22.0.1 pass:true
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:25 ServeHTTP ip:172.22.0.1 isTrusted:false
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:25 cache:Get key:172.22.0.1
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:25 ServeHTTP ip:172.22.0.1 cache:hit isBanned:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:25 handleErrorServeHTTP ip:172.22.0.1 remediation:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:25 cache:Get key:172.22.0.1_captcha
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:25 captcha:Check ip:172.22.0.1 pass:true
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:26 ServeHTTP ip:172.22.0.1 isTrusted:false
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:26 cache:Get key:172.22.0.1
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:26 ServeHTTP ip:172.22.0.1 cache:hit isBanned:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:26 handleErrorServeHTTP ip:172.22.0.1 remediation:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:26 cache:Get key:172.22.0.1_captcha
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:26 captcha:Check ip:172.22.0.1 pass:true
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:27 ServeHTTP ip:172.22.0.1 isTrusted:false
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:27 cache:Get key:172.22.0.1
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:27 ServeHTTP ip:172.22.0.1 cache:hit isBanned:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:27 handleErrorServeHTTP ip:172.22.0.1 remediation:c
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:27 cache:Get key:172.22.0.1_captcha
traefik  | DEBUG: CrowdsecBouncerTraefikPlugin: 2024/03/30 18:28:27 captcha:Check ip:172.22.0.1 pass:true