fix: widen vault_id column for ECDSA public keys - #24
Conversation
ECDSA public keys are 66 chars but vault_id was varchar(64). Browser extension and agent-backend send raw ECDSA keys as vault_id, causing registration failures. GORM AutoMigrate widens on startup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughWidened the Changes
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
NeOMakinG
left a comment
There was a problem hiding this comment.
Code Review
Minimal and correct — widens VaultId from varchar(64) to varchar(128). ECDSA public keys are 66 chars, so 128 gives adequate headroom. GORM AutoMigrate handles varchar widening safely. No other columns need updating.
Verdict
APPROVE — no issues found.
🤖 Review + QA by vultisig-ops
gomesalexandre
left a comment
There was a problem hiding this comment.
Conceptual review - no runtime testing
Reviewing as part of the full notification chain (this → agent-backend#84 → vultisig-sdk#211). Haven't wired things up for runtime testing.
The good
- Simple, surgical fix - one line change
- GORM AutoMigrate handles the column alteration on startup, no manual migration needed
- 128 chars gives headroom beyond the 66-char ECDSA keys
One inline comment below.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
vault_idfromvarchar(64)tovarchar(128)in the device modelvault_id, causing registration to fail withData too long for column 'vault_id'Related PRs
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes