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:
1 parent
58c3e2af86
commit
5f8c6a1916
21 files changed
+879
-306
No files matched your search
+11
-20
@@ -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:
|
||||
|
||||
+25
-9
@@ -1,9 +1,25 @@
|
||||
# Serverless UX roadmap
|
||||
|
||||
The hosted HTTPS app is the primary experience. The downloadable HTML must keep
|
||||
working for basic manual connection and file transfer; it need not match hosted
|
||||
conveniences. No signaling backend, peer presence service, automatic offline-peer
|
||||
reconnection, or silent TURN fallback is in scope.
|
||||
The app runs over HTTPS or on localhost. No signaling backend, peer presence
|
||||
service, automatic offline-peer reconnection, or silent TURN fallback is in scope.
|
||||
|
||||
## Connection workspace — implemented
|
||||
|
||||
The app title and connection list live in a sidebar. The first slot is **Con 1**;
|
||||
users add subsequent slots explicitly and can rename them. Selecting a slot opens
|
||||
its setup, transfer controls, and persistent activity timeline. Cached workspaces
|
||||
keep live sessions and file selections intact while navigating between slots.
|
||||
The sidebar collapses on mobile; network configuration is expandable.
|
||||
|
||||
IndexedDB stores slot names, paired-device associations, and up to 50 transfer
|
||||
results per slot. Each result includes its direction, filename, size, timestamp,
|
||||
and completion/decline/interruption status. File contents and connection codes
|
||||
are never stored. Slot mutations are transactional and other tabs refresh their
|
||||
lists after changes. Storage failures show an explicit warning.
|
||||
|
||||
Disconnect and Reset retain history. Reloading ends live sessions and requires
|
||||
fresh codes; saved identities can authenticate a remembered peer. A slot's device
|
||||
association only preselects an existing trusted contact and does not grant trust.
|
||||
|
||||
## 1. Send another file on a verified connection — implemented first
|
||||
|
||||
@@ -43,7 +59,7 @@ survive disconnect until Reset or the next acceptance.
|
||||
Protocol v3 rejects old connection codes before setup. Tests cover simultaneous
|
||||
queues, empty files, separate acceptance, removal, decline, stale IDs/receipts,
|
||||
queue caps, storage cancellation, and verification gates. Browser checks exercise
|
||||
both directions, real bytes, accessibility, streaming downloads, and the local HTML.
|
||||
both directions, real bytes, accessibility, and streaming downloads.
|
||||
|
||||
## 3. Remember trusted devices — implemented
|
||||
|
||||
@@ -56,13 +72,13 @@ saved codes never authenticate a peer. Changed or missing identities require
|
||||
manual comparison and never replace saved contacts automatically.
|
||||
|
||||
Temporary sessions remain the default, and every file still requires acceptance.
|
||||
Contact removal, identity deletion, encrypted backup/restore, storage failure
|
||||
Contact removal, identity deletion, storage failure
|
||||
fallback, unreadable-storage recovery, and conflicting-tab write protection are
|
||||
implemented. The local HTML remains manual. Identity-enabled signaling uses v4;
|
||||
implemented. Identity-enabled signaling uses v4;
|
||||
temporary connections retain v3. Browser keys remain accessible to app code.
|
||||
|
||||
Tests cover proof forgery and replay, altered session bindings, metadata gating,
|
||||
wrong backup passwords and tampering, persistence across reload, changed identities,
|
||||
persistence across reload, changed identities,
|
||||
storage denial/recovery, and protocol-version validation. Design and review notes
|
||||
are in [the device identity protocol](device-identities.md); this is not an
|
||||
independent cryptographic audit.
|
||||
@@ -79,7 +95,7 @@ exchange remains necessary. Keep pasteable codes as the universal fallback.
|
||||
Bound and validate payloads, handle stale/incompatible links, and test practical
|
||||
URL limits across messengers and mobile browsers. Do not promise a short link
|
||||
without a storage service. Consider compressed payloads and QR only after checking
|
||||
real payload sizes and decoding limits. Local HTML only needs manual codes.
|
||||
real payload sizes and decoding limits.
|
||||
|
||||
## 5. Guided connection flow
|
||||
|
||||
|
||||
Reference in new issue
Block a user