@syntropysoft/praetorian
Version:
Praetorian CLI – A universal multi-environment configuration validator for DevSecOps teams. Validate, compare, and secure YAML/ENV files with ease.
32 lines • 1.31 kB
TypeScript
/**
* Security Validator - Functional Programming
*
* Single Responsibility: Orchestrate security validation by delegating to pure functions
* No state, no side effects, pure functions only
*/
import { SecurityRule, SecurityContext, SecurityValidationResult } from '../../shared/types/security';
/**
* Pure function to validate security
*/
export declare const validateSecurity: (content: string, rules: SecurityRule[], context: SecurityContext) => SecurityValidationResult;
/**
* Pure function to get security severity level
*/
export declare const getSecuritySeverityLevel: (severity: string) => "critical" | "high" | "medium" | "low";
/**
* Pure function to check if security rule is critical
*/
export declare const isCriticalSecurityRule: (rule: SecurityRule) => boolean;
/**
* Pure function to check if security rule is enabled
*/
export declare const isSecurityRuleEnabled: (rule: SecurityRule) => boolean;
/**
* Pure function to filter security rules by type
*/
export declare const filterSecurityRulesByType: (rules: SecurityRule[], type: string) => SecurityRule[];
/**
* Pure function to filter security rules by severity
*/
export declare const filterSecurityRulesBySeverity: (rules: SecurityRule[], severity: string) => SecurityRule[];
//# sourceMappingURL=SecurityValidator.d.ts.map