trezor / trezord-go

:smiling_imp: Trezor Communication Daemon (written in Go)
GNU Lesser General Public License v3.0
244 stars 146 forks source link

Trezor Bridge not working with Tor Browser on Tails OS #214

Closed jingxi285 closed 3 years ago

jingxi285 commented 3 years ago

Tested latest Trezor Bridge on latest Tails OS 4.14 but it gives an error in Tor Browser. Could support be added for Tails OS? It uses the Tor Browser, which is based on Firefox. Just visit wallet.trezor.io Adblock is disabled, so it should work fine....

prusnak commented 3 years ago

You need to enable Trezor Bridge in the Tor Browser: https://wiki.trezor.io/Tor

jingxi285 commented 3 years ago

Hello Sir. thank you for the tip. I followed the guide, carefully read few times, and restarted Tor Browser, but same problems.

May I ask, is latest Tails working ok for you with Trezor?

All Tor Browsing is working well, apart from Trezor.

Just tried, same issue "Transport error" "Error details: WebUSB is not available on this browser".

Restarted, same error, it says Trezor Bridge is "Not installed"

BTW, isn't steps (4) and (5) risky? better to keep referrer hiden. Search for the key network.http.referer.hideOnionSource Set the value to false

prusnak commented 3 years ago

better to keep referrer hiden.

Bridge needs to see the Origin so it enables Trezor only on selected sites, not all of them.

If you have followed the guide on Wiki and it does not work, please contact our support - https://trezor.io/support/technical/issue/ - Github is not a support platform.

Thank you!

jingxi285 commented 3 years ago

better to keep referrer hiden.

Bridge needs to see the Origin so it enables Trezor only on selected sites, not all of them.

If you have followed the guide on Wiki and it does not work, please contact our support - https://trezor.io/support/technical/issue/ - Github is not a support platform.

Thank you!

Okay I see. Yes I have written to them, but no reply yet.

jingxi285 commented 3 years ago

Pavol, Nearly a month has passed. Feels like no developer at Trezor/SatoshiLabs is to be working on making Trezor compatible with Tails OS. Can any developer be assigned? Sorry I've not got time to test or develop the support myself.

prusnak commented 3 years ago

Have you followed the guide I gave you? (including steps 4 and 5?) Otherwise this will not work.

Btw, Trezor works out of the box in Tails OS with Electrum and we put effort to have this seamless experience.

jingxi285 commented 3 years ago

Have you followed the guide I gave you? (including steps 4 and 5?) Otherwise this will not work.

Yes I followed the guide, as I clearly wrote 24 days ago, please scroll up this page.

prusnak directed me to a support mailbox without any developers. That support mailbox just closed my tickets automatically today, no one addressed the issues.

Btw, Trezor works out of the box in Tails OS with Electrum and we put effort to have this seamless experience.

I can confirm that Trezor does not work out of the box with Tails OS tails-amd64-4.14-img, as I wrote 24 days ago. Including steps 4 and 5.

prusnak commented 3 years ago

Please post a screenshot of what you see when you visit the following URL in the Tor Browser: http://127.0.0.1:21325

jingxi285 commented 3 years ago

Please post a screenshot of what you see when you visit the following URL in the Tor Browser: http://127.0.0.1:21325

Please post a screenshot to show that Tails OS is really working. Sorry you've ignored this fault for 24 days, I'll need to see some proof before I waste further time debugging your bugs! Thanks

piconero commented 1 year ago

I can confirm this is still a problem with the latest version of Trezor Bridge (2.0.27) and Tails (5.6). I followed the guide exactly and restarted Tor Browser but it will not load the status page. Trezor Bridge appears to work fine via command line:

root@amnesia:~# service trezord status
 trezord.service - Trezor Bridge
     Loaded: loaded (/usr/lib/systemd/system/trezord.service; enabled; vendor pres>
     Active: active (running) since Tue 2022-11-01 20:26:58 UTC; 21min ago
   Main PID: 53140 (trezord)
      Tasks: 10 (limit: 19066)
     Memory: 46.3M
        CPU: 2.712s
     CGroup: /system.slice/trezord.service
             └─53140 /usr/bin/trezord
amnesia@amnesia:~$ curl -sIXGET 127.0.0.1:21325/status/
HTTP/1.1 200 OK
Set-Cookie: _gorilla_csrf=**redacted**; HttpOnly
Vary: Cookie
X-Frame-Options: DENY
Date: Tue, 01 Nov 2022 20:52:54 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked

Tor Browser shows "Unable to connect. Firefox can’t establish a connection to the server at 127.0.0.1:21325."

I doubt this is a problem with Trezor Bridge since it works via command line but the documentation definitely doesn't work anymore (at least for Tor Browser on Tails OS, if it ever did). It may be related to Tails sandboxing Tor Browser or something. I only attempted to use the web version of Trezor Suite because I couldn't get the desktop version to work either. The desktop version at least connects to the Trezor device but refuses to load any accounts. Enabling the Tor setting fails.