cleansh-core 0.1.6

Core library for CleanSH, providing essential data sanitization rules, compilation, and application logic independent of the CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// cleansh-core/src/remediation/vault.rs
use anyhow::Result;
use async_trait::async_trait;
use crate::remediation::fingerprint::SecretFingerprint;

#[async_trait]
pub trait FingerprintVault: Send + Sync {
    /// Pushes a new fingerprint to the organization-wide store.
    async fn publish(&self, fingerprint: SecretFingerprint) -> Result<()>;

    /// Fetches all active fingerprints for the local instance to use.
    async fn fetch_all(&self) -> Result<Vec<SecretFingerprint>>;
}