Commit Graph
8248 Commits
Author SHA1 Message Date
Jakob Borg 61bfc7e75f wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-19 11:29:35 +01:00
Jakob Borg 65b7ef649a wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-19 10:38:55 +01:00
Jakob Borg ea4b42aa38 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-19 10:32:32 +01:00
Jakob Borg e1bc3801ec wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-19 00:48:51 +01:00
Jakob Borg 43e9317b3e wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-19 00:38:55 +01:00
Jakob Borg 5a4f1f2547 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-18 23:56:13 +01:00
Jakob Borg 5f7f9811d4 diag
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 10:09:32 +01:00
Jakob Borg a79f88536b wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 07:55:51 +01:00
Jakob Borg b1202e472b wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 07:54:26 +01:00
Jakob Borg a30e2099f8 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 07:52:38 +01:00
Jakob Borg 6b1f6175b8 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 07:52:06 +01:00
Jakob Borg e6c7b64af4 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 07:47:13 +01:00
Jakob Borg 81898f0a65 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 07:39:30 +01:00
Jakob Borg 2bf36251af wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 06:46:04 +01:00
Jakob Borg 08004e61ae wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 05:33:18 +01:00
Jakob Borg 9299ece8d9 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 05:24:06 +01:00
Jakob Borg d05fbecc4f wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 05:20:21 +01:00
Jakob Borg 2854364c0b enc
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 05:16:55 +01:00
Jakob Borg a60e77eb6b wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-17 05:13:32 +01:00
Jakob Borg d21f613102 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-13 07:38:50 +01:00
Jakob Borg f97d939d63 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-11 19:47:23 +01:00
Jakob Borg 79931ab913 wip
Signed-off-by: Jakob Borg <[email protected]>
2026-11-11 19:42:31 +01:00
Jakob Borg 5222179c1d Merge branch 'main' into libp2p
* main:
  chore(gui, man, authors): update docs, translations, and contributors
2026-11-11 16:35:00 +01:00
Syncthing Release Automation ed2e0fd441 chore(gui, man, authors): update docs, translations, and contributors 2026-11-09 03:48:13 +00:00
Jakob Borg 3f795834db feat: Peer-to-peer discovery (fixes #3388)
This implements a new peer-to-peer-based discovery protocol.

- The DHT is based on libp2p (of IPFS etc) and constitutes a new,
  separate Syncthing-specific network. It does not piggyback on any
  existing non-Syncthing nodes out there.
- It uses existing device IDs as the keys, and publishes discovery
  documents that include the device certificate and are signed by the
  same. This enables validation that the discovery data is _for_ the
  right device ID, as well as published _by_ that device.
- The DHT runs on the QUIC socket, so it shares UPnP/NAT-PMP whole
  punches and STUN discovery. (Unless the QUIC listener is disabled,
  then it runs on an ephemeral socket and can effectively do only
  queries and not participate as a full DHT node.)
- There is a hardcoded default pointing to three bootstrap nodes hosted
  in the usual manner.
- Currently it's strictly additive -- it runs separately and in
  parallell with the usual global discovery. Once proven and scaled, it
  will gradually take over the duties of the global discovery.
- There is a new command line tool `stdht` which just runs a DHT node to
  assist with discovery (the bootstrap nodes are this).

The diff is large and terrifying, but that's how it is.

Signed-off-by: Jakob Borg <[email protected]>
2026-11-05 22:43:18 +01:00
Syncthing Release Automation b347343761 chore(gui, man, authors): update docs, translations, and contributors 2026-11-02 03:47:41 +00:00
Jakob Borg ed38528d7f fix: invalid files on remote devices are not "available" (fixes #10943) (#10944)
Properly exclude them from the corresponding query.

Signed-off-by: Jakob Borg <[email protected]>
2026-10-27 12:25:15 +01:00
tbodt 9da9c11ef1 feat(api): magic token authentication from syncthing browse (#10810)
Syncthing's authentication options have seemed sort of lacking to me for
a while. I can choose between no authentication (and now the admin
interface is accessible to theoretically every website I visit), or
password authentication (why do I need a password? it's all on one
computer!). This PR adds magic tokens with which the `syncthing browse`
and `syncthing serve` commands can magically log you in.

I hope that adding this and refining it enough will make it eventually
possible to change the default from "zero auth" to "token auth only".

### Testing

Some unit tests, and manually tested using syncthing browser and
syncthing serve, both of which create a token when they open the
browser.

### Documentation

TODO

---------

Signed-off-by: tbodt <[email protected]>
2026-10-27 12:24:30 +01:00
Syncthing Release Automation 70b5bc78ca chore(gui, man, authors): update docs, translations, and contributors 2026-10-26 03:58:06 +00:00
Vandra-Meyer Akos a4a2da477f fix(model): skip ignored folders when auto-accepting (fixes #10935)
Auto-accept ran before the check for ignored folders, so a folder in
the device's ignored folders was still accepted when the device
announced it. After that, the config cleanup removed the ignore entry,
because the folder existed again.

The docs say that an ignored folder is always skipped when the device
announces it. Skip ignored folders in the auto-accept loop too.

Signed-off-by: Vandra-Meyer Akos <[email protected]>
2026-10-23 07:03:25 +02:00
Jakob Borg d6d0181f7d fix(model): properly compare blocks when reconciling receive-only (fixes #10928) (#10929)
Signed-off-by: Jakob Borg <[email protected]>
v2.1.7 v2.1.7-rc.4
2026-10-20 19:54:38 +00:00
Syncthing Release Automation 775573cb2c chore(gui, man, authors): update docs, translations, and contributors 2026-10-19 03:55:11 +00:00
Jakob Borg 2d2ffc160e fix: cap body sizes for incoming requests to public services
Signed-off-by: Jakob Borg <[email protected]>
v2.1.7-rc.3
2026-10-18 11:31:39 +02:00
Jakob Borg ab91974876 fix(model): ensure parent ownership is copied properly (fixes #8399) (#10926)
When creating multiple directories, inherit ownership all the way up
(down).

Signed-off-by: Jakob Borg <[email protected]>
2026-10-18 11:30:45 +02:00
Jakob Borg f07853b517 fix(model): verify local change before applying metadata shortcut (fixes #10924) (#10925)
Signed-off-by: Jakob Borg <[email protected]>
2026-10-18 11:24:47 +02:00
Jakob Borg 7eee65afc6 chore(protocol): add protovalidate validation of incoming messages, reasonable limits (#10838)
This adds pre-validation directly at the unmarshal step, of annotations
added to the protobuf definitions. This seeks to weed out unreasonable
situations early, by ensuring offsets are positive, string lengths are
limited, etc. Some of the limits are a bit subjective, but I think I've
put them above what is expected and reasonable...

---------

Signed-off-by: Jakob Borg <[email protected]>
2026-10-18 11:09:03 +02:00
Jakob Borg ab8dcf844e fix(protocol): convert panics on bad data to protocol errors (#10923)
A couple of "panic: bug: foo" type things, where the bug could be
controlled by the supposedly untrusted side.

Signed-off-by: Jakob Borg <[email protected]>
2026-10-18 10:45:48 +02:00
Syncthing Release Automation d70d210320 chore(gui, man, authors): update docs, translations, and contributors v2.1.7-rc.2 2026-10-12 04:05:09 +00:00
Jakob Borg a0fd63763f fix(discover): skip unnecessary identical global announce updates; obey retry-after (#10918)
We might send unnecessary updates because something changed by the
actual announcement remains identical; skip those.

---------

Signed-off-by: Jakob Borg <[email protected]>
2026-10-09 12:11:30 +02:00
Jakob Borg aff2db883e build(deps): update dependencies (#10917)
Signed-off-by: Jakob Borg <[email protected]>
2026-10-09 10:36:49 +02:00
Jakob Borg 5fb192176d fix(sqlite): do not generate unbounded prepared statements (ref #10913) (#10915)
The API can use arbitrary paging parameters, causing arbitrary numbers
of prepared statements, which becomes a memory leak.

Signed-off-by: Jakob Borg <[email protected]>
v2.1.7-rc.1
2026-10-07 19:08:43 +02:00
Jakob Borg 84329b277f fix(sqlite): avoid early garbage collection of deleted recv-enc files (#10916)
Signed-off-by: Jakob Borg <[email protected]>
2026-10-07 19:07:32 +02:00
Jakob Borg 529ced6c6b fix: handle missing max-sequence file entries (#10912)
This could happen when a folder has deleted files as the latest entries,
and nothing else happened for 180 days (the default tombstone cleanup
time).

Signed-off-by: Jakob Borg <[email protected]>
2026-10-07 18:32:44 +02:00
Jakob Borg 6868119860 build: skip defunct loki sending
Signed-off-by: Jakob Borg <[email protected]>
2026-10-06 10:02:02 +02:00
Syncthing Release Automation 4461a1ce35 chore(gui, man, authors): update docs, translations, and contributors v2.1.6 2026-10-05 04:03:55 +00:00
Jakob Borg 7ad73b408a fix: remove unnecessary delay in index transmission (#10908)
Prior to refactoring, this delay kicked in once all batches were sent.
Now, it came between each batch. Fix that.

---------

Signed-off-by: Jakob Borg <[email protected]>
2026-10-04 06:16:09 +00:00
Jakob Borg 05b6704ef5 fix: use global short lived HTTP client with proper HTTP/2 support (#10901)
In e7b8efb41 I disabled keepalives in several HTTP clients, which
inadvertently also disabled HTTP/2. However, the TLS setup announced h2
as a supported protocol, which caused confusion. This fixes that, and
makes sure to use the same client in all relevant places.

The old option to do usage reporting posts with InsecureSkipVerify goes
away -- nobody should have ever used it.

---------

Signed-off-by: Jakob Borg <[email protected]>
v2.1.6-rc.4
2026-09-30 07:05:59 +00:00
Jakob Borg 9bb4747df2 fix(watchaggregator): properly convert floating-point time duration (fixes #10899) (#10900)
Signed-off-by: Jakob Borg <[email protected]>
2026-09-30 05:53:20 +00:00
Syncthing Release Automation b223f729c6 chore(gui, man, authors): update docs, translations, and contributors 2026-09-28 03:57:45 +00:00
GiridharandGiridhar 94c3c1cdef fix(gui): improve header and button color contrast (fixes #10488) (#10815)
### Purpose

Improve the contrast of semantic request-dialog headers and buttons in
the light, dark, and black GUI themes.

The light theme keeps its bright semantic colors and uses black text for
success, warning, and danger alerts plus success/warning buttons. Danger
buttons use the existing darker red with white text. The dark themes use
darker success, warning, and danger backgrounds with white text.

The lowest enabled-state contrast ratio is 4.509:1, meeting WCAG AA for
normal text.

### Testing

- `go run build.go assets`
- `go run build.go build syncthing`
- `git diff --check`
- Checked the base and interactive semantic color pairs with a WCAG
contrast calculation; all enabled states are at least 4.5:1.
- Loaded the generated GUI assets in Chromium and verified the computed
foreground/background colors for success, warning, and danger alerts and
buttons in both light and dark themes.

### Screenshots

Rendered light and dark fixtures locally to verify the complete alert
and button combinations. The computed colors matched the intended theme
rules and no clipping or layout changes were introduced.

### Documentation

No documentation changes are required; this only corrects existing theme
colors.

Signed-off-by: Giridhar <[email protected]>
Co-authored-by: Giridhar <[email protected]>
v2.1.6-rc.3
2026-09-22 14:50:39 +02:00