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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user