Put execution views filter list API endpoint behind RBAC wall.
@@ -94,6 +94,7 @@ class PermissionType(Enum):
EXECUTION_RE_RUN = 'execution_rerun'
EXECUTION_STOP = 'execution_stop'
EXECUTION_ALL = 'execution_all'
+ EXECUTION_VIEW_FILTERS_LIST = 'execution_view_filters_list'
RULE_LIST = 'rule_list'
RULE_VIEW = 'rule_view'
@@ -410,7 +411,10 @@ GLOBAL_PERMISSION_TYPES = [
PermissionType.API_KEY_CREATE,
# Policy global permission types
- PermissionType.POLICY_CREATE
+ PermissionType.POLICY_CREATE,
+
+ # Execution
+ PermissionType.EXECUTION_VIEW_FILTERS_LIST
] + LIST_PERMISSION_TYPES
GLOBAL_PACK_PERMISSION_TYPES = [permission_type for permission_type in GLOBAL_PERMISSION_TYPES if
@@ -472,6 +476,7 @@ PERMISION_TYPE_TO_DESCRIPTION_MAP = {
PermissionType.EXECUTION_STOP: 'Ability to stop (cancel) a running execution.',
PermissionType.EXECUTION_ALL: ('Ability to perform all the supported operations on a '
'particular execution.'),
+ PermissionType.EXECUTION_VIEW_FILTERS_LIST: ('Ability vew all the distinct execution filters'),
PermissionType.RULE_LIST: 'Ability to list (view all) rules.',
PermissionType.RULE_VIEW: 'Ability to view a rule.',
