pub enum RedactionState {
Redacted,
Declared,
Present,
}Expand description
The redaction state of one config key in a ConfigSecretReport. Three
states, because collapsing them would misreport two of them: “declared in
code” is not a redaction, and “value present” is not a safe one.
Variants§
Redacted
The value was read from a source file and replaced with the redaction placeholder before anything was persisted. The expected state for a secret-named key extracted from a config file.
Declared
The key carries no value at all — a struct-derived key
(meta.source = "struct"), a config field declared in Rust with no
literal in the code to redact.
Not a redaction and not a leak: it records that a setting by this name exists, which is the inventory’s job, and nothing about any value.
Present
The key carries a value that is not the redaction placeholder.
Extraction redacts every secret-named key, so this state is unreachable
from extraction alone. It is reachable through
Store::apply_import_layer, which
upserts whatever nodes an imported factset carries — so an import produced
by another tool, or by an older Roteiro, can put an unredacted value in the
store. That is worth reporting loudly, and it is a finding about this
store, not about the source repository.
Implementations§
Trait Implementations§
Source§impl Clone for RedactionState
impl Clone for RedactionState
Source§fn clone(&self) -> RedactionState
fn clone(&self) -> RedactionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RedactionState
Source§impl Debug for RedactionState
impl Debug for RedactionState
impl Eq for RedactionState
Source§impl PartialEq for RedactionState
impl PartialEq for RedactionState
Source§impl Serialize for RedactionState
impl Serialize for RedactionState
impl StructuralPartialEq for RedactionState
Auto Trait Implementations§
impl Freeze for RedactionState
impl RefUnwindSafe for RedactionState
impl Send for RedactionState
impl Sync for RedactionState
impl Unpin for RedactionState
impl UnsafeUnpin for RedactionState
impl UnwindSafe for RedactionState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.