Version: 0.6.0
Install: cargo install naru-config
This guide provides a comprehensive reference for all Naru commands and their options.
Initializes a new Naru project in the current directory.
- Creates
.naru/directory. - Generates default
config.jsonandschema.json.
Sets a configuration value in the default environment.
--env, -e: Target environment (default:development).--secret, -s: Encrypt the value.
Retrieves a configuration value.
--env, -e: Environment to read from.
Lists all configuration keys and values in an environment.
--env, -e: Target environment.
Compares configuration values between two environments and shows the differences.
Adds a new field to the schema. Can be used interactively or with flags:
--key: Field name.--type: Data type (string,integer,boolean).--pattern: Regex pattern for strings.--secret: Mark as secret.
Displays the current validation schema in a readable format.
Shows the most recent configuration changes.
--count: Number of entries to show (default: 10).
Performs a cryptographic integrity check on the entire audit log trail.
Validates all configuration values in the project against the defined schema rules.
Imports configurations from external files.
- Supports
.env,.json,.yaml. --env, -e: Target environment.
Exports configurations from Naru to a file.
--file: Output path.--format:envoryaml.
Encrypts a standalone file using the project's master key.
Decrypts a previously encrypted file.
# Run all tests
cargo test
# Run specific test suites
cargo test penetration_tests # Penetration testing suite
cargo test security_tests # Security validation tests
cargo test deep_security_tests # Advanced security analysis
# Run tests with output
cargo test -- --nocapture- 257 tests covering all security aspects
- Penetration tests - 8 exploit scenarios
- Security tests - Encryption, validation, path traversal
- Deep security analysis - Race conditions, DoS, info leaks