chadtmiller.com/monolith
An atproto PDS
Release 0.3.0
MergedThis is the release pull for 0.3.0. It bumps the workspace version and the seven crate entries in Cargo.lock from 0.2.0 to 0.3.0, adds the 0.3.0 section to CHANGELOG.md, and deletes the two change files. The changelog text matches the removed change files, and the lock entries match Cargo.toml. The passkeys change is a minor, which fits 0.3.0. I found nothing to change.
This is still the 0.3.0 release pull. It now takes in four change files, not two: the two I approved before, plus the large-import compaction fix and the importRepo record-preservation fix. The Cargo.toml version and the seven Cargo.lock crate entries are bumped to 0.3.0. The four CHANGELOG sections match their removed change files word for word. The passkeys change is the only minor, which fits 0.3.0, and the other three are patches filed under Fixes. I found nothing to change.
2 passed, 2 skipped
Releases Monolith 0.3.0, from the 4 change files on main: its changelog is below. Queue this pull to release it; once it lands, release.yml publishes the image and the binary and tags the commit. release-pull.yml keeps it up to date as change files land.
release-pull.yml
What changes
Monolith 0.3.0, as
knope release --override-version 0.3.0makes it from main at 5e6c396145f8: the workspace version from 0.2.0 to 0.3.0 in Cargo.toml and the crates' Cargo.lock entries, the version's CHANGELOG.md section, and the change files removed.Features
Accounts sign in with passkeys
An account can sign in on the OAuth sign-in page with a passkey instead of its password, and with no email code.
pds passkey add --name <name>(or thepasskey_addMCP tool), with the account's password session, answers a link, good for 15 minutes, to open in a browser on the device that is to keep the passkey;pds passkey listandpds passkey remove --id <id>list and remove them. The sign-in page offers the device's passkeys in the "Handle or email" field's autofill, and with aSign in with a passkeybutton. Passkeys are bound to the host ofPDS_PUBLIC_URL: a browser makes none for an IP address, and once the URL names another host those made before are no longer offered. A password reset removes the account's passkeys.Fixes
A large import's log is compacted at once
The log of an account that moved in a large repository with
com.atproto.repo.importRepois compacted in seconds, not in about an hour: the import is one commit of every record, whose index was larger than compaction's cache keeps, so it read the whole commit again for each record it wrote out, and the account's next write, such asactivateAccount, waited for it all that time. Compaction now indexes each commit once, holding its index until it ends, counted inPDS_CACHE_BYTESas what it holds besides.importRepo keeps every record as the CAR file has it
A repository moved in with
com.atproto.repo.importRepowhose records hold a map that JSON writes as another value, such as a blob ref whoserefis a map of the one key$linkrather than a link, as some servers wrote them, no longer leaves the account's log unreadable: before, the server loggedstore failure("record …, which the commit … does not sign") on the import and on every write after it, could not compact the account's log, and stopped when it next read such a record from the log. Each record is now kept byte for byte at the CID the CAR names, through compaction and restarts, and the blob such arefnames is the account's to hold, listed bylistMissingBlobsuntil it is uploaded. The same holds for a space repo's records imported withcom.atproto.space.importRepo.Monolith is licensed MIT or Apache-2.0
Monolith may be used, changed and shared under the MIT license or the Apache License 2.0, at your option. Both are in the binary's archive and in the image, at
/usr/share/doc/monolith/, whoseorg.opencontainers.image.licenseslabel names them. The specifications vendored underspec/keep their own licenses.Why
Those who run Monolith get main's changes only from a release. A 0.x minor change raises the minor here, where knope alone would raise the patch.
How it was checked
The gates run on this pull, as on any.
harness/upgrade/is written again from the tagged release afterwards, as docs/guide/contributing.md, "Releases", says.