mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 17:12:10 +01:00
feat: add repository pattern, service layer architecture, and scheduler management
- Implement repository pattern for data access layer - Add comprehensive service layer for business logic - Create scheduler management system with health monitoring - Add bounded buffer utility for memory management - Enhance security audit logging with retention policies
This commit is contained in:
@ -23,6 +23,7 @@ export interface AuditLogEntry {
|
||||
context?: AuditLogContext;
|
||||
}
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */
|
||||
export enum SecurityEventType {
|
||||
AUTHENTICATION = "AUTHENTICATION",
|
||||
AUTHORIZATION = "AUTHORIZATION",
|
||||
@ -37,7 +38,9 @@ export enum SecurityEventType {
|
||||
SYSTEM_CONFIG = "SYSTEM_CONFIG",
|
||||
API_SECURITY = "API_SECURITY",
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars, no-unused-vars */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */
|
||||
export enum AuditOutcome {
|
||||
SUCCESS = "SUCCESS",
|
||||
FAILURE = "FAILURE",
|
||||
@ -45,7 +48,9 @@ export enum AuditOutcome {
|
||||
RATE_LIMITED = "RATE_LIMITED",
|
||||
SUSPICIOUS = "SUSPICIOUS",
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars, no-unused-vars */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */
|
||||
export enum AuditSeverity {
|
||||
INFO = "INFO",
|
||||
LOW = "LOW",
|
||||
@ -53,6 +58,7 @@ export enum AuditSeverity {
|
||||
HIGH = "HIGH",
|
||||
CRITICAL = "CRITICAL",
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars, no-unused-vars */
|
||||
|
||||
class SecurityAuditLogger {
|
||||
private isEnabled: boolean;
|
||||
|
||||
Reference in New Issue
Block a user