sandboxpolicy: admit section gadget images by digest, like the exec product images

オープン
#1,108 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, kubernetes
領域
backend, security

調査の方向性

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 NotReady with 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kubescape/node-agent のほかの issue

kubescape/node-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。