docs: migration & DB-maintenance runbook (never full-wipe nsecbunker.db) #32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs-migration-runbook"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Docs-only. Captures the deploy hazard found during the #27 rollout on cfaun (now in session memory) so it's team-visible, not just tribal knowledge.
The hazard: the nsecbunkerd ↔ LNbits pairing is split across both systems — bunker
KeyUser/Tokenbindings + LNbitsaccounts.signer_config.RemoteBunkerSignersigns directly with the storedclient_nsecwith no auto-repair, andprovision()mints a new npub. So a fullnsecbunker.dbwipe (which my #27 merge-checklist offered as an option — that was wrong) orphans every LNbits account and forces identity-changing re-provisioning.The rule: strip the old #24 materialized photocopies with a targeted
DELETE FROM SigningCondition(keepsKeyUser+Token+Policy; live-token clients keep working). Never full-wipe.Also documents: keys live in
nsecbunker.jsonnot the DB; migrations apply via the deploy'sprisma migrate deploy, not the daemon's no-op boot step (#31); theprisma-engines_6pin (#30).Yours to merge via the UI when you're happy with it.
🤖 Generated with Claude Code