Skip to content

Encryption at rest: server rebuild staging directory setting, and the Raft log and snapshots #1955

Open

Description

@bplatz

Problem

Encryption at rest (docs/security/encryption.md) covers blobs written through the storage layer. Two server-side locations still hold plaintext ledger state on a server configured with a key:

  • Raft log and snapshots. Under Raft, nameservice state (ledger and branch names, heads, graph-source definitions and their configuration) is also held in each node's Raft log and snapshots under --raft-storage-path. The consensus crate has no encryption.
  • Index rebuild staging on the server. A full rebuild stages sorted commit runs, dictionaries and leaves in plaintext under IndexerConfig::data_dir. The server exposes no setting for it (build_direct_fluree never sets it, and the Raft leader-scope indexer uses IndexerConfig::default()), so server rebuilds always stage under $TMPDIR/fluree-index. The docs tell operators to point TMPDIR at an encrypted volume as a workaround.

Wanted

  • A server setting for the indexer data_dir, so rebuild staging can go to a chosen (encrypted) volume without changing TMPDIR for the whole process.
  • A decision on the Raft log and snapshots: encrypt them with the storage key set, or document them as a location that needs an encrypted volume.

Done when

  • The server accepts an indexer data directory setting, and the rebuild uses it.
  • The Raft log and snapshots are either encrypted or explicitly documented as requiring an encrypted volume, and docs/security/encryption.md says which.

Activity

  1. added
    enhancement
    P2
    area:server
    on Sep 26, 2026
  2. added this to the 5.0.0 milestone on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:serverenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions