-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-13957] Update RBAC wrapper for xCluster DR
Summary: 7fef119 / D36651 adds a new action `XCLUSTER` and modifies the permissions for xCluster replication / xCluster DR APIs. ``` { "requestType": "DELETE", "endpoint": "/api/v1/customers/$cUUID<[^/]+>/dr_configs/$drUUID<[^/]+>", "rbacPermissionDefinitions": { "operator": "OR", "rbacPermissionDefinitionList": [ { "operator": "AND", "rbacPermissionList": [ { "resourceType": "UNIVERSE", "action": "XCLUSTER" }, { "resourceType": "UNIVERSE", "action": "XCLUSTER" } ] } ] } }, ``` This diff updates the RBAC wrapper on the UI to support the change in permission requirements. We now pass the source and target universe uuid to validate the user has permission to perform `XCLUSTER` action on those resources. Test Plan: - Create readonly user. Verify that the readonly user can't perform any xCluster/xCluster DR actions. {F274627} - Create a user with xCluster permissions on both source and target. Verify the user can perform xCluster/xCluster DR actions. {F274634} - Create a user with xCluster permission only on source universe and read only permission on target universe. Verify the user is not able to perform xCluster replication/xCluster DR actions. {F274629} {F274631} {F274655} {F274663} - The user can try to create an xCluster config on the source universe, but they won't be able to select any target universe that they don't have xCluster permission for. Reviewers: vbansal, kkannan, hzare, cwang Reviewed By: kkannan Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D37175
- Loading branch information
Showing
10 changed files
with
215 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.