[Bug] Install on 192.168.1.70: errors at DID-creation + password screens; FIPS slow to start #43
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
During install on 192.168.1.70, errors appeared at the nostr/DID ID creation screen and the password-setting screen, though the install otherwise seemed to complete. FIPS did not start right away (eventually started, not too long — possibly acceptable).
Investigate: inspect install logs on .70; determine whether the DID/password screen errors are cosmetic (operation actually succeeded) or real; confirm the FIPS start delay isn't a race worth hardening.
Implemented (code complete; live re-test on a fresh ISO node pending).
Root cause of the DID-creation/password errors:
seed.generatewas not idempotent. The web client aborts a slow request at 15s and retries internally (up to 3x), and the onboarding view also re-fired every 4s while the server was still booting — so on slow first-boot hardware each hit minted a new seed and overwrote the node keys mid-flight, leaving the words shown to the user out of sync with whatseed.verifyexpected.Changes:
seed_rpc.rs:handle_seed_generatenow serializes under a lock and is idempotent — a fresh pending mnemonic is returned as-is instead of regenerating/overwriting keys.seed.verifyno longer wipes the mnemonic on success (bounded by the 10-min TTL), so an internal retry can't trip "session expired".OnboardingSeedGenerate.vue: distinguishes transient (server-starting → silent retry) from genuine failures (real message + manual "Try again"); generate timeout raised to 30s.OnboardingSeedVerify.vue: server-starting hiccups now read as "still starting, tap Verify again" rather than a scary error.OnboardingDone.vue: non-blocking "Securing your private connection…" status pollingfips.status, so post-onboarding FIPS activation reads as in-progress rather than stuck.Backend
cargo check+ frontendvue-tscboth pass. Full closure still wants a fresh install watched on a reachable node (.198 / scratch box), then a re-test on .70 once reachable.