module_registry/
constants.rs

1//! Constants for module registry
2
3// Default permission values
4pub const DEFAULT_MEMORY_LIMIT_MB: u64 = 128;
5pub const DEFAULT_CPU_LIMIT_PERCENT: u8 = 50;
6pub const DEFAULT_TIMEOUT_SECONDS: u64 = 30;
7
8// Security constants
9pub const SIGNATURE_EXPIRY_SECONDS: u64 = 365 * 24 * 60 * 60; // 1 year
10pub const DEFAULT_SIGNATURE_ALGORITHM: &str = "SHA256-RSA";
11
12// Sandbox defaults
13pub const DEFAULT_DENIED_PATHS: &[&str] = &["/etc", "/usr/bin", "/bin"];
14
15// Registry limits
16pub const MAX_MODULE_NAME_LENGTH: usize = 256;
17pub const MAX_MODULE_TYPE_LENGTH: usize = 128;
18pub const MAX_PATH_LENGTH: usize = 4096;