keyflux 0.1.11

A CLI tool and library for synchronizing environment secrets across multiple platforms including local files, GitHub Secrets, Supabase Vault, and Vercel Secrets. It facilitates secure management and automation of sensitive data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use log::{error, info, trace};
use crate::KeyManager;


pub async fn sync(manager: &mut KeyManager) -> Result<(), Box<dyn std::error::Error>> {
    trace!("{}", t!("trace.starting_sync"));
    if let Err(e) = manager.flux_keys().await {
        error!("{}", t!("error.sync_secrets", error = format!("{:?}", e.to_string())));
        return Err(Box::new(e));
    }
    info!("{}", t!("info.secrets_synced"));
    Ok(())
}