feat: Make capturing on all interfaces (-i any) the default behavior for retina captures #1649
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 238 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1649"
general
weight: 0.35
vakalapa
Problem
Currently, when
kubectl retina capture createis run without any additional options, retina only captures packets on the first available interface (typically eth0). This limits the visibility of network traffic that may be flowing through other interfaces on the node.Solution
This PR changes the default behavior to capture on all interfaces by using the
-i anytcpdump flag when no custom tcpdump filter is specified. This provides better network visibility out of the box while maintaining backward compatibility.Changes Made
1. Modified
pkg/capture/provider/network_capture_unix.go: Updated the tcpdump command construction to include-i anyby default when no raw tcpdump filter is specified.2. Added comprehensive tests in
pkg/capture/provider/network_capture_test.goto verify:- Default behavior includes
-i anywhen no raw filter is set- User-specified raw filters override the default behavior
- Backward compatibility is maintained
3. Updated documentation in
docs/04-Captures/02-cli.mdto clarify the new default behavior and provide an example of capturing on a specific interface.Backward Compatibility
Users can still override the default behavior by using the
--tcpdump-filterflag:Testing
All existing tests continue to pass, and new tests verify the correct command construction for both default and override scenarios.
Fixes #1648.
---
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.