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

Batch-authorization API for Cedar #1273

Open
2 tasks
cdisselkoen opened this issue Oct 10, 2024 · 0 comments
Open
2 tasks

Batch-authorization API for Cedar #1273

cdisselkoen opened this issue Oct 10, 2024 · 0 comments
Labels
feature-request This issue requets a substantial new feature

Comments

@cdisselkoen
Copy link
Contributor

Category

User level API features/changes

Describe the feature you'd like to request

API that takes a single PolicySet and Entities, a single action, resource, and context, and a batch (list) of principals, and reports whether each of the principals in the list is authorized. Likewise for a batch of actions and a batch of resources.

This can be done more efficiently than calling the normal is_authorized() in a loop, because we can first partial-evaluate with the principal unknown (resp. action or resource), and then evaluate only the residuals N times.

Describe alternatives you've considered

  1. Just call is_authorized() in a loop
  2. Users can do this by themselves, ie, call partial evaluation and then evaluate the residuals repeatedly, without us providing a wrapper API to do all of this in one call

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@cdisselkoen cdisselkoen added pending-triage The cedar maintainers haven't looked at this yet. Automicaly added to all new issues. feature-request This issue requets a substantial new feature labels Oct 10, 2024
@aaronjeline aaronjeline removed the pending-triage The cedar maintainers haven't looked at this yet. Automicaly added to all new issues. label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requets a substantial new feature
Projects
None yet
Development

No branches or pull requests

2 participants