-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow local (LAN) access to a device as a config option #216
Comments
This has also been discussed with https://app-eu1.hubspot.com/contacts/26586079/record/0-1/4909801 & https://app-eu1.hubspot.com/contacts/26586079/record/0-1/1956 |
Security is managed by FF OAuth, but a strong use case here is the ability to access the editor if the device has lost network connection. Open point of discussion here is how we handle the security of the offline access use case. |
My worries are around having multiple ways of achieving the same thing (editing flows) which do have different features available to them. One of these customers linked wanted a stable URL to the editor. This issue doesn't service that request. Also, all edge cases point to the problem that we cannot both provide the service level users are used to AND be partition tolerant. cap theorem is pretty clear on that, and FlowFuse shouldn't jump through hoops to reinvent the wheel. |
We had another question on accessing the editor if connection to the FF Platform is currently unavailable; customer doesn't want to be locked out of their devices. There are two scenarios:
These two scenarios are in conflict with each other. Node-RED Auth is either OAuth, or local login. It doesn't support both at the same time. Option A - allow user to define 'local' user for the device
Pros
Cons
Option B - enable FFC auth for device
Pros
Cons
Option C - both!Whilst Node-RED doesn't support both at the same time... it could do in the future. So we could pick A or B today, and schedule work in NR to support a hybrid auth approach, then do the other. ProposalI propose we go with option A - allow the user to define their own username/password via device settings. We can label this feature as 'enable offline access' - emphasis this is not intended for day-to-day use. I'll raise a feature request on NR to support hybrid auth to at least get it recorded - whether we decide we need it or not in the future. |
If the device is air gapped (or unable to contact FF), then Auto Snapshots will fail. Should we: |
Why would auto snapshots not function for local access? We should be consistent in our functionality, so (b) is my preference. |
in the scenario listed above
I'll take this approach. However, there will not be any snapshots (or audit events on the platforms) in these scenarios. That is something we will likely need to handle separately (caching?) |
Is it to be that users who access the device via the FF proxy (remote dev) that they will need to "login" using the local account username/password? Because what I have found is:
|
No. There should not be any change to how the proxy works; it is done via the tokens which bypasses the login prompt. If local access it enabled, then you will get a login dialog when trying to access it locally. |
In my current implementation, I have added setup options for permitting local login access on the device settings pages. However, it has just occurred to me that the the user may want (expect) the device yml to be delivered with these settings so that the device doesnt need to checkin to obtain the local login settings. Is this a need right now? or a follow up task? (or wait for the feature to be requested?) IMO, we should probably add support to the device agent NOW if we do intend on supporting this (the UI/UX can be implemented later) |
Spoke with Steve to discuss questions above.
|
@Steve-Mcl @knolleary If the customer in question didn't have SSO enable, why are the team members not allowed to sign in with their usual credentials? This seems like a weird way to go about it. Can we revert the merged PR @knolleary? |
Valid point. But I suspect the proposal above was designed so as not to export internal usernames/passwords (albeit encrypted) to the local devices settings file. Nick can likely articulate this better than me. |
Description
As a backup to being able to access a device's editor from FlowFuse, it would be helpful to be able to access the editor directly.
This has been requested by this existing customer - https://app-eu1.hubspot.com/contacts/26586079/record/0-1/503903
This will allow a user to make changes to their flow in an emergency situation where their network connection to FlowFuse is unstable or offline.
We would need to consider how the local connection to these devices is secured.
I would suggest that local access is disabled by default but can be switched on by editing the device's device.yml
The text was updated successfully, but these errors were encountered: