forked from ovn-org/ovn
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd: Fix issues in RBAC tables recovery.
Northd creates hardcoded RBAC role 'ovn-controller' with number of predefined permissions. Then it watches for alternations of the role and permissions and recover them if they were changed. An original code have issues that prevents an user to create any other roles. Also, builtin permissions are not fully protected against modifications. The fix reworks this code to recover builtin permissions properly after all possible modification scenarios. Also, creation of custom roles and permissions becomes available. Signed-off-by: Aleksandr Smirnov <[email protected]> Tested-by: Aleksandr Gnatyuk <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]> (cherry picked from commit 90dc1c2)
- Loading branch information
1 parent
17b17df
commit b4bed43
Showing
2 changed files
with
161 additions
and
39 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