Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/geode-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@
//! public key -- the operator never needs a recipient secret). The old epoch
//! `recipients.json` is left untouched so a remaining recipient can still
//! unwrap the **old** EK and open old-epoch objects without reseal; dropping a
//! recipient without reseal is a documented **incomplete revocation**.
//! recipient without reseal is a documented **incomplete revocation**. Callers
//! must reseal when the vault holds entries, since the new-epoch manifest
//! starts empty.
//! `reseal` rewrites every old-epoch object under the new EK at the new epoch
//! (fresh `object_id` per object) and writes a new-epoch manifest; a dropped
//! recipient has no wrap of the new EK and cannot read the rewritten objects.
Expand Down
7 changes: 7 additions & 0 deletions crates/geode-core/src/rotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
//! and open old-epoch objects (04 6). Dropping a recipient without reseal is
//! a **documented incomplete revocation**: the dropped recipient retains
//! their old-epoch wrap and can still read old objects (10-policy; SPEC).
//! Callers must reseal when the vault holds entries: `commit_rotation` lays
//! down an empty new-epoch manifest, so without a reseal the entries vanish
//! from the current epoch.
//!
//! ## Reseal
//!
Expand Down Expand Up @@ -161,6 +164,10 @@ pub fn plan_rotation(isk: &IdentitySecret, plan: &RotatePlan<'_>) -> Result<Rota
/// objects remain), so a remaining recipient can still open old-epoch
/// objects via the old EK without reseal (04 6). `generator` is the
/// `generator` string for the new manifest header.
///
/// The new-epoch manifest is empty, so callers must reseal (or refuse the
/// rotation) when the vault holds entries; otherwise they drop out of the
/// current epoch.
pub fn commit_rotation(
vault_root: &Path,
vault_id: VaultId,
Expand Down
Loading