Repository navigation
feat(storage): private by default; node operators only ever hold ciphertext - #218
Merged
Merged
Conversation
ThreatCrush Security Scan13 finding(s) HIGH/CRITICAL: 1 | MEDIUM: 8 | LOW: 4
Snippets are redacted; ThreatCrush never prints matched credential material. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
Wires the c0mpute-sealed format into the network and every surface: - c0mpute-core::sealed_store: sealed blobs published as single-file hosting sites under per-object keys and random names from a throwaway peer id, so replication, healing, gateway serving and storage challenges run unchanged over ciphertext. Multipart over 192 MiB, share (rewrap), revoke (re-seal, new parts first), delete (tombstone), private sites with stable links, encrypted volumes, encrypted local index, rollback guard on signed versions. - CLI: `storage put` encrypts by default (`--public` opts out); get, share, revoke, link, rm, ls --private, key init|show|backup; mandatory encrypted identity backup on first use; `hosting publish --private [--rekey]`; `storage mount` FUSE volume (Linux, `fuse` feature, no libfuse). - Gateways serve a static browser decrypt loader at /p/<id>/ (strict CSP); the key stays in the URL fragment, the browser verifies the owner's Ed25519 signature and renders in an opaque-origin sandbox. - OpenDisk descriptor advertises encrypted support. - Docs: docs/private-storage.md with the threat model, DIP-0012 implemented, getting-started "Private storage" section. - Tests: 3-copy replication e2e scanning every node for plaintext, gateway serves ciphertext only, challenge on ciphertext, share/revoke over the network; FUSE round trip (CI installs fuse3, C0MPUTE_REQUIRE_FUSE=1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(CodeQL) fuser < 0.16 has an uninitialized memory read and leak; move the FUSE volume to 0.18 (&self callbacks behind a Mutex, newtype ids). The browser loader keeps site paths in Maps so an owner-chosen path like __proto__ can never reach an object prototype. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sh1pt-actions-fleet
Bot
force-pushed
the
feat/private-storage-e2e
branch
from
November 9, 2026 12:32
9eb39f1 to
e8f0ecc
Compare
ralyodio
added a commit
that referenced
this pull request
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Private storage, finished and on by default (DIP-0012
privatetier). Node operators now only ever hold ciphertext for anything that is not deliberately public. Public hosted sites are unchanged and stay plaintext.c0mpute-sealed(formatc0mpute-private-v1):Debugnever prints keys or plaintext.c0mpute dmkeyfile: Argon2id, encrypted backup) under their own HKDF labels. First use forces a backup, either written and read back (--backup-to) or confirmed by typing SAVED, with a loud lost-keys-means-lost-data warning.c0mpute storage putencrypts by default.--publickeeps the old plaintext path, and--localkeeps ciphertext on this node.storage get c0p1:...(decrypts here;--rawshows what operators hold),share --with c0ps1...(header-only rewrap),revoke --from(re-seals under a new key and kills old links),link,rm c0p1:(tombstone),ls --private(encrypted local index), andkey init|show|backup.c0mpute hosting publish --private [--rekey]. Gateways serve a fixed loader at/p/<id>/under a strict CSP.#fragment, which is never sent to the gateway. It verifies the owner's Ed25519 signature and the blake3 site-id binding, then renders in an opaque-origin sandboxed frame.application/octet-stream. Gateways never decrypt.c0mpute storage mount DIRis a FUSE filesystem on Linux, behind thefusecargo feature (on by default). It uses pure-Rust fuser with no libfuse, so the static musl release build has nothing new to link. Each file becomes a private object, and the directory is one more.accepts.encrypted: trueandc0mpute.private_storage.docs/private-storage.md(usage and threat model: what operators can and cannot see), DIP-0012 marked implemented, CIP-011 noted as implemented differently, and a new "Private storage" section on c0mpute.com/getting-started.Review
An independent adversarial crypto review ran before this PR, and every finding was fixed:
Debugis redacted;put_sitekeeps shares;verify_strict;Tests
c0mpute-sealed, 30 tests:sealed_store: put/get/share/revoke/delete, multipart reassembly with full revoke, private sites keep their link across versions and--rekeykills it, volumes persist and hide names, and the local index is encrypted.tests/private_storage_e2e.rs, 5 hosting nodes on loopback libp2p:mount::tests::fuse_write_read_round_trip: a real FUSE mount covering mkdir, write, rename, remount from the store alone, and remove, with the store checked for ciphertext only. CI installs fuse3 and setsC0MPUTE_REQUIRE_FUSE=1, so the test cannot skip silently.🤖 Generated with Claude Code