imbajin commented on PR #2962:
URL: https://github.com/apache/hugegraph/pull/2962#issuecomment-4053860998

   > While working on this change, I noticed a couple of related behaviors that 
appear to predate this PR. The /v1/members/change endpoint relies on 
RestAuthentication, where Authentication.authenticate() currently validates 
only the username portion of Basic Auth. I also noticed that GrpcAuthentication 
does not appear to be wired into the gRPC server. These are outside the scope 
of this fix, but I thought it might be helpful to mention in case they are 
worth tracking separately. Also worth noting: IpAuthHandler.refresh() is wired 
through RaftEngine.changePeerList(), but PDService.updatePdRaft() calls 
node.changePeers() directly, so the refresh won't fire for that path.
   
   Some context about the auth system in PD/Store:
   - 
https://github.com/apache/hugegraph/commit/5eeeb9a61247385e472607e541526902588e8fd5
   
   To put it simply, PD/Store didn't have a strict auth mechanism due to legacy 
design decisions. Since these and other gRPC components were meant to be 
internal-only, only the graph server was originally built with a formal 
public-facing auth interface. We later added a basic, quick-and-dirty auth 
layer for security, but the current implementation remains incomplete. We plan 
to systematically refactor this later, but for now, let's just add TODOs in the 
relevant places


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to