Repository navigation
v0.1.0-beta.7
Pre-release
Pre-release
Immutable
release. Only release title and notes can be modified.
Release Notes
A release about safety and a cleaner setup. A review of everything the
other side of a sync can send led to many fixes, every connection offers a
key exchange that holds against a future quantum computer, and the new
irsync pair is now the only command that uses ssh. The configuration and
the command line were cleaned up, so read "Upgrading" first.
Upgrading
- The protocol changed. An older irsync cannot talk to this one, so update
the client and every server together. irsync.tomlhas a new layout, and irsync refuses a file from beta.6 at
the first line it no longer knows. Change it by hand, with the
configuration reference at hand:[hosts.NAME]is split into[servers.NAME], the machines you
connect to, and[clients.NAME], the machines your daemon lets in.
Grants name clients. The file starts withconfig_version = 2. [#202][client]is now[defaults], and the top-levelidentitymoves
into it.[all]and[immediate]are nowall_exportsandall_pathson
the client, and[daemon] immediateis nowallow_all_paths. [#284]- One
relay = "default" | "disabled" | "URL"replacesrelayand
relay_mode.dht,dnsandmdnsare plain keys in[daemon],
[defaults]and each server, and[daemon.discovery]is gone. - The export setting
warm_indexis nowindex_at_start.
- The first command that changes
irsync.tomlwrites it in a fixed order.
Comments stay, blank lines do not. - irsync refuses a config file, a private key or a passphrase file that
other users can read or write, or that belongs to another user, as sshd
does.chmod 600fixes it.unsafe_config_allowed = trueat the top of
irsync.tomlturns the check off. - A sync no longer uses ssh.
irsync pair myserversets a server up: it
installs irsync there, lets your client in, starts the daemon as a user
service and saves the server. A sync to a name that is not a saved server
stops and points toirsync pair. Runirsync paironce for each server
you set up before, to update it. [#277] - Commands and flags that changed:
irsync hostis gone. Useirsync serverandirsync client.--ssh,--rsh,--no-installand--no-remote-dhtleft the sync.
irsync pairhas--rsh,--no-ssh-installand--server-no-dht.--timeout SECSis now--idle-timeout DUR.--relay default|disabled|URLreplaces--no-relayand the old
--relay URL, andserver add --relay-modeis gone.export add --rois now--read-only.irsync export updateis nowirsync index --export NAME.grant addandgrant removeno longer takeallorimmediate.
Useirsync client set.
- Every mistake on the command line exits with 2. Some used to exit with 1.
- A push of one file onto a symlink is refused when the link has an
absolute target or leads out of the export. - A client with a grant for only one of two exports of the same directory
can no longer use the other export's name. filesetrefuses a manifest written by an older version. Make it again
withfileset init.
New
irsync pairends by reaching the daemon over iroh, the way a sync
will, and says so when it cannot. [#312]irsync remote myservermanages a server's exports, clients and grants
from your client, with no shell on the server. The server gives a client
that right withirsync client set myclient admin=rw, oradmin=roto
only read.irsync pairgives it to your client. [#203]irsync client setsets a client'sall_exports,all_pathsand
admin.all_paths = "ro"is new: read any path, write none. [#284]irsync export set,irsync export renameandexport add --fsync.
export addalso changes an export that is already there.--identityworks on every command, and-qquiets the management
commands.- Every connection offers the hybrid key exchange
X25519MLKEM768first.
A recorded connection between two irsync of this version stays safe from
a future quantum computer.pq_key_exchange = "require", or
--pq-key-exchange require, refuses a connection without it.-vv
shows which key exchange a connection got. [#240] [#241] [#255] - A chunk that a dropped connection left half done continues where it
stopped. On a link that drops more often than one chunk can cross, a
transfer now finishes. [#281] - A big push over a link that drops often keeps going, as long as each
connection moves data. [#271] - The daemon setting
max_dormant_sessions_per_key, default25, limits
the interrupted sessions one client key may leave in an export. - A run with several sources names each session in the progress block, and
the name stays above its finished lines. [#112] fileset init --store redbkeeps the manifest in one small file, for a
tree that travels. It can be read on media that cannot be written to.
[#192] [#206]filesetruns on Windows.- The book has a page on the threat model. Security problems can be
reported privately on the repository's Security tab. - The landing page has the version switcher, and the book of the
development version moved to dev.irsync.org. [#288] [#318]
Fixed
- irsync checks what the other side of a sync sends much more strictly:
- A receiver places only the one file of a single-file sync, and nothing
that its own filter rules exclude. - Files are read and written through directories opened without
following symlinks, so a sync stays inside the export and the
destination even when a directory is swapped for a symlink. - A sender learns nothing about the old copy of a file it updates.
- A session holds a limited number of filter rules, paths and hard-link
checks. - Text from the other side is printed with control characters and
characters that change the direction of text escaped, and a log entry
stays on one line. - An export's name counts only for a client with a grant for it.
- A receiver places only the one file of a single-file sync, and nothing
- Partial files, the index, the daemon's log and a new config file can be
read by their owner only. Saving the config keeps its permissions. filesettrusts a manifest that came with a tree less: it refuses one
that is a symlink or holds links, views or triggers.--reconnectcounts an outage from the first dropped connection, not
from the start of the run. A long first connection that drops is always
dialled again. [#223]- On a lossy link, the daemon's last answer, such as a refusal, reaches the
client. [#298] - A daemon's refusal no longer looks like an empty list of exports, and a
refused listing no longer prints an error from iroh first. [#256] - The progress block:
- A file that is fully sent and waits for the other side no longer shows
as stalled. [#120] - On a pull, a file gets its row when its data arrives, not while it
waits its turn. [#114] - The rows show the files that are moving, not the largest ones, and the
last line says how many hidden rows are stalled. [#121]
- A file that is fully sent and waits for the other side no longer shows
irsync showno longer creates a daemon key,irsync config getprints
the default of every key, and help, errors and the book were corrected
in many places.
Behind the scenes
- irsync builds on Windows, but does not run there yet.
tools/ci.sh typecheckchecks every platform from one machine. pbwalkshows where every byte of a protocol capture goes. [#231]- aws-lc-rs replaces ring, iroh comes from upstream instead of a fork, and
cargo denyrefuses a new duplicate crate version. OpenSSF Scorecard
checks the repository. [#124] [#209] - Release notes live in
CHANGELOG.md, and every release line gets a
release branch. [#322] - Several flaky tests are fixed.
Install irsync 0.1.0-beta.7
Install prebuilt binaries via Homebrew
brew install irsync-dev/tap/irsyncDownload irsync 0.1.0-beta.7
| File | Platform | Checksum |
|---|---|---|
| irsync-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| irsync-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| irsync-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo irsync-dev/irsyncYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo irsync-dev/irsyncWhat's changed
What's Changed
- Progress block: a fully written file is waiting, not stalled by @lambdanature in #146
- Offer private vulnerability reporting by @lambdanature in #149
- bump-version.sh: update fuzz/Cargo.lock too by @lambdanature in #150
- Add OpenSSF Scorecard by @lambdanature in #151
- Stop a manifest scan that goes round in circles by @lambdanature in #155
- Progress block: on a pull, a file gets its row when its data arrives by @lambdanature in #153
- Progress block: show the files that are moving, not the largest ones by @lambdanature in #156
- Progress block: name the session when a run has several sources by @lambdanature in #157
- Explain a refused pin, and stop piping into grep -q in workflows by @lambdanature in #158
- Fix the site audit findings and add a logo by @lambdanature in #160
- Book: add a threat model page by @lambdanature in #159
- Receiver: a single-file session takes only its one file by @lambdanature in #161
- Escape text from the other side before printing it by @lambdanature in #162
- Receiver: refuse listed paths that its own filter rules exclude by @lambdanature in #163
- Limit the filter rules and paths a peer can make a session hold by @lambdanature in #164
- Read filegen's YAML with a library written in safe Rust by @lambdanature in #166
- Keep partial files, the index, the log and a new config private by @lambdanature in #165
- Take iroh 1.5 from upstream instead of our fork by @lambdanature in #168
- Keep log events on one line and escape direction-changing characters by @lambdanature in #167
- fileset: do not trust a manifest that came with the tree by @lambdanature in #171
- Move to the ssh-key 0.7 release candidate by @lambdanature in #172
- Receiver: copy old content only from whole blocks it offered by @lambdanature in #173
- Bring the Scorecard table in the book up to date by @lambdanature in #175
- Tidy the dependency manifests and update the lock files by @lambdanature in #176
- Read source and old files without following a swapped-in symlink by @lambdanature in #177
- Receiver: write through directories opened without following symlinks by @lambdanature in #178
- Walk a session's tree through directories opened from the base by @lambdanature in #179
- Update jiff to 1.0 and nix to 0.32 by @lambdanature in #180
- Threat model: say where the review stands now by @lambdanature in #181
- Update rusqlite to 0.43 and test fileset for re-prepared statements by @lambdanature in #182
- Add a lookup benchmark for fileset's manifest stores by @lambdanature in #184
- Make and check a session's folder from open directories by @lambdanature in #185
- Threat model: correct two lines about the review's state by @lambdanature in #187
- Reach chunk sources and clone folders from open directories by @lambdanature in #186
- Test that a swapped directory is not followed by @lambdanature in #191
- Take random bytes from getrandom and drop rand_core 0.6 by @lambdanature in #193
- Benchmark fileset lookups on a reopened manifest and in batches by @lambdanature in #195
- Place a pushed single file without looking through a symlink by @lambdanature in #194
- Keep fjall's filter and index blocks in memory by @lambdanature in #196
- Stop two answers from depending on what a client may not see by @lambdanature in #197
- Look entries up through the walk in fileset check by @lambdanature in #198
- Add a redb manifest store to fileset by @lambdanature in #200
- Read an export's name only for a client with a grant for it by @lambdanature in #199
- Refuse a config, key or passphrase file open to other users by @lambdanature in #201
- Limit the hard-link checks a sender holds waiting by @lambdanature in #205
- Update url to 2.5.9 and the other compatible dependencies by @lambdanature in #216
- Update url to 2.5.9 by @lambdanature in #214
- Keep fuzz/Cargo.lock in step with Cargo.lock by @lambdanature in #218
- Limit the dormant sessions one key may leave on a daemon by @lambdanature in #217
- Fix a race in the stress test for the daemon's environment by @lambdanature in #212
- Keep tests and the stress tools away from the user's own config by @lambdanature in #215
- Document what a daemon can learn from chunk reuse on a pull by @lambdanature in #221
- Let the capture test allow a heartbeat after SessionDone by @lambdanature in #220
- Keep three identity tests from tripping the code scanner by @lambdanature in #225
- Send nothing on the control stream after SessionDone by @lambdanature in #227
- Write release notes in CHANGELOG.md and refuse a release without them by @lambdanature in #228
- Add pbwalk, a per-field byte account of a protocol capture by @lambdanature in #230
- Check the release notes on every pull request by @lambdanature in #229
- Write the changelog sections of the earlier releases by @lambdanature in #232
- Bump taiki-e/install-action from 2.90.4 to 2.90.5 in the actions group by @dependabot[bot] in #234
- pbwalk: show each field's bytes in hex with -C by @lambdanature in #236
- fileset: close the open ends of the redb store by @lambdanature in #237
- Record the decision on post-quantum key exchange by @lambdanature in #239
- Bound the meter's overlap test by what it measures by @lambdanature in #242
- Offer the hybrid key exchange first, on aws-lc-rs by @lambdanature in #244
- Smooth pbwalk's rough edges: --top, --message, --message-type and small fixes by @lambdanature in #243
- Add pq_key_exchange = "require" for the daemon and the client by @lambdanature in #248
- Name the whole-manifest checksum in the threat model by @lambdanature in #247
- Fail cargo deny on a new duplicate crate version by @lambdanature in #252
- fileset: test the redb manifest on a read-only mount on macOS and FreeBSD by @lambdanature in #251
- Bring the post-quantum design record up to date by @lambdanature in #257
- fileset: move every Unix call into a platform module by @lambdanature in #259
- filegen: move every Unix call into a platform module by @lambdanature in #260
- Add the version switcher to the landing page by @lambdanature in #261
- Add product and design records for the site by @lambdanature in #264
- fileset on Windows by @lambdanature in #262
- Wait for the waiter in the metered index lock test by @lambdanature in #263
- Hold the config in one message, with a reader and a writer by @lambdanature in #258
- filegen on Windows by @lambdanature in #265
- Windows CI for filegen and fileset, documentation, and fixes from the final review by @lambdanature in #267
- Let the capture test allow an unread end of the daemon's listing by @lambdanature in #268
- Fix the dead zone test's runaway clock, and redial after a long first connection by @lambdanature in #266
- irsync: move every Unix call into a platform module by @lambdanature in #270
- Measure the early-exit daemon test against its timeout by @lambdanature in #274
- Split hosts into servers and clients in the config by @lambdanature in #272
- Say in AGENTS.md that #24 is the foundational issue by @lambdanature in #276
- Count data the receiver took in as progress for the sender by @lambdanature in #279
- Give the tests that save a config a state folder of their own by @lambdanature in #278
- Close the endpoint when an export listing fails by @lambdanature in #280
- Move the ssh setup out of sync into irsync pair by @lambdanature in #282
- Add --pq-key-exchange to server add; test resumed connections by @lambdanature in #285
- Continue a chunk where a dropped connection left it by @lambdanature in #287
- Serve the dev book from dev.irsync.org, keep irsync.org for releases by @lambdanature in #289
- Move [all] and [immediate] onto the client as all_exports and all_paths by @lambdanature in #290
- irsync builds on Windows: names, a held directory, the platform module by @lambdanature in #273
- Type-check irsync for platforms this machine cannot build for by @lambdanature in #292
- Add an admin service to irsync/1 and irsync remote by @lambdanature in #294
- Type-check every platform locally with tools/ci.sh typecheck by @lambdanature in #305
- Remove backward-compatibility code by @lambdanature in #296
- Fix wrong help, error and book text by @lambdanature in #297
- Ask for full GitHub URLs as footnotes in AGENTS.md by @lambdanature in #307
- Fix the protocol messages and clean up the configuration by @lambdanature in #309
- Clean up the command line by @lambdanature in #303
- Restructure the irsync modules by @lambdanature in #306
- Name things for what they are by @lambdanature in #308
- Bring TODO.md up to date by @lambdanature in #314
- Keep the connection open until the client has the daemon's last answer by @lambdanature in #315
- Check at the end of pair that the daemon answers over iroh by @lambdanature in #316
- Show the Dev book's commit in the version switcher by @lambdanature in #319
- Stop check.py reading daemon.mdns as a reference to daemon.md by @lambdanature in #321
- A release branch for every release line by @lambdanature in #323
- bump v0.1.0 beta.7 by @lambdanature in #327
Full Changelog: v0.1.0-beta.6...v0.1.0-beta.7