kush_ghilothia
12/15/2022, 5:07 AMPerseus
12/15/2022, 5:17 AMWriteSchema
in your API after converting some data from the API call into spicedb's schema DSL, but not sure if there would be any implications therekush_ghilothia
12/15/2022, 5:56 AMvroldanbet
12/15/2022, 8:37 AMALTER TABLE
) versus changing letting user input change the data in that schema (i.e. DML statements like INSERT ROW
).
We recommend defining a schema upfront that captures all your business domain and then calling the SpiceDB API to essentially do relationship CRUD with ReadRelationships
, WriteRelationships
and DeleteRelationships
API methods.
The suggestion from @Perseus above is a good place to start with an RBAC model. And as he indicated, letting user input change the schema via WriteSchema
is possible, but those are expensive operations. Unless strictly necessary in your model, I'd advice against that.
SpiceDB exposes a REST Gateway. You can try our newly built Postman Workspace: https://www.postman.com/authzed/workspace/spicedb/overview
In our docs we have a section for installing and configuring SpiceDB: https://authzed.com/docs/spicedb/installing. For self-hosting SpiceDB we recommend using Kubernetes and the spicedb-operator, which automates configuring the cluster and running the datastore migrations for you: https://github.com/authzed/spicedb-operator.