Skip to main content

LocalManagedSecretStore

Struct LocalManagedSecretStore 

Source
pub struct LocalManagedSecretStore { /* private fields */ }
Expand description

Version-1 encrypted local Managed-secret backend.

Implementations§

Source§

impl LocalManagedSecretStore

Source

pub fn initialize( deployment_id: Uuid, identity: ManagedSecretIdentity, ) -> Result<Self, ManagedSecretError>

Source

pub fn open( deployment_id: Uuid, identity: ManagedSecretIdentity, ) -> Result<Self, ManagedSecretError>

Source

pub fn open_verified( deployment_id: Uuid, identity: ManagedSecretIdentity, ) -> Result<Self, ManagedSecretError>

Opens a completely verified store without recovery or another mutation.

Source

pub fn open_selected_read_only( deployment_id: Uuid, identity: ManagedSecretIdentity, ) -> Result<SelectedManagedSecretReader, ManagedSecretError>

Opens the fixed store for selected, read-only resolution without recovering state or authenticating unrelated Secret envelopes.

Source

pub fn verify_all( deployment_id: Uuid, identity: ManagedSecretIdentity, ) -> Result<ManagedSecretVerification, ManagedSecretError>

Completely verifies the fixed active store without repair or mutation.

Source

pub fn rotate_root( deployment_id: Uuid, ) -> Result<RootRotationVerification, RootRotationError>

Stages a complete root-identity rotation at the fixed production paths. The active store and both identity projections are never replaced.

Source

pub fn list(&self) -> Result<Vec<ManagedSecretMetadata>, ManagedSecretError>

Returns safe metadata for every active Managed secret in canonical reference order. No ciphertext or Secret material crosses this seam.

Source

pub fn inspect( &self, reference: &ManagedSecretReference, ) -> Result<ManagedSecretMetadata, ManagedSecretError>

Authenticates one active envelope and returns only its safe metadata.

Trait Implementations§

Source§

impl Debug for LocalManagedSecretStore

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ManagedSecretBackend for LocalManagedSecretStore

Source§

fn create( &self, reference: &ManagedSecretReference, material: &SecretMaterial, ) -> Result<ManagedSecretMetadata, ManagedSecretError>

Source§

fn resolve( &self, reference: &ManagedSecretReference, ) -> Result<ResolvedManagedSecret, ManagedSecretError>

Source§

fn lookup_active_metadata( &self, reference: &ManagedSecretReference, ) -> Result<ManagedSecretMetadata, ManagedSecretError>

Authenticates the store manifest and looks up safe active metadata without opening the selected Secret envelope.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,