Keyless storage-only members of an encrypted filesystem

Open
#238 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend, security

Research direction

Start with ADR 0010 and ADR 0002, then find where join --storage-only refuses encrypted filesystems with StorageOnlyEncrypted. The work touches chunk sealing, integrity trailers, scrub, GC and repair, and a protocol version bump, so read the design thread in #184 first. Done means a keyless member can join, hold sealed replicas, and pass scrub, and scripts/check.sh passes. This is blocked by #237, so wait for that before starting.

Written by the indexing model from the issue text.

Description

ready-for-agent

What to build

A storage-only member of an encrypted filesystem (ADR 0010, #184/#237) should hold chunks without ever holding the filesystem key: it never encrypts or decrypts, it is just chunk storage. Today join --storage-only to an encrypted filesystem is refused (StorageOnlyEncrypted).

Chosen design (discussed in #184):

  • Chunks travel to and from a keyless member sealed (the stored envelope), never as plaintext.
  • A keyless member cannot hash plaintext to verify a chunk. It verifies integrity by a hash of the sealed bytes (an integrity trailer on the sealed envelope), and scrub uses the same check.
  • It does not take part in the metadata log (no plaintext entries, no readable database). GC and repair learn which chunks are referenced from a separate plaintext list of chunk ids and holders that keyed members publish.
  • It does not hold fs.key, and no recovery key is accepted on it.

Acceptance criteria

  • A storage-only member joins an encrypted filesystem with no key and holds replicas; its data directory contains no key and no plaintext chunk, name or metadata.
  • Replication, repair, GC and scrub work with it as a holder.
  • Keyed members read chunks that were fetched back from it.
  • Unencrypted filesystems and ordinary storage-only members behave as before.
  • Protocol bump (ADR 0002); ADR 0010 updated; scripts/check.sh passes.

Blocked by

#237 (encryption at rest).

Dominant language
Rust
Stars
0
Forks
0
Avg merge
56m
Merged PRs (30d)
55

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bmaltais/StartFS

All issues in bmaltais/StartFS

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.