chilipeppr / serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compiles to a binary for Windows, Mac, Linux, Raspberry Pi, or BeagleBone Black that lets you communicate with your serial port from a web application. This enables web apps to be written that can communicate with your local serial device such as an Arduino, CNC controller, or any device that communicates over the serial port.
http://chilipeppr.com
GNU General Public License v2.0
322 stars 101 forks source link

Serial-port-json-server password protection? #54

Open feistjo opened 6 years ago

feistjo commented 6 years ago

Is there a way to implement security for the server? I need it to only be accessable with a password, as my WiFi network is not secure (I am doing this at a university).

chilipeppr commented 6 years ago

You'd have to perhaps do something like IP address filtering at your network level on your computer to limit it. The notion is that you'd solve authentication at a router/firewall layer instead of in SPJS. You could possibly add a command line switch and pass in an IP address filter list too. You could possibly also change the websocket URL from the /ws to some kind of password like path but you'd have to do that as a command line switch too. Changing all the UI out there to support password would be hard.

On Thu, Jun 21, 2018 at 9:08 AM feistjo notifications@github.com wrote:

Is there a way to implement security for the server? I need it to only be accessable with a password, as my WiFi network is not secure (I am doing this at a university).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chilipeppr/serial-port-json-server/issues/54, or mute the thread https://github.com/notifications/unsubscribe-auth/AHidbYN1hljn_frVJCDNhHWeNhzObBr5ks5t-8UWgaJpZM4UyXO0 .