`prefix/resource:<id>` questions & possibilities
# spicedb
v
What are these prefix/resource things called? What can I do with them?
Copy code
blog/user, blog/post, ...
bsky/user, bsky/post, ...
Can I for example have a lot of these, and they can cross reference each other? Or more so have a set of shared resources that other "namespaces" (?) can build on? (more like a tree than a graph with potential cycles)
y
they're a convention - there's nothing in SpiceDB that explicitly references or handles them
j
in SpiceDB OSS and AuthZed Cloud; AuthZed serverless uses them
but yeah, they are convention in standard SpiceDB and can have whatever nesting you like
its equivalent of naming them
defnition foo_bar_baz
vs
definition foo/bar/baz
basically the same thing
v
I could use them for a "namespacing" concept then, such that my app has the core, and user apps can add extra? (not sure if this is a great idea generally, opens lots of security issues, but could be a vetting and PR process such that they can only come from the official source)
j
if you want to generate schema, yes
v
fyi, this is related to bringing "permissioned spaces" to https://atproto.com via spicedb. This particular question is about... what do apps do that cannot model their needs on the common schema. There are so many things that would be easier if they had some ability to extend the schema, however there be dragons lurking about down this path too...
def a day 2 problem, trying to keep it as simple as possible for now
6 Views