Some checks failed
CI/CD Pipeline / Code Format (push) Failing after 1s
CI/CD Pipeline / Clippy Lints (push) Failing after 43s
CI/CD Pipeline / Enrollment Tests (push) Has been skipped
CI/CD Pipeline / Verify Enrollment CLI Flag (push) Has been skipped
CI/CD Pipeline / All Unit Tests (push) Successful in 1m14s
CI/CD Pipeline / Build Debian Package (push) Has been skipped
CI/CD Pipeline / Build Debian Package (Ubuntu 22.04) (push) Has been skipped
CI/CD Pipeline / Build RPM Package (push) Has been skipped
CI/CD Pipeline / Build Alpine Package (push) Has been skipped
CI/CD Pipeline / Build Arch Package (push) Has been skipped
CI/CD Pipeline / Security Audit (push) Successful in 5s
- Phase 1: CLI args (--enroll flag), enroll module skeleton, config support - Phase 2: Registration request, polling loop (24h timeout), main.rs integration - Phase 3: PKI extraction, atomic cert writing, whitelist auto-append, mTLS transition - Phase 4: E2E test suite, README/DEPLOYMENT docs, CI pipeline - Phase 5: SPEC.md, API_DOCUMENTATION.md, CHANGELOG.md, ROADMAP.md sync Security review: APPROVED (0 critical, 0 high findings) Cross-distro compatible: Debian/Ubuntu, RHEL/CentOS/Fedora, Alpine, Arch Linux
28 lines
891 B
Rust
28 lines
891 B
Rust
//! Linux Patch API - Secure Remote Package Management
|
|
//!
|
|
//! A Rust-based API service for secure remote management of patching processes
|
|
//! and software add/remove operations on Linux systems.
|
|
//!
|
|
//! # Architecture
|
|
//!
|
|
//! - **API Layer**: HTTP/HTTPS endpoints with mTLS authentication
|
|
//! - **Auth Layer**: Certificate validation and IP whitelist enforcement
|
|
//! - **Job Manager**: Async job queue with WebSocket status streaming
|
|
//! - **Package Backend**: Pluggable package manager adapters
|
|
//! - **Audit Logger**: systemd journal + file fallback
|
|
//! - **Config Manager**: YAML config with auto-reload
|
|
|
|
pub mod api;
|
|
pub mod auth;
|
|
pub mod config;
|
|
pub mod enroll;
|
|
pub mod jobs;
|
|
pub mod logging;
|
|
pub mod packages;
|
|
pub mod systemd;
|
|
|
|
// Re-export commonly used types from submodules
|
|
pub use config::loader::AppConfig;
|
|
pub use jobs::manager::JobManager;
|
|
pub use logging::init::init_logging;
|