sandboxpolicy: size the verdict ring buffers and report drops
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, kubernetes
- Ambito
- observability, security
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 39
- Fork
- 42
- Merge medio
- 2g 16h
- PR unite (30g)
- 48
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kubescape/node-agent
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
kubescape/node-agent#1112 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
kubescape/node-agent#1113 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
kubescape/node-agent#1108 ·
I maintainer di solito rispondono entro 1 giorno
-
sandboxpolicy: one shared identity table for all enforcement sections (latch the class at exec)Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
kubescape/node-agent#1106 ·
I maintainer di solito rispondono entro 1 giorno
-
Upgrade Inspektor Gadget to v0.57.0 via kubescape fork and preserve exec/path semanticsForse già presa @ANAMASGARD l’ha presa 23 giorni fa. Apertaenhancement
kubescape/node-agent#1050 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kubescape/node-agent
Issue simili
-
benchmark
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
mozilla-ai/cq#601 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation migration
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno