← Back to Pull requests

NETOBSERV-3045: New secondary networks option; narrow privileges for all features #607

Closed
unknown closed this pull request without merging on Nov 02, 2026 10:34 UTC
View on GitHub
unknown unknown commented on Oct 26, 2026 13:25 UTC
Author

Previously, the following options turned on privileged mode:

  • --enable_pkt_drop / --drops

  • --enable_network_events

  • --enable_udn_mapping

  • --enable_all

  • --enable_openssl
  • Privileged mode was also necessary to get traffic on secondary interfaces.

    Now:

  • New option for secondary networks (--enable_secondary_networks), granting SYS_ADMIN and mounting the host netns directory

  • For backward compatibility, --privileged implicitly enables it

  • Host volumes are mounted per feature rather than unconditionally: kernel debug filesystem for packet drops, OVN/OVS directories for network events and UDN mapping

  • --enable_openssl relies on SYS_PTRACE (reading other containers' /proc to find their libssl) and SYS_ADMIN (perf_event_open uprobe attachment) instead of full privileges
  • Verified on a kind cluster with agent image netobserv-ebpf-agent built from the matching agent change: packet drops and secondary networks both work unprivileged, and openssl uprobes attach with SYS_PTRACE + SYS_ADMIN only.

    Update docs & tests accordingly, add a new test covering the whole feature / privileges matrix.

    Description

    <!-- Fill-in description here -->

    Dependencies

    <!-- List here any related PRs with links, that need to be pulled also for testing -->

  • agent: https://github.com/netobserv/netobserv-ebpf-agent/pull/1077
  • Checklist

    <!-- If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that. -->

    [ ] Does the changes in PR need specific configuration or environment set up for testing?
    [ ] if so please describe it in PR description.
    [ ] I have added thorough unit tests for the change.
    QE requirements (check 1 from the list):
    [x] Standard QE validation, with pre-merge tests unless stated otherwise.
    [ ] Regression tests only (e.g. refactoring with no user-facing change).
    * [ ] No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

    Diff: 256 lines (+192 / -64) across 3 files Reviewer: jpinsonneau Review duration: 9908m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 256 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #607"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%