WIP V improve UX [snapshot task 2]

Add the connections workspace (sidebar, editable slots, per-slot activity,
removal dialog with focus wrapping), remove the downloadable local HTML and
unreleased identity backup/restore, and start the 0.0.5 draft changelog.
Restore the released 0.0.3/0.0.4 changelog entries. Enable focus emulation
in browser checks so background tabs receive focus/blur events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-17 13:44:08 +02:00
1 parent 58c3e2af86
commit 5f8c6a1916
21 files changed
+879 -306

No files matched your search

+11 -20
View File
@@ -1,7 +1,7 @@
# Remembered-device protocol and storage
Phase 3 adds optional hosted-browser identities. Temporary sessions still use
manual fingerprint comparison. The local HTML never opens identity storage.
manual fingerprint comparison.
This is an application protocol design and implementation review, not an
independent cryptographic audit.
@@ -54,36 +54,27 @@ to diagnostic logs, and nicknames are not sent to peers.
## Storage and recovery
IndexedDB holds a CryptoKey private key, the public key, and at most 100 contacts.
Keys are extractable to support user-requested backups. Browser storage does not
protect against compromised app code, a hostile host, or compromised browser.
New private keys are non-extractable; existing stored keys remain usable.
Browser storage does not protect against compromised app code, a hostile host,
or compromised browser: app code can still use a stored key to sign.
The identity-use checkbox defaults off after page load. Clearing site data loses
identity and contacts; an empty store never creates trust automatically. Storage
errors leave temporary sessions available. Unreadable storage can be explicitly
cleared before restoring a backup. Atomic revision checks reject stale writes
from other tabs instead of overwriting a newer identity or contact list. Controls for deletion/restoration
require explicit replacement consent and are disabled during a session.
cleared before creating a new identity and pairing again. Atomic revision checks
reject stale writes from other tabs instead of overwriting a newer identity or
contact list. Identity deletion requires explicit consent and is disabled during
a session.
Before each identity-enabled connection, settings are read again from storage.
A contact forgotten in another tab loses automatic verification on the next
connection; a replaced or deleted local identity requires opting in again.
A failed refresh stops setup instead of using cached trust.
The v1 backup is JSON containing `format: "hellcon-identity"`, `version: 1`,
`iterations: 600000`, a 16-byte random salt, 12-byte random IV, and ciphertext.
Salt, IV, and ciphertext use lowercase hex. PBKDF2-HMAC-SHA-256 with 600,000
iterations derives an AES-256-GCM key from the password (12–1024 characters,
UTF-8 without normalization). AES-GCM uses the default 128-bit authentication
tag and additional authenticated data `HellCon backup v1`. The encrypted JSON
contains the private JWK, public key, and contacts. Passwords are cleared from
the UI after operations and are never stored. Backup input is capped at 100 KB;
unsupported versions/iteration counts, malformed fields, wrong passwords, failed
authentication tags, invalid contacts, and mismatched private/public keys are
rejected before replacing stored data. Restoring a backup clones that identity;
there is no central revocation service. Contacts must forget a compromised key.
There is no central revocation service. Contacts must forget a compromised key.
Review checks: both role directions, substitution of either identity, alteration
of either nonce or fingerprint, forged signatures, replay into fresh contexts,
metadata gating during asynchronous verification, backup tampering and incorrect
passwords, and persistence/reconnection with real browser CryptoKeys. These
metadata gating during asynchronous verification, non-extractable private keys,
and persistence/reconnection with real browser CryptoKeys. These
checks do not replace an independent protocol review.
Web Crypto algorithm and key-storage reference: