@syntropysoft/praetorian
Version:
Praetorian CLI – A universal multi-environment configuration validator for DevSecOps teams. Validate, compare, and secure YAML/ENV files with ease.
24 lines • 940 B
TypeScript
/**
* Secret Detector - Functional Programming
*
* Single Responsibility: Detect exposed secrets only
* Pure functions, no state, no side effects
*/
import { SecretDetectionRule, SecretDetectionResult, SecurityContext, SecuritySeverity } from '../../shared/types/security';
/**
* Pure function to detect secrets in content
*/
export declare const detectSecrets: (content: string, rules: SecretDetectionRule[], context: SecurityContext) => SecretDetectionResult[];
/**
* Pure function to check if value looks like a secret
*/
export declare const looksLikeSecret: (value: string) => boolean;
/**
* Pure function to get secret severity
*/
export declare const getSecretSeverity: (confidence: number) => SecuritySeverity;
/**
* Pure function to validate secret context
*/
export declare const isValidSecretContext: (value: string, context: string, validContexts?: string[]) => boolean;
//# sourceMappingURL=SecretDetector.d.ts.map