Allow an unknown principal, resource or action to be constrained to a certain entity type #1393
Closed
1 of 2 tasks
Labels
feature-request
This issue requets a substantial new feature
Category
User level API features/changes
Describe the feature you'd like to request
Allow the caller to create a request with an unknown principal or resource, that is still known to belong to a certain type.
This is enroaching on the open rfc of https://github.com/cedar-policy/rfcs/pull/83/files
but I found it to be very useful for a 'query construction' usecase, similar to the one outlined here:
https://cedarland.blog/usage/partial-evaluation/content.html#what-can-alice-access
Describe alternatives you've considered
Without this, the only way to remove from the residual policies which are clearly excluded by the scope is to construct a full dummy entity ID of the right type, and then insert into the entity store an entry with that id.
But this requires all the fields of the entity to be explicitly set to 'unknown', and makes the evaluator assume the entity has no parents (since the parents of a concrete entity can't be unknown atm)
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: