patmac_sc
12/10/2024, 10:25 PMdocument:bobs_secret_plan#owner@user:alice
I can see a couple of options-
a) in the calling code, do a permission check request before writing the relationship
b) don't check but ensure the calling code is trusted, validate user input etc.
c) use another permission mechanism, e.g. JWT validation, OPA policy, identity-aware proxy, mTLS.
Is there are way to do this inside SpiceDB itself? Can my schema define rules such that a relationship can't be written unless another condition is met?