warrant-dev / warrant

Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.
https://warrant.dev
Apache License 2.0
1.15k stars 43 forks source link

Make the `objectId` field optional on object, and generate an `objectId` for objects created without one #204

Closed kkajla12 closed 1 year ago

kkajla12 commented 1 year ago

Describe your changes

With this change, it is no longer required to pass an objectId when creating an object. If one is passed, it will be used as the objectId for the created object (no change here), but if an objectId is not passed, the service will generate a v4 uuid to use as the objectId for the newly created object.

Issue number and link (if applicable)

N/A