Pulse/pkg/auth
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
..
auth_test.go feat: remove Enterprise badges, simplify Pro upgrade prompts 2026-01-09 16:51:08 +00:00
authorizer.go feat(rbac): add OIDC group mapping tests and audit logging for RBAC actions 2026-01-09 19:25:33 +00:00
coverage_test.go feat: remove Enterprise badges, simplify Pro upgrade prompts 2026-01-09 16:51:08 +00:00
password.go feat: remove Enterprise badges, simplify Pro upgrade prompts 2026-01-09 16:51:08 +00:00
permissions.go feat: remove Enterprise badges, simplify Pro upgrade prompts 2026-01-09 16:51:08 +00:00
policy_evaluator.go feat(auth): add policy evaluator and SQLite auth manager for RBAC 2026-01-12 15:20:49 +00:00
policy_evaluator_test.go feat(auth): add policy evaluator and SQLite auth manager for RBAC 2026-01-12 15:20:49 +00:00
rbac.go fix(agent): add FreeBSD platform support to agent download and UI (#1051) 2026-01-11 23:51:12 +00:00
rbac_manager.go fix: replace hallucinated upgrade URLs with correct pulserelay.pro 2026-01-10 22:45:40 +00:00
rbac_manager_test.go fix: replace hallucinated upgrade URLs with correct pulserelay.pro 2026-01-10 22:45:40 +00:00
sqlite_manager.go fix: harden SQLite against I/O contention causing persistent lock errors 2026-02-02 17:29:14 +00:00
sqlite_manager_test.go feat(auth): add policy evaluator and SQLite auth manager for RBAC 2026-01-12 15:20:49 +00:00
token.go feat: remove Enterprise badges, simplify Pro upgrade prompts 2026-01-09 16:51:08 +00:00