Struct holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::config::LairServerConfigInner
#[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
impl LairServerConfigInner
impl LairServerConfigInner
pub fn from_bytes(bytes: &[u8]) -> Result<LairServerConfigInner, OneErr>
pub fn from_bytes(bytes: &[u8]) -> Result<LairServerConfigInner, OneErr>
decode yaml bytes into a config struct
pub fn new<P>(
root_path: P,
passphrase: BufRead
) -> impl Future<Output = Result<LairServerConfigInner, OneErr>> + Send + 'staticwhere
P: AsRef<Path>,
pub fn new<P>(
root_path: P,
passphrase: BufRead
) -> impl Future<Output = Result<LairServerConfigInner, OneErr>> + Send + 'staticwhere
P: AsRef<Path>,
Construct a new default lair server config instance. Respects hc_seed_bundle::PwHashLimits.
pub fn get_connection_scheme(&self) -> &str
pub fn get_connection_scheme(&self) -> &str
Get the connection “scheme”. i.e. “unix”, “named-pipe”, or “tcp”.
pub 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.
pub 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
impl Clone for LairServerConfigInner
impl Clone for LairServerConfigInner
fn clone(&self) -> LairServerConfigInner
fn clone(&self) -> LairServerConfigInner
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreimpl Debug for LairServerConfigInner
impl Debug for LairServerConfigInner
impl<'de> Deserialize<'de> for LairServerConfigInner
impl<'de> Deserialize<'de> for LairServerConfigInner
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>,
impl Display for LairServerConfigInner
impl Display for LairServerConfigInner
impl Serialize for LairServerConfigInner
impl Serialize for LairServerConfigInner
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
impl<T> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read morefn 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).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.