You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Yah. Suggestions are welcome. I have been thinking along the lines of being able to tell a node something like "node xyz is the cluster master; trust that node's config and configure yourself in the same way" so that changes only need to be made on one node.
How about a special type of connection that shows up as a connection request, rather than as an error. The user is prompted in the gui on whether to add the node.
Yeah. There is a tradeoff between convenience and security here. The current policy of "all nodes must have matching config" doesn't really enforce much today, but I plan on adding modes where a node is forced to read only (can not add data to the cluster) for example, and then all nodes must agree on that status, or that node could find a "back door" to inject data into the cluster.
How about being able to enter "discoverable mode" for a short time, say 5 minutes, but that can be configurable. During this time any node not listed in your allowed nodes for a repo is prompted in the web interface "do you want to add this node Y from ip Y to access repo X?"
There is - the node name is optional. You only need the id. The name is just to make it a bit easier to remember what is what, it can be different on every node if you really want.
I personally like the idea of having a "Pending" node state that shows up on node X to add node Y when Y adds X as a node. The basic use-case would be: Node Y adds Node X to their Syncthing. Node Y's Syncthing verifies that Node X exists and sends an add request which contains all the information needed to configure Node Y on Node X. Node X "adds" Node Y but in a "Pending" state so the add has to be accepted by the user before anything further happens.
I'll leave my humble suggestion to improve the GUI.
You can use a readonly <input> text box to display the node ID, along with a "Copy" button. Basically, make it easier to copy ID from the dialog. Right now, the current GUI presents the ID inside a <div> element, which makes it harder to select all characters for copying -- one needs to manually select all characters carefully before copying.
If you put it inside a readonly <input> with a "Copy" button on the side, users can simply click this button and the GUI will select the entire ID and copy it to the clipboard.
I'm still planning to try to make Syncthing and Serf work together. I simply haven't had the time I thought I would. I'm going to aim for the end of September.
Everyone seems to be stuck with the "100 gigs of photos in my home dir". Why not ditch the current default of using home dirs and have a configurable default share dir? And possibly a configurable config dir?
At the moment I mean, -home will set where the config/keys/share info etc is kept why not have another that will be the default dir for any shares and you append the share name to that?
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Apr 15, 2014
Yah. Suggestions are welcome. I have been thinking along the lines of being able to tell a node something like "node xyz is the cluster master; trust that node's config and configure yourself in the same way" so that changes only need to be made on one node.
jpjp commentedon Apr 15, 2014
There might be a security problem there: a compromised cluster master could change the share directory on all nodes to /? r00t everywhere!
jpjp commentedon Apr 15, 2014
How about a special type of connection that shows up as a connection request, rather than as an error. The user is prompted in the gui on whether to add the node.
jpjp commentedon Apr 15, 2014
Back to the cluster master idea again: what about shipping the config inside the repo? I don't know how this would work for multiple repos though.
Edit: same security problem though...
calmh commentedon Apr 15, 2014
Yeah. There is a tradeoff between convenience and security here. The current policy of "all nodes must have matching config" doesn't really enforce much today, but I plan on adding modes where a node is forced to read only (can not add data to the cluster) for example, and then all nodes must agree on that status, or that node could find a "back door" to inject data into the cluster.
jpjp commentedon May 8, 2014
What would a syncthing url look like? syncthing://nodeid/reponame ?
jpjp commentedon May 8, 2014
How about being able to enter "discoverable mode" for a short time, say 5 minutes, but that can be configurable. During this time any node not listed in your allowed nodes for a repo is prompted in the web interface "do you want to add this node Y from ip Y to access repo X?"
jpjp commentedon May 14, 2014
There is - the node name is optional. You only need the id. The name is just to make it a bit easier to remember what is what, it can be different on every node if you really want.
jpjp commentedon May 14, 2014
Each node has permission on its own repository.
You can use the same config.xml file on multiple nodes, but you would need to add permission for the node you copied it from.
KayoticSully commentedon May 22, 2014
Is there any more news or work on this front?
I personally like the idea of having a "Pending" node state that shows up on node X to add node Y when Y adds X as a node. The basic use-case would be: Node Y adds Node X to their Syncthing. Node Y's Syncthing verifies that Node X exists and sends an add request which contains all the information needed to configure Node Y on Node X. Node X "adds" Node Y but in a "Pending" state so the add has to be accepted by the user before anything further happens.
jpjp commentedon May 22, 2014
How about if "ignore unknown nodes" was a time based setting, you would enable it once for five minutes the only time you add another node?
calmh commentedon May 22, 2014
Something like those "pending" states for both nodes and repos would be useful and will probably be the way to go.
juliohm1978 commentedon May 24, 2014
I'll leave my humble suggestion to improve the GUI.
You can use a readonly
<input>text box to display the node ID, along with a "Copy" button. Basically, make it easier to copy ID from the dialog. Right now, the current GUI presents the ID inside a<div>element, which makes it harder to select all characters for copying -- one needs to manually select all characters carefully before copying.If you put it inside a readonly
<input>with a "Copy" button on the side, users can simply click this button and the GUI will select the entire ID and copy it to the clipboard.52 remaining items
AudriusButkevicius commentedon Sep 23, 2014
I guess you are not closing this because it's still possible to improve this with this "one off ticket" to join the cluster?
lfam commentedon Sep 23, 2014
I'm still planning to try to make Syncthing and Serf work together. I simply haven't had the time I thought I would. I'm going to aim for the end of September.
Merge tag 'v0.9.18' into add-node-120
Rewt0r commentedon Nov 26, 2014
Everyone seems to be stuck with the "100 gigs of photos in my home dir". Why not ditch the current default of using home dirs and have a configurable default share dir? And possibly a configurable config dir?
AudriusButkevicius commentedon Nov 26, 2014
It is configurable.
Configurable default makes no sense, as something has to be configured before it becomes default
Rewt0r commentedon Nov 26, 2014
At the moment I mean, -home will set where the config/keys/share info etc is kept why not have another that will be the default dir for any shares and you append the share name to that?
AudriusButkevicius commentedon Nov 26, 2014
If you mean adding a share via the command line, you can use the CLI for that.
Otherwise, I don't understand what you mean.
New device, folder prompts (fixes syncthing#120, fixes syncthing#330)
New device, folder prompts (fixes syncthing#120, fixes syncthing#330)
New device, folder prompts (fixes syncthing#120, fixes syncthing#330)
Merge pull request #1174 from AudriusButkevicius/intro