secret-vault 1.16.2

Library provides a secure vault to store securely application secrets in memory from Google/AWS/K8S and environment variables
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{Secret, SecretVaultRef, SecretVaultResult};
use async_trait::*;
use std::collections::HashMap;

#[async_trait]
pub trait SecretsSource {
    fn name(&self) -> String;

    async fn get_secrets(
        &self,
        references: &[SecretVaultRef],
    ) -> SecretVaultResult<HashMap<SecretVaultRef, Secret>>;
}