docs: describe how the preStop exec cache and network event dedup affect the runtime rules
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
docs/にある既存の重複排除と設定に関する説明を読み、続いてpkg/rulemanager/cel/libraries/containerprofile/exec.goとpkg/dedupcache/keys.goで記載された動作を確認してください。preStopトリガー、5分間のウィンドウ、影響を受けるCEL関数、イベントキーとTTL、重複排除されたイベントでスキップされる処理を網羅するドキュメントを追加してください。ルール作成者が両方の動作とその実行時の影響をドキュメントから見つけられれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
Two behaviours of the rule engine aren't documented, and both change which events the runtime rules see. They're intended, but someone writing or tuning rules has no way to know about them except by reading the code.
- preStop exec cache.
isExecInPodSpec(pkg/rulemanager/cel/libraries/containerprofile/exec.go) marks a container's preStop hook as triggered when an executed path appears in itslifecycle.preStop.exec.command. While it's marked, which lastsDefaultPreStopCacheTTL(5 minutes),was_executedtreats every exec in that container as expected. With a common hook like["/bin/sh", "-c", "sleep 5"], this window starts whenever/bin/shruns, not only when the pod terminates. That's worth stating next to the rules that useap.was_executed/cp.was_executed. - Network event dedup.
ComputeNetworkKey(mntns, pid, dstAddr, dstPort, proto)(pkg/dedupcache/keys.go) has no packet direction, and network events dedup for 5s. So within that window, a second event with the same process, remote address, port and protocol is dropped before the rule manager, profile learning and malware scan see it.
Proposal
Add a short section, for example in docs/ next to the existing dedup and configuration notes, that explains:
- the preStop exec window: what triggers it, how long it lasts, and which CEL functions it affects;
- the dedup keys and TTLs per event type, and what a deduplicated event skips.
I'm happy to write the doc PR if that sounds useful, and to adjust it to how you'd like these described.
- 主要言語
- Go
- スター
- 39
- フォーク
- 42
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 40
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kubescape/node-agent のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
kubescape/node-agent#1099 ·
メンテナーはふだん 1 日以内に返信
-
Upgrade Inspektor Gadget to v0.57.0 via kubescape fork and preserve exec/path semantics対応中かも @ANAMASGARD が 18 日前に担当しました。 オープンenhancement
kubescape/node-agent#1050 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
kubescape/node-agent#1014 ·
メンテナーはふだん 1 日以内に返信
-
Scan container images for misplaced secrets再び着手できるかも @khuswant18 が 48 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
kubescape/node-agent#987 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
kubescape/node-agent#963 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
kubescape/node-agent の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
evener-transcript-v2-upgrade tool still scans transcript files through bufio's 4 KiB default bufferオープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
prime-radiant-inc/evener#6370 ·
メンテナーはふだん 1 日以内に返信
-
ManageSieve proxy: a backend's NO/BYE greeting is skipped as a capability line and reported as EOFオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ManageIQ/manageiq-pods#1476 ·
メンテナーはふだん 1 日以内に返信