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

Đang mở
#1,108 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes
Lĩnh vực
backend, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Go
Star
39
Fork
42
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kubescape/node-agent

Tất cả issue của kubescape/node-agent

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.