You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Key rotation: enforce the cross-node key rollout order #1952
P2Scheduled: real but not urgentarea:serverHTTP surface, routes, error mapping, swagger, timeouts/admission, config graphenhancementNew feature or request
Key rotation (#1919) depends on a rollout order across nodes that share storage (docs/security/encryption.md, "Rollout order"):
Add the new key to every node as a decrypt-only entry, and restart.
Make it current on every node, and restart.
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.
P2Scheduled: real but not urgentarea:serverHTTP surface, routes, error mapping, swagger, timeouts/admission, config graphenhancementNew feature or request
Activity