Pulse/pkg/audit
rcourtman 3b347b6548 fix: harden SQLite against I/O contention causing persistent lock errors
- Move all SQLite pragmas from db.Exec() to DSN parameters so every
  connection the pool creates gets busy_timeout and other settings.
  Previously only the first connection had these applied.
- Set MaxOpenConns(1) on audit, RBAC, and notification databases
  (metrics already had this). Fixes potential for multiple connections
  where new ones lack busy_timeout.
- Increase busy_timeout from 5s to 30s across all databases to
  tolerate disk I/O pressure during backup windows.
- Fix nested query deadlocks in GetRoles(), GetUserAssignments(), and
  CancelByAlertIDs() that would deadlock with MaxOpenConns(1).
- Fix circuit breaker retryInterval not resetting on recovery, which
  caused the next trip to start at 5-minute backoff instead of 5s.

Related to #1156
2026-02-02 17:29:14 +00:00
..
audit.go feat(enterprise): add Advanced Reporting and Audit Webhooks integration 2026-01-09 21:31:49 +00:00
audit_test.go feat(audit): Add audit log API endpoints and UI with signature verification 2026-01-08 19:19:57 +00:00
export.go refactor: Add testability improvements to core packages 2026-01-19 19:25:38 +00:00
export_test.go test: Add comprehensive test coverage across packages 2026-01-19 19:26:18 +00:00
signer.go feat(audit): add comprehensive audit logging system 2026-01-12 15:20:33 +00:00
signer_test.go feat(audit): add comprehensive audit logging system 2026-01-12 15:20:33 +00:00
sqlite_logger.go fix: harden SQLite against I/O contention causing persistent lock errors 2026-02-02 17:29:14 +00:00
sqlite_logger_test.go feat(audit): add comprehensive audit logging system 2026-01-12 15:20:33 +00:00
tenant_logger.go feat: add multi-tenant isolation foundation (disabled by default) 2026-01-23 21:42:27 +00:00
tenant_logger_manager_test.go test: expand backend coverage 2026-01-25 21:08:44 +00:00
webhook.go security: SSRF protection for webhook URLs 2026-01-22 00:42:23 +00:00
webhook_validation_test.go test: expand backend coverage 2026-01-25 21:08:44 +00:00