← Back to Pull requests

Add Kubernetes RBAC support for the MLflow skill registry #60

Closed
unknown closed this pull request without merging on Oct 16, 2026 15:48 UTC
View on GitHub
unknown unknown commented on Oct 15, 2026 21:06 UTC
Author

What this PR does / why we need it:

Add Kubernetes RBAC for MLflow's workspace-scoped skill registry. Register explicit API and AJAX authorization rules when the installed MLflow exposes the registry, preserving support for released MLflow 3.17.

  • Map skill reads to parent get, modifications to parent update, and parent deletion to delete, with broad or named permissions where applicable.

  • Require broad list for skill searches, without response filtering.

  • Require broad create plus parent update for version registration; bulk registration requires broad create and update.

  • Classify skill content served through the shared artifact endpoints before experiment authorization, so downloads require skill get. Deny direct writes to uploaded skill content; uploads use version registration.

  • Test both MLflow 3.17 and commit f566a42d64fce8997fe187edb5229221ace09713 in CI, including static-prefix configurations. Inline comments identify the pin to replace with MLflow 3.18 when released.
  • Related Issues/PRs _(use Fixes #<number> to auto-close, or Relates to #<number>)_:

    None linked.

    How is this PR tested?

  • Existing unit tests

  • New unit tests

  • Manual testing
  • Local verification:

  • make install-dev, make python-lint, and uv build passed.

  • MLflow 3.17: 343 passed, 22 skipped, both with and without _MLFLOW_STATIC_PREFIX=/mlflow.

  • Pinned MLflow commit: 364 passed, 1 skipped, both with and without _MLFLOW_STATIC_PREFIX=/mlflow.

  • New coverage includes skill identity, broad-list enforcement, parent permissions, and artifact authorization boundaries.

  • make python-typecheck reports 62 pre-existing diagnostics, confirmed against the unchanged baseline.
  • Does this PR require documentation update?

  • No

  • Yes (updated docs/ or README)
  • Updated docs/kubernetes-rbac.md with the skill resource, named permissions, search behavior, registration requirements, and artifact restrictions.

    Checklist:

  • Commits are signed off (DCO)

  • Pre-commit hooks pass (pre-commit run --all-files)

  • Tests pass (make python-test)
  • Diff: 266 lines (+199 / -67) across 3 files Reviewer: HumairAK Review duration: 1122m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 266 lines diff across 3 files
    0.63
    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.334
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #60"
    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: 62.5% (MEDIUM) · Higher = larger blast radius
    62.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: 24.7% · Safe to merge
    24.7%