cloacina 0.4.0

A Rust library for resilient task execution and orchestration.
Documentation
/*
 *  Copyright 2025-2026 Colliery Software
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

//! Security module for package signing and key management.
//!
//! This module provides:
//! - [`KeyManager`] trait for managing signing keys and trust relationships
//! - [`DbKeyManager`] database-backed implementation
//! - Key generation, encryption, and PEM export/import
//! - Security audit logging for SIEM integration

pub mod api_keys;
pub mod audit;
mod db_key_manager;
mod key_manager;
mod package_signer;
mod verification;

pub use db_key_manager::DbKeyManager;
pub use key_manager::{KeyError, KeyManager, PublicKeyExport, SigningKeyInfo, TrustedKeyInfo};
pub use package_signer::{
    DbPackageSigner, DetachedSignature, PackageSignError, PackageSignatureInfo, PackageSigner,
};
pub use verification::{
    verify_package, verify_package_offline, SecurityConfig, SignatureSource, VerificationError,
    VerificationResult,
};