Repository navigation
Share TLS startup logic in the credential service - #5429
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. What this changesThis PR shares TLS loading, validation, and factory options between the prepared-registry and development-token startup paths. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open for maintainer triage: this focused refactor preserves startup validation and buffer cleanup, with no introduced defect found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe controller’s credential-service composition reads protected operator configuration and TLS files, constructs the selected repository factory, and supplies TLS material to the service listeners while retaining cleanup ownership. flowchart TD
A[Protected configuration] --> B[Backend validation]
B --> C[Shared TLS loading]
C --> D[Repository factory]
C --> E[Service listeners]
D --> E
E --> F[Shutdown and buffer cleanup]
Technical reviewBest possible solution: Retain the shared startup sequence and its existing immediate buffer ownership and cleanup semantics. Do we have a high-confidence way to reproduce the issue? No user-visible bug is claimed; source inspection confirms the duplicated TLS sequences on current main. Is this the best way to solve the issue? The local extraction uses the existing configuration owner and preserves validation order, TLS settings, factory inputs, and cleanup without introducing another runtime layer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7fa7a37738bb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 11, 2026, 2:55 AM ET / 07:55 UTC. |
Problem
The prepared-registry and development-token paths each read and validate TLS files during startup. Duplicating that sequence makes it easier for validation and cleanup to drift between backends.
Change
Use one sequence inside the configuration loader for TLS reads, validation, and common options. Each backend keeps its existing input checks and reads in the same order before TLS setup.
Verification
Risks