Conversation
📝 WalkthroughWalkthroughThe PR introduces three targeted changes to the migration and signing flow: converting migration processing to non-blocking fire-and-forget execution, reducing batch size from 50 to 10 for eVault meta envelope creation, and adding early validation of signer identity against session owner data. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant MigrationController
participant MigrationService
participant eVault
Client->>MigrationController: POST /migrate
MigrationController->>MigrationService: processMigration(migrationId)
Note over MigrationController: Fire-and-forget (no await)
MigrationController->>Client: 200 OK (migration started)
par Async Background Process
MigrationService->>eVault: Batch 1/N (size: 10)
eVault-->>MigrationService: ✓
MigrationService->>eVault: Batch 2/N (size: 10)
eVault-->>MigrationService: ✓
Note over MigrationService: ... continue batches
opt Error occurs
MigrationService->>MigrationService: Log error
end
end
sequenceDiagram
participant Client
participant SigningService
participant SessionData
participant SignatureVerifier
Client->>SigningService: processSignedPayload(payload)
SigningService->>SessionData: Get migration owner eName
SessionData-->>SigningService: eName
SigningService->>SigningService: Validate: payload.signer.w3id == eName?
alt w3id matches eName
SigningService->>SignatureVerifier: Verify signature
SignatureVerifier-->>SigningService: ✓ Valid
SigningService-->>Client: Signed payload accepted
else w3id mismatch
SigningService-->>Client: ✗ Error (signer mismatch)
Note over SigningService: Validation fails early<br/>before signature verification
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description of change
fixes all of
1 batch size smaller (10)
2 eid wallet signing page stuck, eid signing gets approved with different user
3 timeout error on big data (related to 1)
Issue Number
closes #772
Type of change
How the change has been tested
tested on staging bebe
Change checklist
Summary by CodeRabbit
Bug Fixes
Performance