Modular Models
Modular models aims to improve the model authoring experience when multiple teams are maintaining a model, such as:
- A model can grow large and difficult to understand
- As more teams begin to contribute to a model, the ownership boundaries may not be clear and code review processes might not scale
With modular models, a single model can be separated across multiple files allow grouping of types and conditions into modules. This means that a model can be organized more easily in terms of team or organizational structure. Used in conjunction with features such as GitHub, GitLab or Gitea's code owners, it should become easier to ensure the owners of a portion of your model are correctly assigned to review it.
How to use it?
Modular models is available in the latest version of OpenFGA. To use it you need to:
- Update to the v0.3.0 release of the CLI
- Update to v0.2.21 of the VS Code Extension
- Download v1.5.3 of OpenFGA
- Check out the modular models sample store in the sample-stores repo
- Review the documentation for this feature
- Check a demo video in Youtube
What's next?
Looking beyond the near term, modular models allows us to implement additional API authorization options for OpenFGA.
Reach out!
We want to learn how you use this feature and how we can improve it!
Please reach out through our community channels with any questions or feedback.