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: `graph` strategy for checking relations #101

Closed uatuko closed 6 months ago

uatuko commented 6 months ago

Introduce graph strategy for checking relations between two entities. The implementation uses a BFS graph traversal to derive relations if no direct relation is found.

codecov[bot] commented 6 months ago

Codecov Report

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

Project coverage is 93.11%. Comparing base (0eb3099) to head (15904cf).

Files Patch % Lines
src/svc/relations.cpp 94.23% 2 Missing and 4 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #101 +/- ## ========================================== + Coverage 93.05% 93.11% +0.06% ========================================== Files 18 18 Lines 1209 1307 +98 Branches 146 161 +15 ========================================== + Hits 1125 1217 +92 - Misses 62 64 +2 - Partials 22 26 +4 ```

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