Skip to content

Add ability to create an Entity with tags in Entity::new() #1374

@a0js

Description

@a0js

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, a tag function that behaves similarly to the attr 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?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestThis issue requets a substantial new featurepending-reviewA Cedar maintainer has looked at this, but believes it needs review by more of the core team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions