Generate RBAC based on the current config, and in such a way that the code can be shared with the backend.