fix: RBAC bind cluster-admin + list namespaces + TEST_MODE multi-tenant test

This commit is contained in:
Naeel
2026-04-19 15:41:11 +03:00
parent 9ebd36eed3
commit 551a5b2f8e
2 changed files with 110 additions and 76 deletions
+7 -1
View File
@@ -5,13 +5,19 @@ metadata:
rules:
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "create"]
verbs: ["get", "create", "list"]
- apiGroups: ["fission.io"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["rolebindings"]
verbs: ["get", "create"]
# bind позволяет создавать RoleBindings ссылающиеся на cluster-admin
# без необходимости самому иметь все его права (RBAC escalation prevention)
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterroles"]
resourceNames: ["cluster-admin"]
verbs: ["bind"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "patch"]