Join Discord
Powered by
My "test relationships" are generated like this at...
# spicedb
e
emyrk
10/18/2023, 8:38 PM
My "test relationships" are generated like this atm:
https://github.com/coder/coder/blob/1f4fb0e907062db376e6185bef335110b57220b5/coderd/database/spice/policy/playground/relationships/relationships.go#L3-L101
Assertions:
https://github.com/coder/coder/blob/1f4fb0e907062db376e6185bef335110b57220b5/coderd/database/spice/policy/playground/relationships/relationships.go#L96-L98
Validations:
https://github.com/coder/coder/blob/1f4fb0e907062db376e6185bef335110b57220b5/coderd/database/spice/policy/playground/relationships/relationships.go#L100-L101
It's all pretty crude atm, I was just tired of writing all this stuff by hand 😆 . The idea is to model out a decent representation of our data so I can get a policy 80% of the way done. We will be migrating from OPA, so I have to build the thing out rather then evolve it.
Previous
Next