-
Notifications
You must be signed in to change notification settings - Fork 143
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
SDP Use and Security Clarifications #17
Comments
The SDP describes how your webrtc session can be connected to. If I generate one from my computer right now it contains this section:
Those are ips and ports that the webrtc lib thinks I can be accessed on. Your SDP session is only valid for a brief moment of time, a few minutes. If you change networks your ips and ports will be different, but more importantly the routers in between you and the other connecting user are only going to route packets correctly for a short while before considering the connection to be stale and closing it. All this is new to me as well and some of the details might be wrong, but I can tell you that you should expect the SDP values to be short lived and storing them securely for re-use would not work as expected . Very open to ideas about how to accomplish what you're describing though. Maybe api access to one of the secure messaging platforms would work. With opt-in from both parties you could arguably dial out to people by username. |
hey @maxmcd thanks for response. Me too - still learning and standing on lots of big shoulders as always :) Your suggestion of using a Third Party is one way, but for me i would want to run it all myself and not trust anyone except Lets Encrypt and run the server myself. Maybe the following is a good staggered approach ?
this is just an idea.... But pre generating keys seems like a pretty useful thing. |
@maxmcd i just met this problem too, this tool is very cool ,and i want to use it to allow me connect to any devices that under the control of mine, the only problem is the sdp key exchanging i think the tool could add a new option to indicate the keyexchanging service, which could be implment by user themselves, a quick way is use a tls enabled pub/sub services and although i havnt learnt go yet, (this project really made my interesting), i still know there were a library created by caddy which let you got/update cert automaticlly @ghost |
This is really cool.
If I understand the sdp key exchange, it would be possible for a service to gen a key as a QR code and the developer to scan it and save it to a secure location on their laptop.
Then the service can be deployed somewhere with the public key.
Then when you want to connect to that server you just use the QR code, decrypt it to text and connect.
Please let me know if that's a reasonable thing based on how sdp and this software works
I can then make a little demo and PR it if you want
The text was updated successfully, but these errors were encountered: