Replies: 3 comments
-
|
First of all, thank you for working on the flow sharing feature. I'm one of the contributors who previously proposed adding organization management to Langflow. However, from today's perspective, I think organization management alone isn't enough. In the long run, With that goal in mind, The current work on access_mapping is definitely Sharing folders and individual flows Removing shared items However, in terms of long-term architecture, Casbin will allow us to: Define fine-grained permissions based on organization, role, and resource types Maintain consistent access control across all resource types Scale more securely and systematically as the platform grows Personally, I'm also very curious about If there’s a shared plan or direction for this, Additionally, That's why I strongly believe |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the detailed response and insights! I agree that Langflow could really benefit from real-time collaboration but this should be a long term goal as you said as well. Being able to share flows/folders seems like a feasible (and neccessary) first step into that direction. Your comments regarding how essential Casbin is make sense to me and it does seem like a better approach than a custom built solution. I'll happily read into Casbin and collaborate with you for the integration of Casbin into Langflow. Before we start though, I think we would require some information about the current state from the core team. For instance, what the implications the integration can/may have on the current database/endpoint structure of Langflow as well as to hear their opinion regarding which Casbin model would be the most suitable in the long run. After reading into it a bit, it seems like RBAC might be the most promising approach. It supports multiple user roles (e.g. viewer, editor, admin). For more fine grained control, we might want to use RBAC with tenants/domains to support roles on a per-project basis. Edit: One nuisance which highlights the necessety of real time synchronisation is having two tabs with the same flow open. When making changes on tab 1 and switching to tab 2, the changes are simply overwritten with the outdated version in tab 2. This can be rather annoying. |
Beta Was this translation helpful? Give feedback.
-
|
@YamonBot @ogabrielluiz I would appreciate some input if the approach that I started with makes sense and whether if I should continue working on it wiht my current approach. I also added one specific question/concern regarding performance in the PR that I would like to discuss |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Being able to share flows between users seems like an essential feature to enable collaboration for the use of langflow in organisations.
I started working on this feature on my fork
The approach that I chose was to add a new table "access_mapping" which grants access to an

item(e.g. a flow or a folder) to atarget(e.g. a user or later maybe groups). This table can then be referenced e.g. when loading flows or foldersThe current state of my fork supports api operations for:
Before proceeding to the frontend implementation of a "share" button, I had another look at prior suggestions regarding collaborative working, I saw that there are existing plans to use Casbin for access control which brought up a few questions:
This discussion likely relevant for @ogabrielluiz & @YamonBot
Beta Was this translation helpful? Give feedback.
All reactions