refactor(api): move resource initialization into api crate#3864
Open
poroh wants to merge 1 commit into
Open
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (6)
Summary by CodeRabbit
WalkthroughRuntime resource initialization moved from ChangesRuntime resource initialization
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant API
participant setup_resources
participant Postgres
participant run_core
API->>setup_resources: initialize runtime resources
setup_resources->>Postgres: connect and optionally import Vault secrets
setup_resources->>API: return RuntimeResources
API->>run_core: pass credential, certificate, database, and secrets resources
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
poroh
force-pushed
the
api-bootstrap/03-resources
branch
2 times, most recently
from
July 22, 2026 21:09
ec18c0e to
bfc9e57
Compare
poroh
marked this pull request as ready for review
July 22, 2026 21:14
10 tasks
Move database, Vault, credential, certificate, KMS, and secret-import setup into the api composition crate. Keep api-core focused on API implementation and domain logic.
poroh
force-pushed
the
api-bootstrap/03-resources
branch
from
July 22, 2026 21:42
bfc9e57 to
ecdafd9
Compare
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reduce the scope and growth of
carbide-api-coreby moving process initialization into thecarbide-apicomposition crate. This PR moves database, Vault, credential, certificate, KMS, and secret-import setup without intended functional or configuration changes.This is the third change in a planned series:
runentry point - refactor(api): move logging initialization into api crate #3851.The existing credential routing, certificate configuration, KMS validation, Vault import behavior, and database pool configuration are preserved. Dependencies no longer used by
api-coremove with the implementation.Related issues
#3851
#3860
Type of Change
Breaking Changes
Testing
Additional Notes
This PR is stacked on #3860 and should merge after it.