Skip to content

Make initial node id exchange easier #120

Closed

Description

@jpjp

Not sure how yet.

Activity

  1. calmh commented on Apr 15, 2014

    @calmh
    Member

    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.

  2. jpjp commented on Apr 15, 2014

    @jpjp
    ContributorAuthor

    There might be a security problem there: a compromised cluster master could change the share directory on all nodes to /? r00t everywhere!

  3. jpjp commented on Apr 15, 2014

    @jpjp
    ContributorAuthor

    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.

  4. jpjp commented on Apr 15, 2014

    @jpjp
    ContributorAuthor

    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...

  5. calmh commented on Apr 15, 2014

    @calmh
    Member

    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.

  6. jpjp commented on May 8, 2014

    @jpjp
    ContributorAuthor

    What would a syncthing url look like? syncthing://nodeid/reponame ?

  7. jpjp commented on May 8, 2014

    @jpjp
    ContributorAuthor

    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?"

  8. jpjp commented on May 14, 2014

    @jpjp
    ContributorAuthor

    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.

  9. jpjp commented on May 14, 2014

    @jpjp
    ContributorAuthor

    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.

  10. KayoticSully commented on May 22, 2014

    @KayoticSully
    Contributor

    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.

  11. jpjp commented on May 22, 2014

    @jpjp
    ContributorAuthor

    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?

  12. calmh commented on May 22, 2014

    @calmh
    Member

    Something like those "pending" states for both nodes and repos would be useful and will probably be the way to go.

  13. juliohm1978 commented on May 24, 2014

    @juliohm1978

    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.

  14. 52 remaining items

  15. AudriusButkevicius commented on Sep 23, 2014

    @AudriusButkevicius
    Member

    I guess you are not closing this because it's still possible to improve this with this "one off ticket" to join the cluster?

  16. lfam commented on Sep 23, 2014

    @lfam

    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.

  17. added a commit that references this issue on Oct 19, 2014
  18. Rewt0r commented on Nov 26, 2014

    @Rewt0r
    Contributor

    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?

  19. AudriusButkevicius commented on Nov 26, 2014

    @AudriusButkevicius
    Member

    It is configurable.
    Configurable default makes no sense, as something has to be configured before it becomes default

  20. Rewt0r commented on Nov 26, 2014

    @Rewt0r
    Contributor

    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?

  21. AudriusButkevicius commented on Nov 26, 2014

    @AudriusButkevicius
    Member

    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.

  22. added 3 commits that reference this issue on Jan 3, 2015
    6af38c4
    27cae30
    56ccb5b
  23. added a commit that references this issue on Jan 3, 2015
    46343f2
  24. added
    frozen-due-to-age
    on Jun 17, 2017
  25. locked and limited conversation to collaborators on Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementfrozen-due-to-age

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions