fix: use pure Go SQLite driver for arm64 compatibility

Switch from mattn/go-sqlite3 (CGO) to modernc.org/sqlite (pure Go)
for auth, audit, and notification queue storage. This enables SQLite
functionality on arm64 Docker images which are built with CGO_ENABLED=0.

Related to #1140
This commit is contained in:
rcourtman 2026-01-21 18:58:23 +00:00
parent b030584248
commit c44cb5af5b
5 changed files with 8 additions and 11 deletions

View file

@ -10,8 +10,8 @@ import (
"time"
"github.com/google/uuid"
_ "github.com/mattn/go-sqlite3"
"github.com/rs/zerolog/log"
_ "modernc.org/sqlite"
)
// SQLiteManagerConfig configures the SQLite RBAC manager.
@ -43,7 +43,7 @@ func NewSQLiteManager(cfg SQLiteManagerConfig) (*SQLiteManager, error) {
dbPath := filepath.Join(rbacDir, "rbac.db")
db, err := sql.Open("sqlite3", dbPath)
db, err := sql.Open("sqlite", dbPath)
if err != nil {
return nil, fmt.Errorf("failed to open rbac database: %w", err)
}