Allowlist feature cannot withstand ddos load
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
- #4475 của @aa1ex — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go
- Lĩnh vực
- backend-api-design, security
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 15.1k
- Fork
- 726
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của crowdsecurity/crowdsec
-
[docker] Align build and debian releaseCó thể đã có người làm @albundy83 đã nhận 2 ngày trước. Đang mởkind/enhancement needs/triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
crowdsecurity/crowdsec#4803 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bucket queues preallocate all their slots when the bucket is createdCó thể đã có người làm @AdzerKI đã nhận 5 ngày trước. Đang mởkind/bug needs/triage os/linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
crowdsecurity/crowdsec#4799 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
"Machine is not enrolled in the console, can't synchronize with the console" should not be an error logCó thể đã có người làm @bharathvemula đã nhận hôm nay. Đang mởkind/bug needs/triage os/linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
crowdsecurity/crowdsec#4809 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
kind/bug needs/triage os/linux
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
crowdsecurity/crowdsec#4797 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
needs/kind needs/triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
crowdsecurity/crowdsec#4795 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của crowdsecurity/crowdsec
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
koordinator-sh/koordinator#3257 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Component: Backup and Restore Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-acceptance wg/router-models-inference-runtime
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
vllm-project/semantic-router#6018 ·
Maintainer thường phản hồi trong vòng 2 ngày