← Back to Pull requests

acme: support standards-compliant order finalization (cherry-pick b4dcfb54b) #9

Closed
unknown closed this pull request without merging on Oct 10, 2026 05:37 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 11:05 UTC
Author

This cherry-picks golang/crypto b4dcfb54b ("acme: support standards-compliant order finalization") onto our fork. It adds Client.CreateCertFromOrder, which polls the order's own URI after finalize instead of the finalize response's Location header. RFC 8555 does not require that header, and Pebble v2.9.0+ omits it.

cert-manager needs this now. Its e2e Pebble omits the header, so every ACME finalize in e2e first fails with Post "": unsupported protocol scheme "" and is retried. The retry sometimes finalizes the same order twice and fails the test. The cert-manager PR that consumes this commit is cert-manager/cert-manager#9430.

The cherry-pick applied cleanly. A full sync with golang/crypto master is a bigger job, because upstream has since added its own ACME profiles support (4e01a8447c), which overlaps with this fork's profiles patch.

Please merge with a merge commit, not squash or rebase. cert-manager's third_party/klone.yaml pins a0b1a2dbb1f7046e8c15802bf251c282ce86e849, which must stay reachable from master.

<details>
<summary>How this was tested</summary>

  • go test ./acme/... passes on this branch, including TestWithPebble against Pebble v2.10.1.

  • On master with only the Pebble version bumped to v2.10.1, TestWithPebble fails with the same error cert-manager sees:
  •   failed to finalize order https://127.0.0.1:5561/my-order/... with finalize URL https://127.0.0.1:5561/finalize-order/...: Post "": unsupported protocol scheme ""
      

    </details>

    [with Claude]

    Diff: 189 lines (+141 / -48) across 2 files Reviewer: hjoshi123 Review duration: 5432m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 189 lines diff across 2 files
    0.36
    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.314
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9"
    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: 35.9% (MEDIUM) · Higher = larger blast radius
    35.9%
    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: 14.2% · Safe to merge
    14.2%