Skip to main content

verify_existing_secret

Function verify_existing_secret 

Source
pub fn verify_existing_secret(
    existing: &Secret,
    desired: &Secret,
    owner: &OwnerReference,
) -> ExecResult<()>
Expand description

The existing Secret must be ours and byte-for-byte what we would create: same type, immutability, data, token id and rotation request. The name is content-addressed, so a difference means a conflicting writer, not a stale read.