Hello all !
I’ve Kubernetes cluster with ingress nginx installed via helm.
The cloud provider is Scaleway.
I’ve installed crowdsec helm with modified values, this work but agents ban my pods.
For bypass this I’ve created whitelist with range ip. This is ingress bad configuration ?
ingress value :
controller:
service:
annotations:
service.beta.kubernetes.io/scw-loadbalancer-proxy-protocol-v2: "*"
config:
use-proxy-protocol: true
proxy-real-ip-cidr: 172.16.8.0/22
Top value crowdsec white list :
container_runtime: containerd
config:
parsers:
s02-enrich:
whitelist-ippub.yaml: |
name: crowdsecurity/whitelists-ippub
description: "Whitelist du range des nodes"
whitelist:
reason: "IP publiques des nodes"
cidr:
- "100.64.0.0/16"
- "172.16.8.0/24"
profiles.yaml: |
name: default_ip_remediation
debug: true
filters:
- Alert.Remediation == true && Alert.GetScope() == "Ip"
decisions:
- type: ban
duration: 4h
duration_expr: Sprintf('%dh', (GetDecisionsCount(Alert.GetValue()) + 1) * 4)
notifications:
- http_default
on_success: break