Send a toolbox through an encrypted link
Sharing a toolbox meant exporting a JSON file and passing it around by hand. A toolbox can now be sent from the site while staying local first: the browser compresses and encrypts the v2 export with AES-GCM, and the key lives only in the link fragment, so the server keeps for at most 24 hours a copy it cannot read. - Add the /api/shares service: upload, metadata, download and revoke, with files in SHARES_DIR, a purge every 10 minutes, and single-use links (the default) deleted only once fully downloaded. - Cap the server load: 50 MiB per share, total storage, free disk space, daily volume, concurrent and stalled uploads, reads per link, plus a wide per-connection cap kept in memory without storing IPs. - Limit each browser to 2 shares and 100 MiB per day and 2 active links, and show the existing link of a toolbox already shared. - Add the send dialog (card and game drawer) and the /receive page, which previews or directly imports through the existing import path. - Move shared HTTP helpers to services/http.js for both APIs. - Document the format, delivery, server layout and privacy wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
957bfdc86f
commit
bec9ea5b2f
43 changed files with 2349 additions and 59 deletions
|
|
@ -47,6 +47,7 @@ Internet -> Caddy (VM network) -> 192.168.0.100:3102 -> Node server.mjs (VM weba
|
|||
| `/data/webapps/sites/sokkog` | Ancienne version, à ignorer et à supprimer |
|
||||
| `/data/webapps/apps` | Applications utilisées ponctuellement (`abondance-bot`, `codex-reset-alerts`, `gameservers-control`, `ntfy`, `palico-bot`, `projects`) |
|
||||
| `/data/webapps/private/sokko-g` | Base Sokko TCG, à créer à l'activation |
|
||||
| `/data/webapps/private/sokko-g/shares` | Envois de toolbox chiffrés, 24 h au plus, non sauvegardés ; à créer à l'activation de l'envoi |
|
||||
| `/data/backups/sokko-g` | Sauvegardes quotidiennes de cette base, à créer à l'activation |
|
||||
| `/etc/sokko-g/cards.env` | Secrets Sokko TCG, à créer à l'activation |
|
||||
| `/var/lib/sokko-g` | Commits livrés (`current-commit`, `previous-commit`) ; appartient à `root` |
|
||||
|
|
@ -75,6 +76,8 @@ Forgejo n'a pas été relevé.
|
|||
|
||||
## Sauvegardes
|
||||
|
||||
- **Envois de toolbox :** volontairement exclus des sauvegardes ; ce sont des copies
|
||||
chiffrées supprimées au bout de 24 heures.
|
||||
- **Base Sokko TCG :** une copie par nuit, 14 conservées, sur le disque `/data`, dès
|
||||
l'installation du minuteur (voir `DELIVERY.md`).
|
||||
- **VM `webapps` :** copies manuelles occasionnelles, récupérées puis conservées sur un
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue