Skip to content

Key rotation: enforce the cross-node key rollout order #1952

Open

Description

@bplatz

Problem

Key rotation (#1919) depends on a rollout order across nodes that share storage (docs/security/encryption.md, "Rollout order"):

  1. Add the new key to every node as a decrypt-only entry, and restart.
  2. Make it current on every node, and restart.
  3. Sweep, verify, then remove the old key.

Nothing enforces that order. A node that makes the new key current before every other node can decrypt with it writes blobs the lagging nodes cannot read. A node restarted with the retiring key already removed cannot read blobs still on it. Today each node reports its own key ids (GET /v1/fluree/encryption) and the docs give the order; the operator is the only check.

Wanted

A cluster-wide preflight: before a node starts writing with a new current key, or before a rotation starts, confirm that every node holds that key. Candidates:

  • a Raft-replicated key-set fingerprint that each node checks at startup against its own configuration;
  • or a leader-side check that polls members' key ids before POST /encryption/rotate is accepted.

Done when

  • A node whose key set does not include the cluster's current key refuses to serve writes, with an error naming the missing key id.
  • A rotation refuses to start while any member lacks the current or the retiring key.
  • The docs' rollout section describes what is enforced and what is still the operator's job.

Activity

  1. added
    enhancement
    P2
    area:server
    on Sep 25, 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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions