diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-01 01:03:43 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-01 01:03:43 +0200 |
| commit | fe30860c58e0f1b1efd457ff5eb5146d1e592da0 (patch) | |
| tree | 99a3e96994738c4e96f969a365679475dc4cf5cd /packages/meshbay-hub/src/meshbay_hub/static/locales/it.js | |
| parent | 51d2d734c228f1e46670962480258abfe586d6c4 (diff) | |
| download | meshbay-fe30860c58e0f1b1efd457ff5eb5146d1e592da0.tar.gz | |
feat: passphrase change and account recovery (auth-confirm)
The passphrase derives two independent client-side values: auth_key (the
hub verifier) and bundle_key (AES-GCM key for the per-node identity
bundles, which live on nodes and never on the hub). Changing or
recovering a passphrase is therefore two operations — swap the hub
verifier, and re-wrap every reachable node's identity bundle.
Flow A — change a known passphrase (Profile page)
- POST /v1/users/password re-proves the current passphrase, swaps
pw_hash/salt/version, revokes every refresh token and returns a fresh
pair so the tab that made the change stays signed in.
- MeshBayTransport.rewrapAllNodes: for every group's online node, connect
with the old key, read the identity off the handshake, store it back
under the new key. Returns updated / unreachable / failed so the UI can
point at the operator-unpin fallback for the gaps. Always-shown
confirmation dialog listing reachable and unreachable groups.
Recovery key
- keyderive.js generateRecoveryKey (32 random bytes, grouped Base32) and
deriveRecoveryKey (HKDF-SHA256, domain meshbay:recovery:v1:<username>).
- Every per-node identity gets a second copy wrapped under the recovery
key: keypair_bundles.bundle_enc_recovery (node-only column, added in
_SCHEMA_KEYPAIR and via a PRAGMA-guarded ALTER for existing DBs),
carried on keypair_bundle_store / _resp. MNP 0.13 -> 0.14, additive.
- session.recoveryKey is persisted in IndexedDB (slot rk) and lazy-loaded
on connect, so a group joined in any later session still leaves a
recovery copy.
- Shown once at registration; optionally folded into the verification
e-mail as a pass-through the hub never stores or logs, with an opt-out.
- Profile -> Recovery key re-loads R and backfills every reachable node
via rewrapAllNodes in bundleKey mode (no passphrase re-entry).
Flow B — recover a lost passphrase (#/reset, linked from sign-in)
- POST /v1/users/password/reset-request {username, email}: both must be
the pair on file, checked against the blind email_hash (never
decrypted). A mismatch — wrong e-mail, unknown username, non-active
account — takes the identical no-op path (no code, no mail, same 200),
so it reveals nothing and cannot be used to spray reset mail from a
username alone. 5/min, 1-hour single-use code.
- POST /v1/users/password/reset {username, code, new_auth_key}: same
expiry / attempts / single-use checks as e-mail verification; revokes
every session and deletes every registered device key so a stored one
cannot sign back in past the reset.
- ResetPasswordPage: request code -> code + optional recovery key + new
passphrase -> reset + sign-in -> fan-out. connect() falls back to the
recovery-wrapped copy when the passphrase key cannot open bundle_enc.
Without a recovery key: sign-in is restored and each group needs the
operator-unpin fallback.
Supporting fixes (found in live testing)
- member unpin now also deletes the keypair bundle; connect() mints a
fresh identity when handed a bundle it cannot open (unless _rewrapOnly,
set by rewrapAllNodes), so a rejoin completes instead of dead-ending
before the invite-code prompt.
- A browser with no bundle key gets a passphrase prompt on the group page
instead of a "go back to the browser you registered on" message.
- RegisterPage / LoginPage / ResetPasswordPage trim the username so every
key derivation matches the hub's stored form.
Docs: docs/auth-confirm.md. Locale keys across all ten catalogues.
Tests: test_password_change, test_password_reset, test_recovery_email,
test_recovery_key, test_rewrap_fanout, test_bundle_store_recovery, plus
additions to test_admin_ops_mnp and test_webrtc_transport. Hub suite 492
passed; node suite 741 passed (the lone test_packaging_units failure is a
pre-existing RPM-spec flake, reproducible on main).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GGkxJW9br8Y9bhT8ywJ3oc
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/locales/it.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/locales/it.js | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js index 52f6279..0f92692 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js @@ -29,6 +29,25 @@ export default { 'login.loading': 'Accesso in corso...', 'login.no_account': 'Non ha ancora un account?', 'login.register_link': 'Crea un account', + 'login.forgot': 'Ha dimenticato la passphrase?', + 'reset.title': 'Reimposta la passphrase', + 'reset.request_intro': 'Inserisca il suo nome utente e l’e-mail dell’account. Se corrispondono, un codice di reimpostazione viene inviato a quell’indirizzo.', + 'reset.send_code': 'Invia codice', + 'reset.form_intro': 'Inserisca il codice ricevuto per e-mail e scelga una nuova passphrase. Se ha la sua chiave di recupero, la aggiunga per ripristinare anche l’accesso ai suoi gruppi.', + 'reset.code': 'Codice di reimpostazione', + 'reset.recovery_key': 'Chiave di recupero (facoltativa)', + 'reset.recovery_key_hint': 'La lasci vuota se non la possiede. Senza di essa il suo accesso viene ripristinato, ma dovrà riunirsi a ogni gruppo.', + 'reset.new_pass': 'Nuova passphrase', + 'reset.new_pass_repeat': 'Ripeti la nuova passphrase', + 'reset.submit': 'Reimposta la passphrase', + 'reset.working': 'Ripristino delle sue identità di gruppo…', + 'reset.signin_restored': 'Il suo accesso è stato ripristinato.', + 'reset.groups_restored': 'Le sue identità di gruppo sono state ripristinate su ogni nodo raggiungibile.', + 'reset.no_recovery': 'Le sue identità di gruppo non sono state ripristinate. Per ogni gruppo, chieda al suo operatore di rimuovere il suo pin e di inviarle un nuovo codice di invito, poi si riunisca.', + 'reset.needs_operator': 'Questi gruppi richiedono ancora un intervento — chieda a ogni operatore di rimuovere il suo pin e di inviarle un nuovo codice:', + 'reset.go_app': 'Vai all’app', + 'reset.back_to_login': 'Torna all’accesso', + 'reset.err_unsupported': 'La reimpostazione della passphrase richiede il modulo di cifratura del browser, non disponibile qui.', // Register 'register.title': 'Crea un account', @@ -40,6 +59,16 @@ export default { 'register.loading': "Creazione dell'account...", 'register.has_account': 'Ha già un account?', 'register.login_link': 'Accedi', + 'register.recovery_title': 'Salvi la sua chiave di recupero', + 'register.recovery_intro': 'Questa chiave ripristina le sue identità di gruppo se dovesse dimenticare la passphrase. La conservi in un gestore di password o in un luogo sicuro: viene mostrata una sola volta e il hub non la vede mai.', + 'register.recovery_copy': 'Copia', + 'register.recovery_copied': 'Copiato', + 'register.recovery_warning': 'Se perde sia la passphrase sia questa chiave, i suoi file restano sui rispettivi nodi ma si riunisce a ogni gruppo con una nuova identità.', + 'register.recovery_saved': 'Ho salvato la mia chiave di recupero in un luogo sicuro.', + 'register.recovery_continue': 'Continua', + 'register.recovery_email_opt': 'Inviami anche questa chiave di recupero via e-mail come backup', + 'register.recovery_emailed': 'Una copia è stata inviata anche alla sua e-mail, nello stesso messaggio del codice di verifica.', + 'register.recovery_not_emailed': 'Non è stata inviata via e-mail. La salvi ora: è l’unica volta che viene mostrata.', 'register.success_title': 'Verifichi la sua e-mail', 'register.success_msg': 'Un codice di verifica è stato inviato al suo indirizzo e-mail. Lo inserisca qui sotto per attivare il suo account.', 'register.go_login': "Vai all'accesso", @@ -293,6 +322,36 @@ export default { other: '{n} fissate', }, 'settings.node_pins_clear': 'Cancella le identità fissate', + 'settings.passphrase': 'Passphrase', + 'settings.passphrase_hint': "Cambia la passphrase di questo account. Le tue chiavi di identità vengono ricodificate su ogni gruppo il cui nodo è online; a un gruppo il cui nodo è offline dovrai riunirti in seguito.", + 'settings.passphrase_change': 'Cambia la passphrase', + 'settings.passphrase_current': 'Passphrase attuale', + 'settings.passphrase_new': 'Nuova passphrase', + 'settings.passphrase_new_repeat': 'Ripeti la nuova passphrase', + 'settings.continue': 'Continua', + 'settings.done': 'Fatto', + 'settings.passphrase_confirm_intro': 'Le tue chiavi di identità verranno ora ricodificate su ogni gruppo il cui nodo è raggiungibile:', + 'settings.passphrase_reachable': 'Aggiornato ora', + 'settings.passphrase_unreachable': 'Non raggiungibile', + 'settings.passphrase_fallback_note': "Per un gruppo non raggiungibile, chiedi al suo operatore di rimuovere il tuo pin e di inviarti un nuovo codice di invito, poi riunisciti. I tuoi file e messaggi non vanno persi.", + 'settings.passphrase_confirm_btn': 'Cambia', + 'settings.passphrase_working': 'Ricodifica delle tue chiavi in corso…', + 'settings.passphrase_done': 'Passphrase cambiata.', + 'settings.passphrase_needs_operator': 'Questi gruppi richiedono ancora un intervento — chiedi a ogni operatore di rimuovere il tuo pin e di inviarti un nuovo codice:', + 'settings.pw_too_short': 'La nuova passphrase deve contenere almeno 12 caratteri.', + 'settings.pw_mismatch': 'Le due nuove passphrase non corrispondono.', + 'settings.pw_same': 'La nuova passphrase deve essere diversa da quella attuale.', + 'settings.pw_wrong_current': 'La passphrase attuale non è corretta. Non è stato cambiato nulla.', + 'settings.recovery': 'Chiave di recupero', + 'settings.recovery_hint': "Aggiunge a ogni gruppo una copia della sua identità cifrata con la sua chiave di recupero. Lo faccia una volta in ogni browser che usa; senza di essa, una passphrase persa costringe a riunirsi a ogni gruppo a mano.", + 'settings.recovery_loaded': 'Caricata in questo browser — i nuovi gruppi sono coperti automaticamente.', + 'settings.recovery_open': 'Inserire la chiave di recupero', + 'settings.recovery_input_ph': 'Incolli la sua chiave di recupero', + 'settings.recovery_submit': 'Aggiungi le copie di backup', + 'settings.recovery_working': 'Aggiornamento dei suoi gruppi…', + 'settings.recovery_done': 'I suoi gruppi ora hanno una copia di recupero.', + 'settings.recovery_partial': 'Non è stato possibile raggiungere questi gruppi. Li apra più tardi, o riesegua l’operazione:', + 'settings.recovery_need_relogin': 'Esca e rientri, poi riprovi.', 'settings.danger': "Elimina l'account", 'settings.delete_hint': "Rimuove il suo account, le sue adesioni ai gruppi e le sue " + "notifiche dall'hub, e libera il suo nome utente. Non arriva a ciò che si trova " @@ -525,6 +584,9 @@ export default { 'group.join_code_hint': 'Chieda il codice monouso a chi l’ha invitata e lo inserisca ' + 'qui. Dopodiché questo browser è riconosciuto e non le verrà più chiesto.', 'group.join_code_btn': 'Partecipa', + 'group.pass_title': 'Inserisca la sua passphrase', + 'group.pass_hint': 'Questo browser non ha ancora sbloccato le sue chiavi. Inserisca la sua passphrase una volta per aprire i suoi gruppi qui.', + 'group.pass_btn': 'Sblocca', 'notif.purge': 'Cancella tutto', 'notif.title': 'Notifiche', |