More webui layout, navigation, preparations of user/roles/groups/security

This commit is contained in:
2026-07-16 22:00:02 +02:00
parent 324367abd7
commit 63deb02d39
13 changed files with 1352 additions and 31 deletions
+19
View File
@@ -1,8 +1,27 @@
package settings
// GroupScopeKind identifies what a group scopes to.
type GroupScopeKind string
const (
GroupScopeNode GroupScopeKind = "node"
GroupScopeGroup GroupScopeKind = "group"
)
// Group configures a named permission set for a given scope target.
//
// Groups are persisted in settings.json and later used by authz middleware.
type Group struct {
Name string `json:"name"`
ScopeKind GroupScopeKind `json:"scope_kind"`
ScopeName string `json:"scope_name"`
Permissions []string `json:"permissions"`
}
// Settings holds plain (non-secret) base/CLI configuration.
type Settings struct {
LogLevel string `json:"log_level"`
Groups []Group `json:"groups"`
}
// Secrets holds sensitive configuration encrypted at rest.