sandboxpolicy: size the verdict ring buffers and report drops
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/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
- observability, security
Hướng nghiên cứu
Start with enforce_file/program.bpf.c and its events ring buffer, then locate the privilege and network gadget buffers and the code that builds policy status and exports metrics. Measure event and drop rates under a file-heavy workload on AL2023 kernels 6.12 and 6.18, and record the buffer budget in the README. Done means drops appear in status and exported metrics, with a test that fills a buffer and verifies the report.
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 file gadget sends its verdict events through one ring buffer of 256 KiB (events in enforce_file/program.bpf.c). Under a file-heavy workload the buffer can fill. A full buffer drops the event; the drop is counted (VERDICT_COUNT_DROPPED), but:
- the size was not derived from a measured event rate;
- a sustained drop rate is not visible in the policy status;
- the same question applies to the privilege and network gadgets, which have their own buffers.
Enforcement itself is not affected: the hook decides before it reserves the event. What is lost is the verdict record (audit trail and export).
Proposal
- Measure the event rate and the drop rate under a file-heavy workload on the fleet kernels (AL2023 6.12 and 6.18).
- Size each section's buffer from that measurement, with a documented budget per node.
- Report sustained drops in status (for example a
Degradednotice with the drop count), and export the count. - Consider aggregating repeated identical allow verdicts in the kernel before they reach the buffer.
Done when
- Buffer sizes are justified by a measurement recorded in the README.
- A drop is visible in status and in the exported metrics.
- A test fills the buffer and checks that the drop is reported.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kubescape/node-agent
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
kubescape/node-agent#1112 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
kubescape/node-agent#1113 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
kubescape/node-agent#1108 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sandboxpolicy: one shared identity table for all enforcement sections (latch the class at exec)Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
kubescape/node-agent#1106 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Upgrade Inspektor Gadget to v0.57.0 via kubescape fork and preserve exec/path semanticsCó thể đã có người làm @ANAMASGARD đã nhận 23 ngày trước. Đang mởenhancement
kubescape/node-agent#1050 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kubescape/node-agent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
needs discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openfga/openfga.dev#1436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
都道府県を指定すると区名から始まる住所に市名を補わないĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
digital-go-jp/abr-geocoder#457 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
benchmark
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
mozilla-ai/cq#601 ·
Maintainer thường phản hồi trong vòng 1 ngày