datapilot-cli
Version:
Enterprise-grade streaming multi-format data analysis with comprehensive statistical insights and intelligent relationship detection - supports CSV, JSON, Excel, TSV, Parquet - memory-efficient, cross-platform
78 lines • 2.85 kB
TypeScript
/**
* DataPilot Security Framework
* Main entry point for all security components
*/
export { InputValidator, getInputValidator, ExternalDataValidator } from './input-validator';
export { FileAccessController, getFileAccessController, SecureFileOperations, type FileAccessPolicy, type FileOperation, type SecureFileHandle, type AuditLogEntry, } from './file-access-controller';
export { SecurityConfigManager, getSecurityConfig, SecurityPolicyBuilder, SecurityProfiles, type SecurityPolicy, type SecurityConfiguration, DEFAULT_SECURITY_POLICY, } from './security-config';
export { SecurityAuditLogger, getSecurityAuditLogger, SecurityMonitor, type SecurityEvent, type SecurityEventType, type SecurityEventSeverity, type AuditConfiguration, type AlertRule, } from './audit-logger';
import type { LogContext } from '../utils/logger';
/**
* Initialize the security framework
*/
export declare function initializeSecurity(options?: {
environment?: 'development' | 'production' | 'ci' | 'test';
auditLogPath?: string;
enableAdvancedThreatDetection?: boolean;
}): Promise<void>;
/**
* Secure wrapper for file operations
*/
export declare class SecureDataPilot {
private inputValidator;
private fileController;
private auditLogger;
/**
* Securely validate and process a file path
*/
validateAndProcessFile(filePath: string, operation: 'read' | 'write' | 'analyze', context?: LogContext): Promise<{
isValid: boolean;
sanitizedPath?: string;
securityHandle?: any;
errors: string[];
}>;
/**
* Securely validate CLI options
*/
validateCLIOptions(options: Record<string, unknown>, context?: LogContext): {
isValid: boolean;
sanitizedOptions?: Record<string, unknown>;
errors: string[];
warnings: string[];
};
/**
* Get security status and statistics
*/
getSecurityStatus(): {
isHealthy: boolean;
statistics: any;
recentEvents: any[];
warnings: string[];
};
}
/**
* Get the global secure DataPilot instance
*/
export declare function getSecureDataPilot(): SecureDataPilot;
/**
* Security decorator for method execution monitoring
*/
export declare function securityMonitor(operation: string): (target: any, propertyName: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
/**
* Security utilities
*/
export declare const SecurityUtils: {
/**
* Sanitize error messages for safe display
*/
sanitizeErrorMessage(error: Error | string, hideSystemPaths?: boolean): string;
/**
* Generate secure random string
*/
generateSecureToken(length?: number): string;
/**
* Hash sensitive data
*/
hashSensitiveData(data: string, algorithm?: "sha256" | "sha512"): string;
};
//# sourceMappingURL=index.d.ts.map