Allowlist feature cannot withstand ddos load
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
- #4475 di @aa1ex — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- go
- Ambito
- backend-api-design, security
Direzione di ricerca
Start by reviewing the allowlist-checking path and linked pull request #4475, then compare behavior from v1.6.6 onward with the reported v1.6.5 downgrade. The report says allowlists are unused but checks still reach the database during heavy traffic; done means unused allowlists are not checked and the API remains responsive under that load.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened?
I have one central API and hundreds of agents that are connected to one API.
The API is deployed on bare metal.
In v1.7.3, I noticed that the API stopped working when there was a huge wave of DDOS attacks.
On the API side, I saw in the log:
{"level":"error","msg":"error while checking allowlist: unable to check if value is allowlisted: context canceled","time":"2025-11-21T18:24:20+03:00"}
{"level":"error","msg":"error while checking allowlist: unable to check if value is allowlisted: context canceled","time":"2025-11-21T18:24:20+03:00"}
The API has stopped working.
I'm not using any allowlist functions, but crowdsec is still trying to connect to the database and request the allowlist.
After downgrading to version 1.6.5, everything is working and it keeps the load on
If you need any additional information, let me know.
What did you expect to happen?
Allowlists should not be checked if they are not in use.
How can we reproduce it (as minimally and precisely as possible)?
You can reproduce it using >= 1.6.6
Anything else we need to know?
No response
Crowdsec version
problem starting from v1.6.6
OS version
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
Enabled collections and parsers
$ cscli hub list -o raw
# paste output here
Acquisition config
On Windows:
C:> Get-Content C:\ProgramData\CrowdSec\config\acquis.yaml
paste output here
Config show
$ cscli config show
# paste output here
Prometheus metrics
$ cscli metrics
# paste output here
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.
- Lingua principale
- Go
- Stelle
- 15.1k
- Fork
- 726
- Merge medio
- 2g 51m
- PR unite (30g)
- 18
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di crowdsecurity/crowdsec
-
[docker] Align build and debian releaseForse già presa @albundy83 l’ha presa 2 giorni fa. Apertakind/enhancement needs/triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
crowdsecurity/crowdsec#4803 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Bucket queues preallocate all their slots when the bucket is createdForse già presa @AdzerKI l’ha presa 4 giorni fa. Apertakind/bug needs/triage os/linux
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
crowdsecurity/crowdsec#4799 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
kind/bug needs/triage os/linux
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
crowdsecurity/crowdsec#4797 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
needs/kind needs/triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
crowdsecurity/crowdsec#4795 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
kind/bug needs/triage os/linux
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
crowdsecurity/crowdsec#4790 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di crowdsecurity/crowdsec
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
nebari-dev/nebi#652 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
govulncheck reports 7 reachable vulnerabilities in dependenciesForse già presa @dwisiswant0 l’ha presa oggi. ApertaType: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
projectdiscovery/rawhttp#558 ·
-
govulncheck reports vulnerable golang.org/x/net and goldmark in called codeForse già presa @dwisiswant0 l’ha presa oggi. ApertaType: Bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
projectdiscovery/cdncheck#549 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
projectdiscovery/pdtm#467 ·