Skip to content

Better document (docs & GUI) privacy aspects of usage report / discovery / relays / etc #5160

Description

@h1z1
  • what happened,

Syncthing calls home in a few rather undocumented cases - update checking, usage reporting, relay server and global directory

  • what you expected to happen instead, and

Syncthing should comply with existing privacy laws requiring disclosure, especialyl with regard to usage reporting and preferably before such actions.

  • any steps to reproduce the problem.

Install latest release and run it.

  • Also fill out the version information below and add log output or
    screenshots as appropriate.

There is a very brief few lines of output including:

[XXXX] 19:32:06 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting

[XXXX] 19:32:11 INFO: Anonymous usage reporting is always enabled for candidate releases.
[XXXX] 19:32:11 INFO: Automatic upgrade is always enabled for candidate releases.

It's not clear from the interface even what those options are / do. Disabling usage reporting for example does not actually disable it as it's a candidate release.

Version Information

syncthing v0.14.50-rc.3 "Dysprosium Dragonfly" (go1.11 linux-amd64) [email protected] 2018-09-02 19:36:07 UTC

Syncthing Version: v0.14.50-rc.3
OS Version: CentOS 7
Browser Version: NA

Activity

  1. calmh commented on Sep 4, 2018

    @calmh
    Member

    There's various documentation on these things, but I'll take that as a docs ticket to centralize the privacy relevant documentation somewhere.

  2. added
    enhancement
    on Sep 4, 2018
  3. changed the title [-]Ambigious privacy policy[/-] [+]Better document (docs & GUI) privacy aspects of usage report / discovery / relays / etc[/+] on Sep 4, 2018
  4. h1z1 commented on Sep 4, 2018

    @h1z1
    Author

    Thanks. Some of it is but quite a bit is not or is out of date. Starting syncthing for example will cause unencrypted local broadcasts of the relay that client is attached to (possibly a bug? relay address is not local). The stats themselves claim to be anonymous yet include a unique id, build user (why??), etc.

  5. Ferroin commented on Sep 4, 2018

    @Ferroin

    Build system information is useful for determining uptake on different platforms at a finer granularity than Windows/Linux/Mac/Android, as well as determining where a user got Syncthing from.

    Actual examples of this from the stats page include:

    • *@build.syncthing.net (the official build infrastructure, the various user names indicate different builds)
    • debian@debian (the central Debian build infrastructure)
    • vagrant@jessie64 (highly likely to be a Debian backports builder)
    • mockbuild@fedora-koji (the central Fedora build infrastructure)
    • brew@*.local (various Mac builds, with the host names having some indication of the version they were built on)

    From looking at this information, it's reasonably obvious that most people are still getting Syncthing via the official upstream builds instead of through any official packaging provided by their operating system, and indicates that of those who are going through their distribution's packaging, most are using Debian.

  6. h1z1 commented on Sep 4, 2018

    @h1z1
    Author

    I don't know where those come from (static or determined at runtime), but I don't disagree the stats are useful to someone. I'm saying they are identifiable and transfered unencrypted. It is possible syncthing's running in a vm too which would skew your assertions.

  7. calmh commented on Sep 4, 2018

    @calmh
    Member

    The documentation issue is clear. If you guys want to argue the specific merits of the various metrics, I'd like to invite you to do so on the forum. If there are specific things which you think are bugs but not this documentation issue, please open those separately.

    the stats are [...] identifiable and transfered unencrypted

    This, however, is incorrect. The unique ID is generated randomly when usage reporting is enabled or toggled, and used for the purpose of measuring unique reporting instances and users coming/leaving. It cannot be used to identify a specific user or deviceID. The stats are transferred over HTTPS.

  8. h1z1 commented on Sep 4, 2018

    @h1z1
    Author

    This, however, is incorrect. The unique ID is generated randomly

    ... which makes it unique, to the device. Think we're refering to different things.

    11:21:44 IP xxx.xxx.xxx.xxx.22070 > 82.196.13.137.42216: Flags [P.], seq 1:1051, ack 107, win 221, options [nop,nop,TS val 2008027227 ecr 225747970], length 1050
    .V6...|V7...b....N......
    t..HTTP/1.1 200 OK
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Date: Tue, 04 Sep 2018 11:21:23 GMT
    Content-Length: 890
    Connection: close
    
    {
        "buildDate": "2018-09-05T11:11:11-04:00",
        "buildHost": "foohost.local",
        "buildUser": "nacholibre",
        "bytesProxied": 321250394997,
        "goArch": "amd64",
        "goMaxProcs": 64,
        "goNumRoutine": 314,
        "goOS": "linux",
        "goVersion": "go1.11",
        "kbps10s1m5m15m30m60m": [
            0,
            0,
            35,
            12,
            6,
            3
        ],
        "numActiveSessions": 12,
        "numConnections": 135,
        "numPendingSessionKeys": 0,
        "numProxies": 21,
        "options": {
            "global-rate": 0,
            "message-timeout": 60,
            "network-timeout": 120,
            "per-session-rate": 0,
            "ping-interval": 60,
            "pools": [
                "https://relays.syncthing.net/endpoint"
            ],
            "provided-by": ""
        },
        "startTime": "2018-09-02T01:52:11.380643437-04:00",
        "uptimeSeconds": 42271,
        "version": "v0.14.50-rc.3+30-g22d8a37"
    }................
    

    That most certainly goes out in clear text (stats from a relay server).

  9. AudriusButkevicius commented on Sep 4, 2018

    @AudriusButkevicius
    Member

    You have to explicitly enable that, so you must be well aware that you are exposing something. These are public stats, you choose to expose publically, so why should they be encrypted?

  10. calmh commented on Sep 4, 2018

    @calmh
    Member

    That's the status port on the relay server. The discovery server also has a metrics endpoint for Prometheus metrics. These are not "call home" features.

  11. h1z1 commented on Sep 4, 2018

    @h1z1
    Author

    @AudriusButkevicius - At no point did I enable those. I opened the port after saw that host banging on it.
    The only documentation I could find after was from the manpage which is itself incorrect or at the very least misleading:

    Listen address for status service **(blank to disable)** (default “:22070”).
    Status service is used by the relay pool server UI for displaying stats (data transfered, number of clients, etc.)
    

    The option is not specified, does that mean it will be enabled or not? The verbage would lead me to believe it won't, yet it is.

    @calmh - Not sure what you consider call home to be then? :) They certainly aren't silent.

    At any rate the issue is less on the technical so much as being informed, and ask before doing so. If the nuances of running Syncthing or any component of it, are such that details are burried in some document, I need to know that. Heck the realyserver's console is getting floored with hundreds of messages like

    2018/09/04 10:41:11 listener.go:40: Listener failed to accept connection from 85.221.195.58:55951 . Possibly a TCP Ping.
    

    .. per second. Are those bugs, a config issue, documentation ?? (fwiw the process is out not of descriptors). I blocked two hosts that were hitting it alone @~30 times per second.

    I mean well I swear, trying to understand.

  12. calmh commented on Sep 4, 2018

    @calmh
    Member

    I'm sure you do, but arguing about all rough edges in user friendliness you find while implying that we're breaking laws is confrontational and not constructive. As I said, hop on the forum and argue all you like. I won't moderate you. This is, however, not the place for that, and I will moderate here if required.

    Not sure what you consider call home to be then?

    I'm not going to argue semantics with you here, but "call home" to me means to actually make an active connection somewhere. The relay server has a metrics endpoint that can be queried for how much traffic is going through it and a couple of variables like that. If you register with the public relay pool, the relay pool server will try to query that endpoint to gather the stats for https://relays.syncthing.net.

  13. h1z1 commented on Sep 4, 2018

    @h1z1
    Author

    I didn't intend to pursue the technical side of this here, at least beyhond as it relates to documentation. I do think it's important to clarify what I meant by legal. As much as it may be a hinderence to some, things like GDPR are here, and are real. It's not an argument to raise issues about compliance especially on a project where privacy and security are front and center. Appolgies if it was taken any other way.

  14. jebeld17 commented on Jun 4, 2019

    @jebeld17

    I agree with @h1z1. There really should be a unified "Privacy" section within the documentation.

  15. AudriusButkevicius commented on Jun 4, 2019

    @AudriusButkevicius
    Member

    Documentation is community maintained, so if you feel so strongly about it, knock your self out.

    "me too" while sitting with a beer on a couch won't make it happen, nor does it encourage it to happen.

  16. 2 remaining items

  17. jebeld17 commented on Jun 5, 2019

    @jebeld17
  18. h1z1 commented on Jun 6, 2019

    @h1z1
    Author

    Leaving this here becuase I think it's quite relevant::

    You should realize that Syncthing is, primarily, optimized to work, out of the box, for mostly normal people. Granted, we currently only work well for the slightly geeky, but that’s not the end goal. If you are paranoid (and I use the term in the most affectionate way) you will need to adjust the defaults, and possibly test them in a walled off sandbox before deploying. You are not the primary target audience and you never will be.

    Jakob Borg, calmh, Syncthing Maintainer

    Source

  19. calmh commented on Jun 6, 2019

    @calmh
    Member

    Enough. It is tiring to 1) write something because you need it or want it 2) be expected to support it 3) be asked to document it 4) be cast under suspicion and grilled on every little detail, etc, but the sniping doesn't help and it is part of this open source world we've for some reason chosen to participate in. Hopping into issues with "I also want this" also does nothing to further the issue other than adding another "you should do this for me" voice.

    It is understood that we should document the privacy aspects better. That's why there is an issue on it. There are also literally hundreds of other things in this very issue tracker that we are also asked to do, out of our goodness of our hearts. Things take time. You can help out, all the info required to solve this ticket is out there and once a start is made someone will certainly help out to correct the details. (According to the old internet adage of the best way to get a question answered is to provide an incorrect answer, someone will jump to correct it...)

  20. h1z1 commented on Jun 6, 2019

    @h1z1
    Author

    Enough. It is tiring to 1) write something because you need it or want it

    Not entirely sure what that has to do with this? I wasn't aware anyone forced you to write nor participate in Syncthing.

    1. be expected to support it

    No one is asking you personally to support anything. The project is opensource, in keeping with that it would seem prudent to ask questions to the project, on it's official mediums.

    1. be asked to document it

    I would expect that to be as part of standard design methods. Or would you prefer users blindly fumble around?

    1. be cast under suspicion and grilled on every little detail, etc, but the sniping doesn't help and it is part of this open source world we've for some reason chosen to participate in.

    There has been extensive "detail" given. There have been no personal attacks against you but you're welcome to follow up with Github support or follow the process outlined in your COC. Defamation will not be tollerated blindly by me.

    Hopping into issues with "I also want this" also does nothing to further the issue other than adding another "you should do this for me" voice.

    Where was that ever asked?

  21. calmh commented on Jun 6, 2019

    @calmh
    Member

    @h1z1 I wasn't talking to you.

  22. jebeld17 commented on Jun 6, 2019

    @jebeld17
  23. jebeld17 commented on Jun 6, 2019

    @jebeld17
  24. calmh commented on Jun 6, 2019

    @calmh
    Member

    Awesome! I think the info leakage document contains some of the info required, for the rest feel free to ask when things are unclear. (Preferably on the forum, imho, but not big deal either way. You’ll get less eyes and traction discussing in a PR on the docs repo and here is not great either. )

  25. jebeld17 commented on Jun 11, 2019

    @jebeld17
  26. herrernst commented on Aug 29, 2023

    @herrernst

    I also wondered about new open connections to unknown servers on the internet. Have disabled Relaying and Global Discovery as I only need syncing in LAN, to get rid of these connections.

    Now there's a good document about privacy etc. here: https://docs.syncthing.net/users/security.html
    So probably this issue could be closed ;-)

  27. Unknown78 commented on Nov 2, 2023

    @Unknown78

    Anonymous usage reporting is always enabled for candidate releases.
    How to override to disable it?

  28. voidpointertonull commented on Nov 2, 2023

    @voidpointertonull

    Anonymous usage reporting is always enabled for candidate releases.
    How to override to disable it?

    Remove the compile time enforcement in the code and build the modified project.

    While I'm leaning towards the privacy side, there's an understandable bar for the modification need here as release candidates exist as canaries for issues not seen during developer testing but possibly experienced with the significantly more diverse setup of users willing to test.
    The whole point of these candidates is involving users in testing, so there's an implicit understanding that users participating are willing to report issues, and not participating is as easy as just sticking to stable releases which is likely done by the majority of users without even considering release candidates. Whether automatic reporting in such cases is okay will be always a subject of debate, here at least documentation (mostly) covers it.

    https://docs.syncthing.net/users/security.html#usage-reporting / https://github.com/syncthing/syncthing/blob/main/man/syncthing-security.7 seems not to cover it which is a missed opportunity as likely that's the only documentation checked out by many looking for security (and privacy) considerations, but aside from that I think we have a reasonable balance here.

  29. Unknown78 commented on Nov 3, 2023

    @Unknown78

    @voidpointertonull Which part to enforce? How to enforce and rebuild it? Is there someone before who'd forked and rebuild it?

  30. er-pa commented on Nov 3, 2023

    @er-pa
    Member

    @voidpointertonull Which part to enforce? How to enforce and rebuild it? Is there someone before who'd forked and rebuild it?

    One can just find the responsible code (I think lib/syncthing/syncthing.go L296) remove it and build it as per available documentation.

    Otherwise, it's ofc easier to not use release candidates but only stable versions - then you can easily adjust the usage-reporting in the gui.

  31. added theissue type on May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions