uatuko / ruek

🔐 Lightning fast, global scale authorization service without the overhead of a yet another DSL.
Apache License 2.0
95 stars 7 forks source link

ReBAC: `set` strategy for checking relations #100

Closed uatuko closed 6 months ago

uatuko commented 6 months ago

Introduce set strategy for checking relations, which uses a set intersection algorithm to derive relations between entities if a direct relation cannot be found.

💡 Refer to tests for a visual example on how the set strategy works.

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 94.20290% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 93.05%. Comparing base (d49eaa4) to head (a22f660).

Files Patch % Lines
src/svc/relations.cpp 95.58% 0 Missing and 3 partials :warning:
src/db/tuples.h 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #100 +/- ## ========================================== + Coverage 92.85% 93.05% +0.19% ========================================== Files 18 18 Lines 1148 1209 +61 Branches 133 146 +13 ========================================== + Hits 1066 1125 +59 Misses 62 62 - Partials 20 22 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.