Add RBAC support with roles, permissions, and session management. Implement middleware for authentication and CSRF protection. Enhance audit logging with additional fields. Update HTTP handlers and routes for new features.

This commit is contained in:
2025-12-13 17:44:09 +00:00
parent d69e01bbaf
commit 8100f87686
44 changed files with 3262 additions and 76 deletions

17
migrations/0006_minio.sql Normal file
View File

@@ -0,0 +1,17 @@
-- 0006_minio.sql
CREATE TABLE IF NOT EXISTS object_storage (
id TEXT PRIMARY KEY,
name TEXT,
access_key TEXT,
secret_key TEXT,
data_path TEXT,
port INTEGER,
tls INTEGER DEFAULT 0,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS buckets (
id TEXT PRIMARY KEY,
name TEXT,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);