-
Notifications
You must be signed in to change notification settings - Fork 936
security function basic extended readonly user automately switch to dba user(write privilege) #979
Comments
Hi,
If you want groups/roles then you should not use Right now |
Hi guy,it deployed with raft |
That's how Basic Auth works. I might be able to look into it in the future. |
I think I'm hitting the same issue. Our setup is as follows:
If we log in with the admin user on any node, we have full privileges and the follower nodes proxy our requests to the leader, as expected. If we log in with the readonly user on the leader node, we have read only privileges, as expected. @shlomi-noach I suspect this commit has something to do with this. It looks like every request to a follower node is proxied to the leader with elevated privileges, enabling read-write access through the known |
Thank you for this analysis.
I think thta commit is unrelated: it only sets up the initial credentials between client and whichever |
@shlomi-noach can you take another look at this line? d374876#diff-781f3fb2f9ee523020bb7940288434b98c8942f08a297b670b8af90da234d5d3R37 I read that as "set the credentials from the config for every request that's proxied to the raft leader". Am I reading it wrong? |
Thank you, I think you may be right. I haven't touched this part of the code for years now and have gone out of touch. I'm gonna need some time to regain the context and focus, though, and think of the correct solution (unless you are able to propose the correct path forward, that is). |
#1349 is merged and is supposed to solve this issue. |
@402309718 @andrein would either of you be able to confirm #1349 fixed the issue on your env? |
when I try to test auth fuction I found basic extended with AuthenticationMethod=multi,I use readonly user login to non-leader node,but it switch the writable user ,I login to th leader node ,it shows readonly
about redirect this part whether exists some problem,and if possiable it better add logout icon and add some group ,role
The text was updated successfully, but these errors were encountered: