chadtmiller.com/monolith
An atproto PDS
0
0
Release 0.4.0
.changeset/log-bytes-journal-segments.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: patch | ||
--- | ||
| ||
# `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. | ||
.changeset/long-loopback-client-ids.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: patch | ||
--- | ||
| ||
# 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. | ||
.changeset/oauth-space-scopes.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: minor | ||
--- | ||
| ||
# 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. | ||
.changeset/space-record-cursors.mddeleted+0−7
| @@ -1,7 +0,0 @@ | ||
--- | ||
default: patch | ||
--- | ||
| ||
# 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`. | ||
Cargo.lock+7−7
| @@ -1324,7 +1324,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
dependencies = [ | ||
"pds-cli", | ||
"pds-server", | ||
| @@ -1334,7 +1334,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-cli" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
dependencies = [ | ||
"pds-lexicon", | ||
"reqwest", | ||
| @@ -1343,7 +1343,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-lexicon" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
dependencies = [ | ||
"pds-repo", | ||
"pds-space", | ||
| @@ -1353,7 +1353,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-repo" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
dependencies = [ | ||
"base64 0.22.1", | ||
"bs58", | ||
| @@ -1366,7 +1366,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-server" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
dependencies = [ | ||
"axum", | ||
"base64 0.22.1", | ||
| @@ -1401,7 +1401,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-space" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
dependencies = [ | ||
"base64 0.22.1", | ||
"blake3", | ||
| @@ -1416,7 +1416,7 @@ dependencies = [ | ||
| ||
[[package]] | ||
name = "pds-store" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
dependencies = [ | ||
"rustix", | ||
"serde_json", | ||
Cargo.toml+1−1
| @@ -3,7 +3,7 @@ resolver = "3" | ||
members = ["crates/*"] | ||
| ||
[workspace.package] | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
edition = "2024" | ||
publish = false | ||
license = "MIT OR Apache-2.0" | ||
CHANGELOG.md+22−0
| @@ -2,6 +2,28 @@ | ||
| ||
What changed in each version of Monolith for those who run it or call it, | ||
from the change files in `.changeset/` (see `knope.toml`). | ||
## 0.4.0 (2026-11-15) | ||
| ||
### 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`. | ||
| ||
## 0.3.0 (2026-11-14) | ||
| ||
### Features | ||