Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: separate deny and allow rules #272

Merged
merged 5 commits into from
Dec 30, 2024
Merged

feat: separate deny and allow rules #272

merged 5 commits into from
Dec 30, 2024

Conversation

eddycharly
Copy link
Member

Explanation

Separate deny and allow rules.

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 48.57143% with 126 lines in your changes missing coverage. Please review.

Project coverage is 29.07%. Comparing base (2500b79) to head (cdd6a19).

Files with missing lines Patch % Lines
pkg/policy/compiler.go 56.28% 57 Missing and 23 partials ⚠️
pkg/authz/cel/libs/envoy/impl.go 27.58% 17 Missing and 4 partials ⚠️
pkg/authz/service.go 0.00% 21 Missing ⚠️
pkg/policy/provider.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #272      +/-   ##
==========================================
+ Coverage   27.20%   29.07%   +1.87%     
==========================================
  Files          30       30              
  Lines        1066     1183     +117     
==========================================
+ Hits          290      344      +54     
- Misses        728      791      +63     
  Partials       48       48              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eddycharly eddycharly force-pushed the allow-deny branch 5 times, most recently from 9120711 to 2b1c9a4 Compare December 19, 2024 00:57
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
@eddycharly eddycharly force-pushed the allow-deny branch 10 times, most recently from eddfd65 to a8ea3e1 Compare December 19, 2024 13:59
@eddycharly eddycharly marked this pull request as ready for review December 19, 2024 14:00
@eddycharly eddycharly requested a review from a team as a code owner December 19, 2024 14:00
@eddycharly eddycharly force-pushed the allow-deny branch 2 times, most recently from 2678bd5 to a5b095a Compare December 19, 2024 21:55
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
Copy link
Member

@vishal-chdhry vishal-chdhry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the allow and deny code looks very similar, will it be possible to remove the duplicate parts

@eddycharly
Copy link
Member Author

the allow and deny code looks very similar, will it be possible to remove the duplicate parts

Yup, response types are different though i will make it generic.

Signed-off-by: Charles-Edouard Brétéché <[email protected]>
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
@eddycharly
Copy link
Member Author

@vishal-chdhry i made changes to reduce the duplicated parts

@eddycharly eddycharly merged commit dc82d97 into main Dec 30, 2024
12 checks passed
@eddycharly eddycharly deleted the allow-deny branch December 30, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants