chadtmiller.com/monolith
An atproto PDS
0
0
Release 0.4.0
Merged 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/.
All checks have passed
4 passed
Merged as 1211ae6
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.0makes 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 forspace:<type>keeps it in its token: a bare type's collections are those its space type declaration lists, resolved as permission sets are, andauthority=selfbecomes the account's DID. A call its scope does not allow is403 ScopeMissingError, naming thespace:scope that would;transition:genericallows nothing of a space, andgetDelegationTokenneedsread. A request naming a space type that does not resolve to a declaration is sent back to its client from the authorization page withinvalid_scope. Before, the space methods refused every OAuth token as400 InvalidToken, and no token kept aspace:permission.Fixes
pds_log_bytesno longer counts journal segments already deletedWith
PDS_SYNCtogether, thepds_log_bytesgauge, 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_idof up to 18470 bytes, not 2048: the longest loopback client ID naming aredirect_uriof 2048 bytes and ascopeof 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 withinvalid_request: client_id is too longalthough every part of their request was within its own cap.A space's
listRecordscursor is a record's URI, as the reference's iscom.atproto.space.listRecordsanswers 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 is400 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.