Struct holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::config::LairServerConfigInner
source · #[non_exhaustive]pub struct LairServerConfigInner {
pub connection_url: Url,
pub pid_file: PathBuf,
pub store_file: PathBuf,
pub signature_fallback: LairServerSignatureFallback,
pub runtime_secrets_salt: BinDataSized<16>,
pub runtime_secrets_mem_limit: u32,
pub runtime_secrets_ops_limit: u32,
pub runtime_secrets_context_key: SecretDataSized<32, 49>,
pub runtime_secrets_id_seed: SecretDataSized<32, 49>,
}
Expand description
Inner config type used by lair servers. This will be wrapped in an
Arc
in the typedef LairServerConfig.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.connection_url: Url
The connection url for communications between server / client.
unix:///path/to/unix/socket?k=Yada
named_pipe:\\.\pipe\my_pipe_name?k=Yada
tcp://127.0.0.1:12345?k=Yada
pid_file: PathBuf
The pid file for managing a running lair-keystore process
store_file: PathBuf
The sqlcipher store file for persisting secrets
signature_fallback: LairServerSignatureFallback
Configuration for managing sign_by_pub_key fallback in case the pub key does not exist in the lair store.
runtime_secrets_salt: BinDataSized<16>
salt for decrypting runtime data
runtime_secrets_mem_limit: u32
argon2id mem_limit for decrypting runtime data
runtime_secrets_ops_limit: u32
argon2id ops_limit for decrypting runtime data
runtime_secrets_context_key: SecretDataSized<32, 49>
the runtime context key secret
runtime_secrets_id_seed: SecretDataSized<32, 49>
the server identity signature keypair seed
Implementations§
source§impl LairServerConfigInner
impl LairServerConfigInner
sourcepub fn from_bytes(bytes: &[u8]) -> Result<LairServerConfigInner, OneErr>
pub fn from_bytes(bytes: &[u8]) -> Result<LairServerConfigInner, OneErr>
decode yaml bytes into a config struct
sourcepub fn new<P>(
root_path: P,
passphrase: BufRead
) -> impl Future<Output = Result<LairServerConfigInner, OneErr>> + Send + 'static
pub fn new<P>( root_path: P, passphrase: BufRead ) -> impl Future<Output = Result<LairServerConfigInner, OneErr>> + Send + 'static
Construct a new default lair server config instance. Respects hc_seed_bundle::PwHashLimits.
sourcepub fn get_connection_scheme(&self) -> &str
pub fn get_connection_scheme(&self) -> &str
Get the connection “scheme”. i.e. “unix”, “named-pipe”, or “tcp”.
sourcepub fn get_connection_path(&self) -> PathBuf
pub fn get_connection_path(&self) -> PathBuf
Get the connection “path”. This could have different meanings depending on if we are a unix domain socket or named pipe, etc.
sourcepub fn get_server_pub_key(&self) -> Result<BinDataSized<32>, OneErr>
pub fn get_server_pub_key(&self) -> Result<BinDataSized<32>, OneErr>
Get the server pub key BinDataSized<32> bytes from the connectionUrl
Trait Implementations§
source§impl Clone for LairServerConfigInner
impl Clone for LairServerConfigInner
source§fn clone(&self) -> LairServerConfigInner
fn clone(&self) -> LairServerConfigInner
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LairServerConfigInner
impl Debug for LairServerConfigInner
source§impl<'de> Deserialize<'de> for LairServerConfigInner
impl<'de> Deserialize<'de> for LairServerConfigInner
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<LairServerConfigInner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LairServerConfigInner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Display for LairServerConfigInner
impl Display for LairServerConfigInner
source§impl Serialize for LairServerConfigInner
impl Serialize for LairServerConfigInner
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl RefUnwindSafe for LairServerConfigInner
impl Send for LairServerConfigInner
impl Sync for LairServerConfigInner
impl Unpin for LairServerConfigInner
impl UnwindSafe for LairServerConfigInner
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.