DevTools/WiFi Debugging/Design: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "== Overview == === Remote Debugging Today === Connecting to the Dev Tools debugging server on a remote device (like B2G) via USB (which requires ADB) is too complex to setup ...")
 
No edit summary
Line 10: Line 10:


=== Security ===
=== Security ===
Thus far, we’ve come to basic agreement that we should encrypt data in transit (via TLS or similar). However, the authentication mechanism is not yet decided. The UX flows here will need to be updated once a final authentication scheme has been determined. Current options under consideration include:
TLS is used to provide encryption of the data in transit. Both parties use self-signed certs to identify themselves.  There is a one-time setup process to authenticate a new device.  This is explained in many more details later on in this document.
* Self-signed client & server certs via TLS
* Short code method, such as TLS-SRP
* Integration with Firefox Accounts


== Definitions ==
== Definitions ==
Line 20: Line 17:


== Proposal ==
== Proposal ==
This proposal uses a public / private key signature authentication scheme to accept connections from devices. After first connection from a new Client, the Client is saved on the Device (if the user wants to always allow) and can connect freely in the future (assuming Wi-Fi debugging is still enabled).
This proposal uses TLS with self-signed certs to allow Clients to connect to Servers through an encrypted, authenticate channel. After first connection from a new Client, the Client is saved on the Server (if the user wants to always allow) and can connect freely in the future (assuming Wi-Fi debugging is still enabled).


=== Default State ===
=== Default State ===
Line 27: Line 24:
=== Enabling Wi-Fi Debugging ===
=== Enabling Wi-Fi Debugging ===
# User goes to Developer menu on Device
# User goes to Developer menu on Device
# User checks "Remote Debugger over Wi-Fi" to enable the feature
# User checks "DevTools over Wi-Fi" to enable the feature
#* Persistent notification displayed in notification bar reminding user that this is enabled
#* Persistent notification displayed in notification bar reminding user that this is enabled
# Device begins listening on random TCP socket via Wi-Fi only
# Device begins listening on random TCP socket via Wi-Fi only
Confirmed users
177

edits

Navigation menu