Allowlist feature cannot withstand ddos load
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
- #4475 @aa1ex による — マージされずにクローズ
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 15.1k
- フォーク
- 726
- 平均マージ
- 2日 51分
- マージ済み PR(30日)
- 18
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crowdsecurity/crowdsec のほかの issue
-
[docker] Align build and debian release対応中かも @albundy83 が 2 日前に担当しました。 オープンkind/enhancement needs/triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
crowdsecurity/crowdsec#4803 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
Bucket queues preallocate all their slots when the bucket is created対応中かも @AdzerKI が 4 日前に担当しました。 オープンkind/bug needs/triage os/linux
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
crowdsecurity/crowdsec#4799 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
kind/bug needs/triage os/linux
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
crowdsecurity/crowdsec#4797 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
needs/kind needs/triage
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
crowdsecurity/crowdsec#4795 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
kind/bug needs/triage os/linux
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
crowdsecurity/crowdsec#4790 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
crowdsecurity/crowdsec の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
nebari-dev/nebi#652 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
govulncheck reports 7 reachable vulnerabilities in dependencies対応中かも @dwisiswant0 が今日担当しました。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
projectdiscovery/rawhttp#558 ·
-
govulncheck reports vulnerable golang.org/x/net and goldmark in called code対応中かも @dwisiswant0 が今日担当しました。 オープンType: Bug
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
projectdiscovery/cdncheck#549 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
projectdiscovery/pdtm#467 ·