← Back to Pull requests

docs(proposals): add KEP-3165 for filesystem webhook certificates #3166

Open
unknown opened this pull request with 338 lines diff across 4 files
View on GitHub
unknown unknown commented on Sep 13, 2026 15:33 UTC
Author

Purpose of this PR

This adds the provisional design document for #3165. The Spark Operator webhook
currently obtains serving certificates through its self-signed or cert-manager
paths, both of which assume certificate material is stored in a Kubernetes
Secret and copied into the serving directory. Clusters whose platform PKI
delivers short-lived certificates directly as files have no supported path that
preserves live rotation and avoids unnecessary Secret ownership.

Proposed changes:

  • Define an opt-in filesystem certificate provider while preserving the

  • existing self-signed default and cert-manager compatibility flag.
  • Separate serving-certificate source from admission caBundle ownership, with

  • exactly one operator or external writer.
  • Specify validated hot reload, CA overlap, readiness, migration, rollback,

  • least-privilege RBAC, observability, and test requirements.
  • Record the controller-runtime watcher behavior that needs maintainer direction

  • before implementation.

    Fixes #3165

    Change Category

  • Bugfix (non-breaking change which fixes an issue)

  • Feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that could affect existing functionality)

  • Documentation update
  • Rationale

    Admission webhooks are fail-closed, and serving-certificate and trust rotation
    span filesystem generations, two admission objects, API-server propagation, and
    multiple webhook replicas. Agreeing on the ownership and rotation contract
    before implementation avoids encoding an unsafe or incompatible API.

    The two points where maintainer direction is most useful are in
    Open Questions:

    1. Whether to enhance controller-runtime's certificate watcher or approve a
    small bounded polling loader in Spark Operator.
    2. Whether the initial chart should support generic injector annotations,
    static CA PEM, or only out-of-band external ownership.

    Checklist

  • I have conducted a self-review of my own code.

  • I have updated documentation accordingly.

  • I have added tests that prove my changes are effective or that my feature works.

  • Existing unit tests pass locally with my changes.
  • Additional Notes

    Documentation-only change; no production code or generated manifests are
    modified, so unit tests were not run.

    Validation performed locally:

  • All local Markdown links resolve.

  • git diff --check passes.

  • The signed-off commit is based directly on current upstream/master.
  • Diff: 338 lines (+253 / -85) across 4 files Reviewer: tariq-hasan Review duration: 31072m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 338 lines diff across 4 files
    0.42
    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
    Diff Size diff_size
    0.349
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #3166"
    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: 42.2% (MEDIUM) · Higher = larger blast radius
    42.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: 22.5% · Safe to merge
    22.5%