Add ability to create an Entity with tags in Entity::new()
#1374
Labels
feature-request
This issue requets a substantial new feature
pending-review
A Cedar maintainer has looked at this, but believes it needs review by more of the core team
Category
User level API features/changes
Describe the feature you'd like to request
The entity creation function has no way to create an entity with tags. I'd like to see tags added as an optional parameter to the
Entity::new()
function, and have them be used in authorization calculations. Additionally, atag
function that behaves similarly to theattr
function, might be warranted.Describe alternatives you've considered
Another option would be to add an
update_tags
function, however that seems to go against the pattern of immutability I see in the current API for Entity.Additional context
The only way, currently, to include tags on the entity is to parse it from JSON.
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: