[FEATURE] Improve Create Action Group UX to ensure valid action groups are created #1713
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed, need help from community
triaged
The current user interface for creating action groups in the OpenSearch Security plugin allows for the combination of actions from different categories within a single group. These categories are:
Ideally, all actions within a single action group should belong to the same category. Although it's technically possible to mix action types in a group, this practice is ineffective for role assignment purposes. Only actions belonging to the category relevant to the role's section will be acknowledged during authorization checks.
For example, consider an action group that includes both a cluster action (
cluster:monitor/health
) and an index action (indices:data/read/search
). To utilize all permissions in this action group, it must be assigned to both thecluster_permissions
andindex_permissions
sections of a role. If this action group is only assigned to thecluster_permissions
section, then the index actions in the group will not be effective.Here's an example of how a role is defined:
This structure implies that when defining roles, careful attention should be paid to the categorization of actions in action groups to ensure effective permission assignments.
The text was updated successfully, but these errors were encountered: