Open Cirromulus opened 4 years ago
If we wanted to overdo it, we may install a PKI on the pilsbot server, giving X.509 Certs to the apps. Apps use them then to authenticate the UDP-Packets, and the server decides which user is currently allowed to steer. https://github.com/wolfSSL/wolfssl/wiki https://www.wolfssl.com/docs/wolfssl-manual/ch7/
Just linking that down for later: https://github.com/RobotWebTools/rosbridge_suite/blob/develop/rosbridge_server/launch/rosbridge_websocket.launch
rosbridge (what I use to communicate with the App) has already authentication features that can be used.
Maybe token-based, as WLAN is encrypted, a 128-bit random nonce may be enough for UDP packets.
This may only be necessary for the actual commandeering, info pages and horn/light switches may be used concurrently.