Sharing tuple data across stores #393
Unanswered
marlenekoh
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @marlenekoh - any reason why the data is not all in one store? Our intention is that if data needs to be shared, they need to be one store and that stores are completely isolated from one another. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a central permissions store containing a list of tuples (e.g. user -> role, group -> role)
Store 1
I have a few applications managing their own permissions. Using modular models (https://openfga.dev/docs/modeling/modular-models), I can do this
e.g. Store 2: (extends model from store 1)
e.g. Store 3: (extends model from store 1)
For stores 2 and 3, they will need to share the tuple data (user > member > role) from store 1.
Currently I am syncing tuple data from store 1 -> 2 and store 1 -> 3 via a hourly cronjob, but this means there is a delay before permissions are reflected correctly in store 2 and store 3.
Is there a better way to do this? Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions