๐ก๏ธ Naru
Securing the Backbone of Modern Applications
Naru (naru-config) is an industrial-grade, security-first configuration engine. Built with Rust 2021 edition, it provides a tamper-evident, schema-enforced ecosystem for managing application secrets and environment variables in high-stakes production environments.
Explore Documentation โข Report an Issue โข Request a Feature
๐ฅ Why Naru?
| Feature | Description |
|---|---|
| Zero-Trust Encryption | All sensitive data is protected by AES-256-GCM with SHA-256 key derivation. |
| Immutable Audit Trail | Every mutation is cryptographically signed and chained, creating a tamper-evident history. |
| Industrial Validation | Enforce strict types, numeric ranges, and Regex patterns before data ever leaves the CLI. |
| Atomic & Thread-Safe | OS-level advisory locking ensures zero data corruption during concurrent operations. |
| Modern Interop | Native handling of .env, YAML, JSON, and TOML with intelligent merging logic. |
| Battle-Tested | 264+ automated tests including penetration testing and security analysis. |
๐ Getting Started in 3 Steps
1. Installation
From crates.io:
From source:
2. Initialize your Vault
3. Secure a Configuration
# Define the validation rule
# Set the value (automatically encrypted and validated)
๐๏ธ Architecture at a Glance
Naru follows a Clean Architecture pattern, isolating its cryptographic core from external I/O.
src/core: The Stateless Engine. Pure business logic, validation, and crypto.src/cli: The Interface. High-performance command parsing and TUI.src/persistence: The Safe. Atomic file operations and OS-level locking.
๐งช Testing & Development
Naru includes a comprehensive testing suite with 257+ automated tests:
# Run all tests
# Run penetration tests
# Run security analysis
# Run with output
Test Coverage
- โ Penetration Tests - 8 exploit scenarios (race conditions, path traversal, injection)
- โ Security Tests - Encryption, validation, audit integrity
- โ Deep Security Analysis - DoS, timing attacks, information leaks
- โ Integration Tests - End-to-end workflow validation
๐ค Contributing
We believe in open security. Check our Contributing Guide to see how you can help strengthen the Naru ecosystem.