pub struct ReplicatedSecret {
pub storage_key: String,
pub ciphertext: Vec<u8>,
pub dek_generation: u64,
pub metadata: SecretMetadata,
pub node_affinity: Option<NodeAffinity>,
}Expand description
A secret replicated through Raft. Every node has the same encrypted
blob; only nodes whose secrets_pubkey is in the current WrappedDek
for this generation can decrypt.
Fields§
§storage_key: String"{scope}:{name}" — same key shape used by PersistentSecretsStore.
ciphertext: Vec<u8>XChaCha20-Poly1305 ciphertext of the plaintext value, encrypted
under the cluster DEK at dek_generation. Nonce is prepended.
dek_generation: u64Which DEK generation produced ciphertext. After a rotation, the
state machine batches re-encrypts of every row whose dek_generation
is older than current.
metadata: SecretMetadataStandard secret metadata (name, version, timestamps).
node_affinity: Option<NodeAffinity>Optional per-secret affinity. None = any node may host (the
default). When set, only matching nodes are entitled to a wrap of
this row’s DEK material; the API gate also filters reads accordingly.
Trait Implementations§
Source§impl Clone for ReplicatedSecret
impl Clone for ReplicatedSecret
Source§fn clone(&self) -> ReplicatedSecret
fn clone(&self) -> ReplicatedSecret
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more