-
I feel the initial setup documentation lacking some real world scenarios for production deployment.
There is no documentation or discussion about how to handle it elegantly on production environments. It would be really helpful if we have some guide around it, specifically in docker enabled environments like k8s. This is how I'm planning to do it, Since OpenFGA will be deployed inside a
Now this service created a store for me, I haven't found a nice solution to communicate/store storeID. Though it is onetime job, the dirty heck I used is read it from pod logs. Am I missing something basic here? Or it has to be like this only on Also is there any |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @neeraj-ec Fellow contributors will provide a more in depth answer, but to give you a quick summary. How you are thinking about it is mostly right in terms of deploying the model and testing it in a separate process. We generally recommend you run and test your model (preferably in a CI job separate from your backend deployment) and you only merge to main once the tests have passed. Once merged to main, you can then update your backend with the newly generated authorization model ID through whatever configuration management system works best for you. One thing to note is: In production, you will not be constantly creating a new store - you will create the store once and update the model for that store if you need to. Now the flow above may not be ideal for your use-case, so we collaborate to come up with a way to make that process easier for you. Can you walk us through how you are deploying? Do you have a configuration management solution in place? Regarding the helm chart, we don't have an officially supported first-party one yet, however some community members have OSSed their own that you can use: https://github.com/AlexandreBrg/openfga-helm |
Beta Was this translation helpful? Give feedback.
-
Thanks @rhamzeh for quick answer. We are using Github action for CI/CD pipeline. Application Configurations are managed by kubernetes |
Beta Was this translation helpful? Give feedback.
Hi @neeraj-ec
Fellow contributors will provide a more in depth answer, but to give you a quick summary.
How you are thinking about it is mostly right in terms of deploying the model and testing it in a separate process.
We generally recommend you run and test your model (preferably in a CI job separate from your backend deployment) and you only merge to main once the tests have passed.
Once merged to main, you can then update your backend with the newly generated authorization model ID through whatever configuration management system works best for you.
One thing to note is: In production, you will not be constantly creating a new store - you will create the store once and update the mode…