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

Release 0.4.0

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

Releases Monolith 0.4.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.4.0, as knope release --override-version 0.4.0 makes it from main at f722cb114749: the workspace version from 0.3.0 to 0.4.0 in Cargo.toml and the crates' Cargo.lock entries, the version's CHANGELOG.md section, and the change files removed.

Features

OAuth apps can use spaces

The space methods take OAuth access tokens, allowed what their space: permissions allow, as the spaces alpha of the reference serves them (spec/OAUTH-SCOPES.md, "Spaces"). A client asking for space:<type> keeps it in its token: a bare type's collections are those its space type declaration lists, resolved as permission sets are, and authority=self becomes the account's DID. A call its scope does not allow is 403 ScopeMissingError, naming the space: scope that would; transition:generic allows nothing of a space, and getDelegationToken needs read. A request naming a space type that does not resolve to a declaration is sent back to its client from the authorization page with invalid_scope. Before, the space methods refused every OAuth token as 400 InvalidToken, and no token kept a space: permission.

Fixes

pds_log_bytes no longer counts journal segments already deleted

With PDS_SYNC together, the pds_log_bytes gauge, and _stats' logBytes, could count the journal's segments for a while after they were deleted: until the journal had deleted all of them, syncing the directory after each. A segment's bytes now leave the gauge as its file is deleted.

Loopback clients with long scopes can sign in

PAR keeps a client_id of up to 18470 bytes, not 2048: the longest loopback client ID naming a redirect_uri of 2048 bytes and a scope of 4096, every byte of both percent-encoded. A loopback client's ID carries its whole scope, so clients asking for many permissions, such as the knotless CLI (whose ID is 2857 bytes), were refused with invalid_request: client_id is too long although every part of their request was within its own cap.

A space's listRecords cursor is a record's URI, as the reference's is

com.atproto.space.listRecords answers its cursor as the URI of the page's last record, {space}/{repo}/{collection}/{rkey}, as the reference does, where it answered {collection}/{rkey}. It takes a cursor of that form as a position, whether or not that record exists, so a client can start a page below a key of its choosing, as knotless does to read a private repository's refs; before, such a cursor listed nothing. A cursor that is not a record URI of the space and repo asked is 400 InvalidCursor.

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 mechanical 0.4.0 release, and it looks right. It bumps the workspace version in Cargo.toml and the six crate entries in Cargo.lock from 0.3.0 to 0.4.0. It adds the 0.4.0 section to CHANGELOG.md and deletes the four change files. The changelog text matches the deleted files word for word. I took 0.4.0 to be right because one of the four is a minor change, and 0.3.0 was the last release. The pull changes no code, spec or docs, so there is nothing to check against spec/.

Merged as 1211ae6