nanjiek opened a new pull request, #732:
URL: https://github.com/apache/dubbo-go-pixiu/pull/732

   This PR adds support for Open Policy Agent (OPA) rules, allowing users to 
control API access through configurable policies. The core logic handles 
converting HTTP request data into a format that OPA can evaluate and uses the 
policy's result to decide whether to continue processing the request.
   
   @https://github.com/apache/dubbo-go-pixiu/issues/605
   
   Special notes for your reviewer:
   
     The key changes in this PR are located in the pkg/filter/opa directory. I 
have refactored the FilterFactory's Apply method and  Filter's Decode method.
     
     To validate this functionality, I've added a new test case, 
TestAllowedRule, in opa_test.go. This test case verifies:
     
     Correct OPA rule loading: It ensures the OPA policy is loaded and compiled 
correctly.
     
     Proper HTTP header handling: It uses a simple OPA policy to confirm that 
the filter can correctly access and evaluate the value of an special HTTP 
header.
   
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to