Commit d06babd
committed
[BACKPORT-2025.1.3][PLAT-19739]Skip updating roleBindings if old user is being used
Summary:
**Issue**
After enabling RBAC, YBA does not persist role changes that it overrides for LDAP users when the role lookup fails.
Refer - https://docs.yugabyte.com/stable/yugabyte-platform/administer-yugabyte-platform/ldap-authentication/#role-assignment
**Fix**
The fix skips the roleBinding reset in the unique case where the user’s role is not determined in the current session.
Test Plan:
- Configure LDAP auth -> Login with a user with no role -> (YBA defaults to readOnly) -> Login as superAdmin -> modify the role -> login again as ldap user -> role change is being persisted
Reviewers: skurapati
Reviewed By: skurapati
Subscribers: yugaware, skurapati
Differential Revision: https://phorge.dev.yugabyte.com/D505771 parent 0606ec0 commit d06babd
1 file changed
+10
-4
lines changedLines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
632 | 633 | | |
633 | 634 | | |
634 | 635 | | |
| |||
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
654 | 659 | | |
655 | 660 | | |
656 | 661 | | |
| |||
674 | 679 | | |
675 | 680 | | |
676 | 681 | | |
677 | | - | |
| 682 | + | |
678 | 683 | | |
| 684 | + | |
679 | 685 | | |
680 | 686 | | |
681 | 687 | | |
682 | | - | |
| 688 | + | |
683 | 689 | | |
684 | | - | |
| 690 | + | |
685 | 691 | | |
686 | 692 | | |
687 | 693 | | |
| |||
690 | 696 | | |
691 | 697 | | |
692 | 698 | | |
693 | | - | |
| 699 | + | |
694 | 700 | | |
695 | 701 | | |
696 | 702 | | |
| |||
0 commit comments