NETOBSERV-3063: add FlowCapture API and shared capture package #2993
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 355 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #2993"
general
weight: 0.35
jpinsonneau
Summary
Add the operator-side FlowCapture v1alpha1 API and shared Go capture package used by the CLI.
enable_opensslto the collector so decoded records are persisted inoutput/plaintext/.jsonl.github.com/netobserv/netobserv-operator/pkg/capturepackage, including a streaming JSON-array writer for reusable flow serialization.Related PRs
Dependency and output contract
The CLI consumes the public shared package from this PR. Flow captures are written as streamed JSON arrays in
output/flow/<timestamp>.json, with the existing SQLite.dboutput preserved. Packet captures remain.pcapng; decoded TLS plaintext is optional.jsonloutput.Validation
go test ./...output/plaintext/.jsonl.Checklist
- [x] Standard QE validation, with pre-merge tests unless stated otherwise.
- [ ] Regression tests only.
- [ ] No QE.