More webui layout, navigation, preparations of user/roles/groups/security
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user