8000 enhancement: Lazy rule table by Sambigeara · Pull Request #2460 · cerbos/cerbos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

enhancement: Lazy rule table #2460

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

Merged
merged 9 commits into from
Jan 30, 2025

Conversation

Sambigeara
Copy link
Contributor
@Sambigeara Sambigeara commented Jan 28, 2025

Introduce a single rule table implementation which is empty on start and lazily loads required policies as they're queried. Enables this rule table for all store types.

Also solves some other issues:

  • Makes query planner empty-case output consistent
  • Fixes E2E tests
  • Fixes principal policy scopePermissions: *REQUIRES_PARENTAL_CONSENT fall through behaviour

Introduce a single rule table implementation which is empty on start and
lazily loads required policies as they're queried. Enables this rule
table for all store types.

Also solves some other issues:

* Makes query planner empty-case output consistent
* Fixes E2E tests

Signed-off-by: Sam Lock <sam@swlock.co.uk>
Signed-off-by: Sam Lock <sam@swlock.co.uk>
Signed-off-by: Sam Lock <sam@swlock.co.uk>
@Sambigeara Sambigeara force-pushed the enhancement/lazy-rule-table branch from 27fa194 to f4c5002 Compare January 28, 2025 11:17
Signed-off-by: Sam Lock <sam@swlock.co.uk>
@Sambigeara
Copy link
Contributor Author

I think it's prudent to add some tests cases for store updates (particularly WRT the various rule table caches), so I'll put this PR into draft until that's done.

@Sambigeara Sambigeara marked this pull request as draft January 28, 2025 11:32
Copy link
Contributor
@charithe charithe left a comment

Choose a reason for hiding this comment

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

Halfway through. Still trying to grok what's happening... 😄

Signed-off-by: Sam Lock <sam@swlock.co.uk>
Signed-off-by: Sam Lock <sam@swlock.co.uk>
Signed-off-by: Sam Lock <sam@swlock.co.uk>
@Sambigeara Sambigeara marked this pull request as ready for review January 30, 2025 10:09
@Sambigeara Sambigeara merged commit c2f16ff into cerbos:main Jan 30, 2025
22 checks passed
@Sambigeara Sambigeara deleted the enhancement/lazy-rule-table branch January 30, 2025 15:36
Sambigeara added a commit that referenced this pull request Jan 30, 2025
This was supposed to be part of the [larger
PR](#2460) but I forgot to push it
🙃.

Signed-off-by: Sam Lock <sam@swlock.co.uk>
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.

2 participants
0