fxbox / RFC

Discussion about design decisions
1 stars 2 forks source link

Discovery using QR codes and LetsEncrypt, fixes #3 #5

Closed michielbdejong closed 8 years ago

pauljt commented 8 years ago

So drawback of this solution that I overlooked is the need for the Bridge to publish a DNS record so that the generated sub-domain used for issuing the certificate resolves to an internal address. Apart from the privacy concern of publishing an internal IP address, DNS propagation time or other DNS issues might be a problem. (especially for internal networks which switch DHCP-assigned addresses frequently)

michielbdejong commented 8 years ago

Yes! Another option would be to include the IP address in the domain name (like plex do with https://192-168-0-16.deadbeefdeadbeefdeadbeefdeadbeef.plex.direct/), and then either use a wild card cert (not currently supported by LE) or simply register a new cert each time the IP address changes.

But then how does the client discover the new URL? They would either have to scan a dynamic QR code each time, or visit some redirecting/iframing URL.

michielbdejong commented 8 years ago

Ah, thought of another option: don't create <fingerprint>.knilxof.org but <fingerprint>-1.knilxof.org; when the client loses ping of the Box, it checks if <fingerprint>-2.knilxof.org exists, and if so, switches to it. Testing this now to see if DNS propagation is then really instant.

michielbdejong commented 8 years ago

In this proposal, using the QR code has two advantages:

It also has a big disadvantage compared to #6: the user needs to scan a QR code, enter a serial number, or perform some other type of action to prove that they have physical access to the Box. The concensus within Project Link is that this disadvantage doesn't weigh up to the advantages, so I'll retract this proposal.