- 
                Notifications
    You must be signed in to change notification settings 
- Fork 337
Closed
Labels
bugSomething isn't workingSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Description
What is the bug?
The user created a role with the same name as the predefined one, and when the user runs the upgrade API, it will override the user-defined role. Furthermore, upgrade APIs should give users the choice to select which roles to upgrade and also show which permissions are getting removed or added; currently, it just gives add, modify, etc.
How can one reproduce the bug?
Steps to reproduce the behavior:
- Create a role with the same name as the predefined role (e.g., a role added in a higher version) with permissions different from the predefined role in the higher version.
- Trigger Upgrade check API to upgrade the role; it will override the user defined permissions instead of adding
What is the expected behavior?
- Upgrade APIs should not consider roles that are user-defined, even if they are predefined.
- Upgrade should allow user to pick which role to upgrade instead of updating all
What is your host/environment?
- OS: [Linux]
- Version [OpenSearch 2.15+]
- Plugins [Security plugin]
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.Issues labeled as 'Triaged' have been reviewed and are deemed actionable.