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

Update all resource types to use `object` table (w/ metadata) #210

Closed kkajla12 closed 1 year ago

kkajla12 commented 1 year ago

Describe your changes

This PR adds a new meta column to the object table and updates all built-in resource types (tenant, user, role, permission, pricing-tier, feature) to use this new column to store their metadata (e.g. names, descriptions, etc). This eliminates the need for a separate table to store each built-in resource, so this PR also removes those tables.

Issue number and link (if applicable)

N/A