[OPA] Fix OPA middleware to comply with OPA V1#8084
Conversation
- Add support to validate policy before and after request with IMiddlewareContext (access to input arguments) - Add OPA request extensions handler support - Fix unit tests - Other fixes
…equest/DefaultQueryRequestFactory.cs
…equest/OpaQueryRequest.cs
|
Hey @stoyanovskydmitry, this PR looks very good ... I will merge it today if all tests are green. Thank you a lot for work on this. I will integrate it with the next preview of HotChocolate 15.1 |
|
It looks like something wrong with OPA tests env: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8084 +/- ##
==========================================
+ Coverage 74.02% 74.15% +0.13%
==========================================
Files 2664 2665 +1
Lines 140319 140322 +3
Branches 16338 16323 -15
==========================================
+ Hits 103873 104059 +186
+ Misses 30879 30683 -196
- Partials 5567 5580 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Glen <glen.84@gmail.com>
|
This is now integrated into 15.1.0-p.17 |
There is no known assoicated bug number, only discussion here: https://hotchocolategraphql.slack.com/archives/CD9TNKT8T/p1739806911182499
Partially related ticket #5541.