pub struct SecretsConfig {
pub recipients: Vec<String>,
}Expand description
~/.config/isb/secrets.toml: break-glass recipients.
recipients = [
"age1...",
"ssh-ed25519 AAAA... ops@example.com",
]Fields§
§recipients: Vec<String>Every value is also encrypted to these, so it can be recovered without the daemon’s key.
Implementations§
Source§impl SecretsConfig
impl SecretsConfig
Sourcepub fn default_path() -> PathBuf
pub fn default_path() -> PathBuf
$ISB_SECRETS_CONFIG, else ~/.config/isb/secrets.toml.
Sourcepub fn load(path: &Path) -> Result<SecretsConfig>
pub fn load(path: &Path) -> Result<SecretsConfig>
Load the file; a missing file is an empty config.
pub fn parse(text: &str) -> Result<SecretsConfig>
pub fn parsed_recipients(&self) -> Result<Vec<Recipient>>
Trait Implementations§
Source§impl Clone for SecretsConfig
impl Clone for SecretsConfig
Source§impl Debug for SecretsConfig
impl Debug for SecretsConfig
Source§impl Default for SecretsConfig
impl Default for SecretsConfig
Source§impl<'de> Deserialize<'de> for SecretsConfig
impl<'de> Deserialize<'de> for SecretsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SecretsConfig
impl PartialEq for SecretsConfig
Source§impl Serialize for SecretsConfig
impl Serialize for SecretsConfig
impl StructuralPartialEq for SecretsConfig
Auto Trait Implementations§
impl Freeze for SecretsConfig
impl RefUnwindSafe for SecretsConfig
impl Send for SecretsConfig
impl Sync for SecretsConfig
impl Unpin for SecretsConfig
impl UnsafeUnpin for SecretsConfig
impl UnwindSafe for SecretsConfig
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
Mutably borrows from an owned value. Read more