Give the toolbox files headers that explain their role, callers and pitfalls
Document the storage chain (optimistic state, write queue, compare-and-write transactions, cross-tab sync), the tool registry, actions and pages, the contract a tool receives through its context, and the encrypted sharing whose key never reaches the server. The compactor registry header no longer calls itself strict: a missing compactor writes data as-is, now tracked in sokko-g-afbw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
34b412d968
commit
fe21c2d899
25 changed files with 210 additions and 24 deletions
|
|
@ -1,5 +1,10 @@
|
|||
/**
|
||||
* @file Compresse et chiffre une toolbox envoyée, pour que le serveur n'en garde qu'une copie illisible.
|
||||
* @file Compresse (gzip) et chiffre (AES-GCM 256) une toolbox envoyée, puis la déchiffre à la réception.
|
||||
*
|
||||
* Utilisé par : toolboxSharing.js (envoi) et ReceiveToolboxPage.jsx (réception).
|
||||
* Attention : format binaire « SKS1 » + IV de 12 octets + contenu chiffré, en-tête authentifié ; la
|
||||
* décompression est plafonnée (`SHARE_MAX_DECOMPRESSED_BYTES`) contre un fichier piégé.
|
||||
* @see docs/STORAGE_SCHEMA.md
|
||||
*/
|
||||
|
||||
const MAGIC = new TextEncoder().encode("SKS1");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
/**
|
||||
* @file Enchaîne l'export, le chiffrement, les quotas et l'envoi d'une toolbox, puis la révocation de ses
|
||||
* liens.
|
||||
* @file Envoi d'une toolbox par lien : export, chiffrement, contrôle des quotas de ce navigateur, envoi au serveur,
|
||||
* puis révocation des liens.
|
||||
*
|
||||
* Utilisé par : sharing/ShareToolboxModal.jsx.
|
||||
* Dépend de : shareCrypto.js, shareQuota.js, sharesApi.js.
|
||||
* Attention : la clé de déchiffrement est placée après un second `#` du lien (`#/receive/<id>#<clé>`) : le
|
||||
* navigateur ne l'envoie jamais au serveur, qui ne garde qu'une copie illisible.
|
||||
* @see docs/STORAGE_SCHEMA.md
|
||||
*/
|
||||
|
||||
import { encryptSharePayload } from "./shareCrypto.js";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue