Closed mark-creamer-amazon closed 1 week ago
Entity tagging is new in Cedar 4.2.x, but CedarJava 4.2.x is not able to leverage it with the current Entity object and serializer.
tags
Entity.java
EntitySerializer.java
executeJsonValidationTest
testEntityWithUnknownTag
EntityValidationTests.java
JSON_TEST_FILES
Can we make sure to make the same change on main as well?
main
Created here: https://github.com/cedar-policy/cedar-java/pull/239
Use Case
Entity tagging is new in Cedar 4.2.x, but CedarJava 4.2.x is not able to leverage it with the current Entity object and serializer.
Details
tags
field toEntity.java
to support entities with tagsEntitySerializer.java
to make sure the tags field makes it across the JNI layer and into the AuthorizationRequest string we pass.executeJsonValidationTest
Testing
testEntityWithUnknownTag
toEntityValidationTests.java
JSON_TEST_FILES
that tested e2e allowing an action contingent on a tag being present in the resource.