sandboxpolicy: admit section gadget images by digest, like the exec product images
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Read the section engine implementations in pkg/sandboxpolicy/igbackend and the exec image admission path referenced by #1054 and #1101. Trace where release image digests are defined and how section readiness reports typed reasons. Add coverage for an unpinned image; done means all four enforcement image types share digest admission and the test verifies refusal and its status reason.
索引モデルが issue の本文から書いたものです。
説明
Follow-up from the review of #1075.
Problem
The section engines (NewNativePrivilegeEngine, NewNativeNetworkEngine, NewNativeFileEngine in pkg/sandboxpolicy/igbackend) load their gadget image by reference from the store. They do not check the image digest against a pinned list. The exec engine does admit only pinned product images (#1054, #1101).
So a section image that changes under the same reference is loaded and attached on enforcing nodes without any check.
Proposal
Reuse the exec engine's admission for the section images:
- pin each section image by digest in the release, next to the exec product images;
- refuse to load a section image whose digest is not pinned, and report the section
NotReadywith a typed reason; - keep one admission path for all enforcement images.
Done when
- Every enforcement image (exec, privilege, network, file) is admitted by digest through one code path.
- A test loads an unpinned image and checks the refusal and the status reason.
- 主要言語
- Go
- スター
- 39
- フォーク
- 42
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kubescape/node-agent のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
kubescape/node-agent#1112 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
kubescape/node-agent#1113 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
kubescape/node-agent#1107 ·
メンテナーはふだん 1 日以内に返信
-
sandboxpolicy: one shared identity table for all enforcement sections (latch the class at exec)オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
kubescape/node-agent#1106 ·
メンテナーはふだん 1 日以内に返信
-
Upgrade Inspektor Gadget to v0.57.0 via kubescape fork and preserve exec/path semantics対応中かも @ANAMASGARD が 23 日前に担当しました。 オープンenhancement
kubescape/node-agent#1050 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
kubescape/node-agent の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
needs discussion
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openfga/openfga.dev#1436 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
digital-go-jp/abr-geocoder#457 ·
メンテナーはふだん 3 日以内に返信
-
benchmark
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
mozilla-ai/cq#601 ·
メンテナーはふだん 1 日以内に返信