← Back to Pull requests

feat(observability): HCPKASAvailable Excludes KMS #7815

Open
unknown opened this pull request with 238 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 28, 2026 17:29 UTC
Author

<!-- Link to Jira issue -->
https://redhat.atlassian.net/browse/ARO-30444

What

<!-- Briefly describe what this PR does -->

  • Scaffolds a standard framework for KAS alert exclusions using unless

  • Adds KMS condition as an exclusion - all keys are BYO - SRE cannot action these

  • Solves the immediate issue of Sev2 alerting SRE incorrectly, while leaving the decision of what to do about customer communications to https://github.com/openshift-online/aro-enhancements/pull/13 and https://github.com/openshift-online/aro-enhancements/pull/14

  • Adds a new "systemic KMS issues" alert, which fires when 75% of HCPs in a given mgmt cluster are experiencing KMS issues. This really only exists as a raised flag for SRE to investigate what kinds of failures are happening and/or potentially raise an Incident for engineering action or otherwise to declare an outage (e.g. Azure Keyvault is down in a given region). Existing RP validation bugs and/or customer misconfiguration in the fleet today showed that even a 50% threshold was incredibly noisy (1 alert/day). When we fix those issues - we should likely change the threshold to be lower.
  • Why

    <!-- Briefly explain why this change is needed -->

    SRE should not be paged for things they do not manage. We should get paged for systemic outages.

    Testing

    promtool tests updated. I am also using the alert-tester utility to verify this solves the issues we've been seeing.

    Special notes for your reviewer

    <!-- optional -->

    PR Checklist

  • PR is scoped to a single task (no mixed concerns)

  • Title follows Conventional Commits format

  • Summary explains the "Why" behind the change

  • Linked to relevant ticket/issue

  • Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • All comment threads resolved before merge
  • Diff: 238 lines (+178 / -60) across 2 files Reviewer: rajdeepc2792 Review duration: 36184m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 238 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.328
    Real PR Conversation Timeline
    1 comments
    "Review active on #7815"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.8% · Safe to merge
    19.8%
    Repository