-
Notifications
You must be signed in to change notification settings - Fork 187
Tor #560
Conversation
Not seeing the tor icon in the url bar |
@cpacia The tor indicator will show up when the following conditions are met: 1.) Your are connected to a server that was started in tor mode and that server is returning Are both those conditions met for you? |
Oh duh that's right I have to set it in the config |
I think I'll leave choppy icons to @morebrownies . The client is sizing the icon down to 13px to try and match the design. Do you want to play around with maybe bumping it up or down a pixel or two and seeing if that helps? Maybe at 14px it looks better? (It may just be an overly detailed icon that's not designed to be shown that small, at least on non-retina displays) |
Ok, I'll try to get around to testing this later today. |
@rmisio @cpacia I'm attempting to run my server with Tor and I'm running into this issue:
Any idea what is going on with my 🍪 file? |
@morebrownies Yeah, it's the same thing Josh is going through. You're basically confirming that the Tor Browser needs specific configuration before being able to work with OB. @jjeffryes is working through putting together an instruction doc for it as I type (for Win and Mac). You may want to wait until he's done and work off that. Basically, you need to configure your Tor Browser to use a password and give that password to the OB config. If you want the cliff's notes version (for Mac):
|
Ok great thank you @rmisio I'll give this a shot |
I didn't get very far on this one @rmisio
|
Eternal damnation! I gave you the wrong path! Sorry @morebrownies, it's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I found one spot that looks like it has the wrong variable, and had a question. Very minor.
js/models/ServerConfig.js
Outdated
if (split.length !== 2) { | ||
valid = false; | ||
} else { | ||
if (!is.ip(valid[0])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be split[0], since valid is a boolean, and split has the ip address?
// open, we won't auto send them to the config form, since it may interrupt something else | ||
// they may be doing. | ||
this.trigger('editConfig', { | ||
model: this.collection.defaultConfig, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this also happen if you're using a configuration that isn't default, but is using Tor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we would only get a 'tor-not-available' error on the default (i.e. built-in) server, because that's the only one that we control and can start-up via the status command to determine if Tor is available. For stand-alon servers, it is the responsibility of the user to start the server in Tor mode. If they forget to start the Tor browser and they start the server with --tor, then it will fail to start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And... if they forget to start their server in Tor mode and connect via the client (even with Use Tor checked on the client), they have leaked their IP. They will not see the Tor indicator, but it's already too late.
Users managing their own server will have a big responsibility on them.
@jjeffryes this should be ready to code with code review updates. Also added in a 'Tor active' tooltip at @morebrownies request. |
This change-set wires in Tor controls to the client.
closes #315
To test:
a. Download the Tor browser.
b. Start up the Tor browser.
c. Attempt to start your server with the --tor flag. If it works, you'll see this in the terminal (
[Execute] [NOTICE] Using Tor exclusively
) and you're free to proceed to step 2. If it doesn't work, you'll likely see some type of auth error in the terminal. In that case, please ping @rmisio for further debugging.The following steps will allow your client to masquerade as the bundled app and test Tor scenarios specific to the bundled (installer) version of the app.
localStorage.clear()
in the console.openbazaard
on Linux or Mac,openbazaard.exe
on Windows. Ensure the file is exectuable (chmod +x on Mac and Linux
)If you are able to set-up a remote server, it would be a really good test to toggle your connection between a remote server and the built-in server and ensure that the connection is properly in Tor mode when you configure it (check 'use Tor') to be.