feat: HOO-770 Check Privy connection and provision wallet - #1040
Open
pashpashkin wants to merge 7 commits into
Open
feat: HOO-770 Check Privy connection and provision wallet#1040pashpashkin wants to merge 7 commits into
pashpashkin wants to merge 7 commits into
Conversation
Collaborator
Author
|
@greptileai review pls |
Contributor
Greptile SummaryAdds Privy BYOK installation completion and deterministic first-wallet provisioning.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Sequence DiagramsequenceDiagram
participant Dashboard
participant API as Internal Custody API
participant SecretStore
participant Privy
participant DB as PostgreSQL
Dashboard->>API: POST credential/:id/check
API->>DB: Load pending credential and connection
API->>SecretStore: Read persisted Privy credential
API->>Privy: Validate credential
API->>Privy: Find wallet by deterministic external ID
alt Wallet absent
API->>Privy: Create wallet with idempotency key
end
API->>DB: Lock project and target rows
API->>DB: Insert connection-owned wallet
API->>DB: Activate credential and connection atomically
API-->>Dashboard: Check result
Reviews (2): Last reviewed commit: "style(custody): apply updated formatting" | Re-trigger Greptile |
pashpashkin
marked this pull request as ready for review
July 31, 2026 16:01
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.
What changed
walletLabel.PRIVY_BYOK_PROVISIONING_ENABLEDwithPRIVY_BYOK_ENABLED.Why
Pending Privy Connections need a safe completion step that:
Impact
custody_wallets; existing Config-owned wallets require no backfill.PRIVY_BYOK_ENABLEDis disabled.Pre-release actions
PRIVY_BYOK_ENABLEDis disabled or unset in every deployed environment.Post-release actions
PRIVY_BYOK_ENABLEDremains disabled and monitor API/audit errors.Result validation
Does it affect current flows?
No intended behavioral change while
PRIVY_BYOK_ENABLEDis disabled.Existing Config-backed Privy initialization and provisioning remain supported, including the existing env-backed credential path. The migration does not update or delete existing wallet data.
Notes
PRIVY_BYOK_ENABLEDmust remain disabled for this release.