~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Release 0.3.0

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:release/next

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.0 makes 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 the passkey_add MCP 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 list and pds 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 a Sign in with a passkey button. Passkeys are bound to the host of PDS_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.importRepo is 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 as activateAccount, waited for it all that time. Compaction now indexes each commit once, holding its index until it ends, counted in PDS_CACHE_BYTES as what it holds besides.

importRepo keeps every record as the CAR file has it

A repository moved in with com.atproto.repo.importRepo whose records hold a map that JSON writes as another value, such as a blob ref whose ref is a map of the one key $link rather than a link, as some servers wrote them, no longer leaves the account's log unreadable: before, the server logged store 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 a ref names is the account's to hold, listed by listMissingBlobs until it is uploaded. The same holds for a space repo's records imported with com.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/, whose org.opencontainers.image.licenses label names them. The specifications vendored under spec/ 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.

Approved

This 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.

Approved

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.

All checks have passed

2 passed, 2 skipped

Merged as 2bcd9f3