-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy pathrbac_registry.py
More file actions
32 lines (29 loc) · 1.03 KB
/
rbac_registry.py
File metadata and controls
32 lines (29 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Central RBAC action registry list.
This module provides the canonical list of all RBAC action classes
that should be registered in the PermissionControllerService.
Keeping this list in a lightweight module allows tests to verify
registry completeness without importing the full service factory.
"""
from ai.backend.manager.actions.action.rbac import BaseRBACAction
from ai.backend.manager.actions.action.rbac_session import (
SessionCreateRBACAction,
SessionGetRBACAction,
SessionGrantAllRBACAction,
SessionGrantHardDeleteRBACAction,
SessionGrantReadRBACAction,
SessionGrantUpdateRBACAction,
SessionHardDeleteRBACAction,
SessionSearchRBACAction,
SessionUpdateRBACAction,
)
RBAC_ACTION_REGISTRY: list[type[BaseRBACAction]] = [
SessionCreateRBACAction,
SessionGetRBACAction,
SessionSearchRBACAction,
SessionUpdateRBACAction,
SessionHardDeleteRBACAction,
SessionGrantAllRBACAction,
SessionGrantReadRBACAction,
SessionGrantUpdateRBACAction,
SessionGrantHardDeleteRBACAction,
]