Is there a way to control which directory DumpRequest() dumps into?
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 49/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go, kubernetes
- 領域
- backend, documentation
調査の方向性
Start by reading the AppSec hooks documentation linked in the issue and locating the Go implementation of DumpRequest().ToJSON(). Check whether the dump directory and filename can be configured, and how those options are exposed. Done means the supported controls are documented there, or the request is clarified if implementation changes are needed.
索引モデルが issue の本文から書いたものです。
説明
Right now, using the crowdsec docker container through the provided helm chart, whenever you use DumpRequest() as described in the docs it dumps a json file in your /tmp directory:
In order to make DumpRequest write your request to a file, you have to call DumpRequest().ToJSON(), which will create a file in the OS temporary directory (eg, /tmp on Linux) with the following format: crowdsec_req_dump_<RANDOM_PART>.json.
I would like to change where that goes, so I can mount a directory where all containers dump their requests, as when running multiple appsec pods, finding which /tmp dir on which pod is a little tedious. Is there a way to change which directory these dumps end up in? If so, can we please have that documented somewhere in the appsec hooks doc I linked?
A final quick question: is there anyway to change the file name? Knowing what request is associated with what alert would be very helpful for troubleshooting.
Thanks so much for any help you can provide!
Kind regards,
Jesse
- 主要言語
- Go
- スター
- 15.1k
- フォーク
- 726
- 平均マージ
- 4日 23時間
- マージ済み PR(30日)
- 27
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crowdsecurity/crowdsec のほかの issue
-
needs/kind needs/triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
crowdsecurity/crowdsec#4849 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
kind/bug needs/triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
crowdsecurity/crowdsec#4847 · コメント 3 件 ·
メンテナーはふだん 4 日以内に返信
-
kind/bug needs/triage os/linux
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
crowdsecurity/crowdsec#4836 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
victorialogs datasource passes the trailing newline of a message to the parsers (traefik-logs 1.6 fails on every line)対応中かも @IlayWolfson が 6 日前に担当しました。 オープンkind/bug needs/triage os/linux version/1.8.2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
crowdsecurity/crowdsec#4820 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
[email protected]オープンneeds/kind needs/triage
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
crowdsecurity/crowdsec#4842 · コメント 3 件 ·
メンテナーはふだん 4 日以内に返信
crowdsecurity/crowdsec の issue をすべて見る
似ている issue
-
tld-snapshot
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
awslabs/ferret-scan#1064 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
DaoCloud/DaoCloud-docs#7839 ·
メンテナーはふだん 1 日以内に返信
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
influxdata/influxdb#27767 ·
メンテナーはふだん 1 日以内に返信
-
Type: Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
projectdiscovery/urlfinder#167 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
gojue/ecapture#1100 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信