Category
Cedar language features
Describe the feature you'd like to request
We'd like to be able to grant permissions on all resources of a given type ("Cyrus can view all Photos").
Describe the solution you'd like
A specific test for this would be ideal:
resource is Photo
Describe alternatives you've considered
It's possible to implement this today using attributes, but that leads to the possibility that an entity might be created with an attribute that doesn't actually match its type.
Syntaxes that treat the entity type like a pseudo-attribute would work too:
resource.type == "Photo"
resource.EntityType == "Photo"
resource.entity_type == "Photo"
However this might be confusing or collide with attribute names.
Additional context
No response
Is this something that you'd be interested in working on?
Category
Cedar language features
Describe the feature you'd like to request
We'd like to be able to grant permissions on all resources of a given type ("Cyrus can view all Photos").
Describe the solution you'd like
A specific test for this would be ideal:
resource is PhotoDescribe alternatives you've considered
It's possible to implement this today using attributes, but that leads to the possibility that an entity might be created with an attribute that doesn't actually match its type.
Syntaxes that treat the entity type like a pseudo-attribute would work too:
resource.type == "Photo"resource.EntityType == "Photo"resource.entity_type == "Photo"However this might be confusing or collide with attribute names.
Additional context
No response
Is this something that you'd be interested in working on?