Access Control: Remove built-in role assignment by default (#49058)

* Remove FF-bultins

* Add a param to test br-simplifying
This commit is contained in:
Gabriel MABILLE authored and GitHub committed 2022-05-19 09:29:36 +02:00
1 parent a3c5834594
commit 5b6d20fbce
7 files changed
+7 -18

No files matched your search

+4
View File
@@ -447,6 +447,9 @@ type Cfg struct {
// Access Control
RBACEnabled bool
RBACPermissionCache bool
// Undocumented option as a backup in case removing builtin-role assignment
// fails
RBACBuiltInRoleAssignmentEnabled bool
}
type CommandLineArgs struct {
@@ -1360,6 +1363,7 @@ func readAccessControlSettings(iniFile *ini.File, cfg *Cfg) {
rbac := iniFile.Section("rbac")
cfg.RBACEnabled = rbac.Key("enabled").MustBool(true)
cfg.RBACPermissionCache = rbac.Key("permission_cache").MustBool(true)
cfg.RBACBuiltInRoleAssignmentEnabled = rbac.Key("builtin_role_assignment_enabled").MustBool(false)
}
func readUserSettings(iniFile *ini.File, cfg *Cfg) error {