-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Authentication feature #57
Comments
@vrobles-gee your request is sensible: security is an important aspect to consider. However, authentication would be not enough. To simplify the development I chose to use the telnet protocol, which is intrinsically insecure. Even if I would add some authentication mechanism, the data traffic still goes on the wire not encrypted, so it would remain insecure nonetheless. The right solution by the security point of view could be to switch to ssh protocol, but I'm afraid it would be a huge development effort, and for the moment it is not planned. Sorry. Currently, we use the library as a debug mechanism in embedded software: we faced the security problem in this way:
|
Some idea to explore in the future:
In both cases, we should differentiate history on the user base and maybe the set of commands by user profile. |
new to this project, and i was wondering is there any improvement to integrate |
|
By Moreover, to prevent someone remotely accessing the telnet, it might help to bind the server to 127.0.0.1(localhost) rather than 0.0.0.0 (default ctor), the Line 178 in e649e95
|
If you don't need the telnet access, you can use
There is this ctor:
that you can use explicitly with |
If I commented the |
You need to give some work to
... |
Hi @daniele77.
Do you believe it would be easy to add authentication to the library?. I know the scope of such a feature can be huge (for instance, supporting multiple authentication mechanisms, supporting multiple users, supporting different set of commands based on permissions and so on), but we could start with a simple scope, something easy like storing a local credentials file (like htpasswd).
My main concern is that right now any APP using the telnet server is open to the public, and the only way to restrict access is protecting it with networking workarounds like firewall rules. What do you think?
Thanks,
The text was updated successfully, but these errors were encountered: