[ci skip] add graceful degradation to CrowdSec bouncer middleware

P0: Set updateMaxFailure=-1 (fail-open)
  Previously defaulted to 0 which blocked ALL traffic on first LAPI
  failure. Now serves from cached decisions when LAPI is unreachable.

P1: Enable Redis cache for CrowdSec decisions
  Decisions are now shared across all 3 Traefik replicas and survive
  pod restarts. redisCacheUnreachableBlock=false prevents Redis from
  becoming another SPOF.

P1: Add clientTrustedIPs for internal cluster traffic
  Node CIDR (10.0.20.0/24) and pod CIDR (10.10.0.0/16) bypass
  CrowdSec entirely, preventing internal cascade failures.
This commit is contained in:
Viktor Barzin 2026-03-01 02:36:53 +00:00
parent cd5d76fb33
commit a76c72042e
No known key found for this signature in database
GPG key ID: 0EB088298288D958
3 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,6 @@
variable "tier" { type = string }
variable "crowdsec_api_key" { type = string }
variable "redis_host" { type = string }
variable "tls_secret_name" {}
resource "kubernetes_namespace" "traefik" {