← Back to Pull requests

OCPBUGS-105459: Remove kube-rbac-proxy sidecar and enable native TLS metrics in daemon #771

Closed
unknown closed this pull request without merging on Aug 26, 2026 19:27 UTC
View on GitHub
unknown unknown commented on Aug 18, 2026 20:45 UTC
Author

Fixes: https://redhat.atlassian.net/browse/OCPBUGS-105459

Replace the kube-rbac-proxy sidecar container with controller-runtime's built-in TLS serving for the daemon metrics endpoint. The daemon now handles TLS termination, authentication, and authorization directly using the cluster's TLS profile configuration.

  • Add TLS flags and secure metrics serving to cmd/daemon/daemon.go

  • Remove kube-rbac-proxy container from daemon daemonset manifest

  • Remove KUBE_RBAC_PROXY_IMAGE references from controller, main.go, and CSV

  • Delete orphaned config/default/manager_auth_proxy_patch.yaml

  • Daemon serves HTTPS metrics on :9301 with certs from the metrics Service

  • Services RBAC in CSV for controller metrics Service reconcile
  • - What this PR does and why is it needed
    <!--
    A summary of the changes within this pull request and some context
    as to why they were made
    -->
    As part https://redhat.atlassian.net/browse/CORENET-7108 implementation for TLS was done for controller that involved removal of kube-rbac-proxy sidecar. The sidecar was not removed for daemonset that resulted in causing the bug where ingress node firewall operator could be installed on ppc64le but daemonset could not be created.

    - Special notes for reviewers
    <!--
    What exactly did you change - you may also defer to information
    contained in commit messages. At a bare minimum it's worth highlighting
    which areas of the code were changed as it's easier to assign reviewers
    -->

    The changes are only for ingress node firewall daemonset as controller already has TLS support.

    - How to verify it
    No additional tests added but existing tests modified.

    make test
    make test-race
    go test ./controllers/... -count=1

    - Description for the changelog
    <!--
    Write a short (one line) summary that describes the changes in this
    pull request for inclusion in the changelog:
    -->
    Completes the TLS support for ingress node firewall operator.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features


  • Metrics are now served securely over HTTPS on port 39401 with configurable TLS settings.

  • Added daemon liveness and readiness health checks.

  • Added permission to retrieve metrics through authenticated service-account requests.
  • Improvements


  • Simplified metrics access by removing the separate proxy component and related configuration.

  • Metrics certificates are now required and mounted read-only.

  • Removed the proxy image startup requirement.
  • Documentation & Tests


  • Updated metrics examples and end-to-end tests for HTTPS and service-account authentication.

  • <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 342 lines (+256 / -86) across 4 files Reviewer: asood-rh Review duration: 11442m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 342 lines diff across 4 files
    0.65
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.065
    Real PR Conversation Timeline
    1 comments
    "Review active on #771"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 65.5% (HIGH) · Higher = larger blast radius
    65.5%
    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: 25.9% · Safe to merge
    25.9%