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

View File

@@ -52,10 +52,11 @@ type Dataset struct {
}
type Share struct {
ID UUID
Name string
Path string
Type string // nfs or smb
ID UUID
Name string
Path string
Type string // nfs or smb
Config map[string]string
}
type LUN struct {
@@ -73,4 +74,5 @@ type Job struct {
Owner UUID
CreatedAt time.Time
UpdatedAt time.Time
Details map[string]any
}