syncthing/cmd/stdiscosrv
Jakob Borg 8519a24ba6
cmd/*, lib/tlsutil: Refactor TLS stuff (fixes #5256) (#5276)
This changes the TLS and certificate handling in a few ways:

- We always use TLS 1.2, both for sync connections (as previously) and
  the GUI/REST/discovery stuff. This is a tightening of the requirements
  on the GUI. AS far as I can tell from caniusethis.com every browser from
  2013 and forward supports TLS 1.2, so I think we should be fine.

- We always greate ECDSA certificates. Previously we'd create
  ECDSA-with-RSA certificates for sync connections and pure RSA
  certificates for the web stuff. The new default is more modern and the
  same everywhere. These certificates are OK in TLS 1.2.

- We use the Go CPU detection stuff to choose the cipher suites to use,
  indirectly. The TLS package uses CPU capabilities probing to select
  either AES-GCM (fast if we have AES-NI) or ChaCha20 (faster if we
  don't). These CPU detection things aren't exported though, so the tlsutil
  package now does a quick TLS handshake with itself as part of init().
  If the chosen cipher suite was AES-GCM we prioritize that, otherwise we
  prefer ChaCha20. Some might call this ugly. I think it's awesome.
2018-10-21 14:17:50 +09:00
..
apisrv_test.go cmd/stdiscosrv: Be more picky about allowed addresses (fixes #5151) (#5153) 2018-08-30 18:06:35 +01:00
apisrv.go cmd/stdiscosrv: Be more picky about allowed addresses (fixes #5151) (#5153) 2018-08-30 18:06:35 +01:00
database_test.go all: Fix typos (#4772) 2018-02-24 08:51:29 +01:00
database.go cmd/stdiscosrv: Unflake test (fixes #5247) 2018-10-18 20:39:36 +09:00
database.pb.go cmd/stdiscosrv: Record time of failed lookup 2018-03-06 16:15:29 +01:00
database.proto cmd/stdiscosrv: Record time of failed lookup 2018-03-06 16:15:29 +01:00
main.go cmd/*, lib/tlsutil: Refactor TLS stuff (fixes #5256) (#5276) 2018-10-21 14:17:50 +09:00
README.md build: Packaging for stdiscosrv 2018-01-16 20:46:48 +01:00
replication.go cmd/stdiscosrv: Add replication heartbeats (fixes #5117) (#5120) 2018-08-15 16:52:20 +02:00
stats.go cmd/stdiscosrv: Delete records for abandoned devices (#4957) 2018-05-16 09:26:20 +02:00

stdiscosrv

This is the global discovery server for the syncthing project.

Usage

https://docs.syncthing.net/users/stdiscosrv.html