Repository navigation
fix(gateway): register TLS renewal with sidecar owner - #146412
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 5:02 PM ET / 21:02 UTC (Revision 2). ClawSweeper reviewWhat this changesPass the TLS certificate renewal handle directly to the Gateway’s background-service owner so shutdown can stop its watcher. Merge readiness✅ Ready for maintainer review The canonical repair remains necessary on current main. No actionable defect was found, and the supplied TLS shutdown and published-version upgrade evidence supports the narrow change. Priority: P2 Review scores
Verification
How this fits togetherGateway startup creates a watcher for accepted TLS certificate files. Its lifetime owner collects background-service handles and stops them during shutdown. flowchart LR
A[Accepted TLS configuration] --> B[Certificate renewal watcher]
B --> C[HTTPS listeners]
B --> D[Lifetime handle registration]
E[Gateway shutdown] --> F[Background-service stop owner]
D --> F
F --> G[Stop watcher and join pending work]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep TLS renewal cleanup with the existing lifetime owner through this direct caller correction, preserving certificate policy and configuration. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the failure: TLS-enabled startup registers an array as a handle, and shutdown calls its nonexistent stop method. Runtime execution was not performed during this read-only review. Is this the best way to solve the issue? Yes. Adapting the caller to the existing variadic contract is the smallest repair and avoids another cleanup owner or compatibility wrapper. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 43f38256a7b3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
I am taking the native landing workflow for this exact green head, |
|
Merged via squash.
|
Related: #146275, #146267
What Problem This Solves
Concurrent changes left TLS renewal using the old array-based Gateway sidecar registration call after the stop owner switched to variadic handles. The merged source fails core typechecking because the array has no
stop()method. A TLS-enabled Gateway would register the array itself and fail to stop its renewal watcher through the lifetime owner during shutdown.Why This Change Was Made
Pass the TLS renewal handle directly to the existing sidecar stop owner. This is a one-line caller correction; TLS enablement, certificate renewal, and shutdown ownership remain unchanged.
User Impact
TLS renewal participates in normal Gateway shutdown cleanup. No configuration, schema, stored-format, dependency, or public API change; no migration is needed.
Evidence
TS2741inserver-startup-finish.ts: the registered array lacks the requiredstopmethod.e3386ff2f238832f9b2c23e93f396c300aed57ae.1361c9a70291258a9699c71715998f31907eefc72241da766ce400e3a7bde18c.