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

Release 0.7.0

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:release/next

Releases group-host 0.7.0, from the 8 change files on main: its changelog is below. Merging this pull releases it; the release-pull workflow then tags it v0.7.0, and brings this pull up to date as more change files land.

deploy/release.sh

What changes

group-host 0.7.0, as knope release --override-version 0.7.0 makes it from main at 03ee7188fe5c: the workspace version from 0.6.1 to 0.7.0 in Cargo.toml and the crates' Cargo.lock entries, which /xrpc/_health and the MCP server's serverInfo name once it is deployed, the version's CHANGELOG.md section, and the change files removed.

Features

Identities, guarded requests and service tokens by atproto-client

The host resolves identities, asks the hosts others' data names, and checks a space's delegation tokens and a group's token for moving here with the atproto-client crate. Its requests to such hosts now share one pool of connections rather than a client each. Whose a handle is, it keeps five minutes as it keeps DID documents, but asks again to check a group's own domain or an account moving here. HANDLE_RESOLVERS names a handle's own /.well-known/atproto-did as well-known, asked over the scheme DID_WEB_SCHEME says, where it was well-known:<scheme>: the host refuses to start with the old form. With DID_WEB_SCHEME=http, as on a test network, a handle may be any name, as 127.0.0.1:2584. atgrp calls hosts and its own PDS through the same crate.

Each call the host makes to resolve an identity or check a token is logged as a call line, attempt by attempt, in the trace of the request it is made for, and sends a traceparent naming that trace; a refusal it is answered with is logged as refused.

The console signs people in with atproto-client's OAuth client

Signing in to the console, signing up, and signing in to an account to move here go through atproto-client's OAuth client, which holds an authorization server to atproto's profile: it must require PAR, take client metadata documents, say who answers (iss, which a callback must carry), and list the methods the profile asks. Before the tokens are taken, at the callback and before each refresh of a move's session, the account's authorization server is read again from its DID and must be the one that issued them. A sign-in refused after its code was redeemed, as another account's, has its grant revoked. What a sign-in gives back is its refresh token, which ends the whole grant, where it was the access token.

The console's client metadata is a confidential web client's as atproto's profile has it, with a second redirect, /console/move/callback, for an account being moved here; it answers 500, saying why, where CONSOLE_URL is not https at a public name, as no authorization server takes such a client. A sign-in waiting for the browser is kept in the database whole, and a move keeps its account's session there by the account; a move under way when the host is upgraded is let go, to be signed in to again. An account's server is read at most 16 MiB an answer, and 256 MiB a repo or file, while it moves.

Each call the host makes to a host others' data names (sending a call on, telling a PDS or a syncer, reading a client's metadata, a group's own domain) is now logged as a call line and sends a traceparent, as identity calls were.

An app keeps reading a space the group makes after approving it

Approval now keeps a scope that only reads spaces of a type (space:T?action=read), or of a type and key, where the group has no such space yet. Before, it was withheld, and a grant keeps its scope through every refresh, so an app approved before the group made the space could never read it without being approved again. Each credential still asks whether the member reads the space at that moment, so the scope reads nothing the member doesn't. A scope that writes, or reads a space the group already has that the roles don't read, is withheld as before. Grants already made keep the scope they were given: an app reads a space made since only once a member approves it again.

Fixes

The console signs in with one OAuth client, and checks service auth by atproto-client

The console signs people in, and signs in to accounts being moved here, with one OAuth client on atproto-client 0.6. A sign-in coming back to the other one's callback (the console's at a move's, or a move's at the console's) is refused as one this browser did not start, approved or not. A move finished or cancelled while its account's session was being refreshed stays ended: the refreshed tokens are given back, and the move answers NotFound.

Service auth sent to the host's own methods, to notifyRepoUpdate and notifyCredentialsRevoked, and an account's token for moving here, are checked with atproto-client's verify_any, for the audiences each took before. A token's audience and method are now checked before any key is read: notifyRepoUpdate checks its space is well formed first, and a token for an account not hosted here is refused by notifyCredentialsRevoked before its signature. An account's token for moving here whose DID can't be resolved is refused InvalidToken, as one whose DID names no key is, where it was InvalidRequest.

A list's last page names no cursor

The last page of a list names no cursor, where it named "cursor": null, which a lexicon's cursor, a string, does not allow, so a client checking answers against the lexicons (as @atproto/lex does) refused it. That was com.atproto.repo.listRecords, com.atproto.sync.listRepos and listBlobs, com.atproto.space.listRecords, listRepoOps and listBlobs, org.atgrp.listJoinRequests, org.atgrp.internal.listInvites and org.atgrp.internal.listSpaceRecords.

Moving a group and revoking a token name their errors

The lexicons of org.atgrp.internal.migratePrepare, migrateReceive, migrateComplete, migrateActivate and revokeGroupToken now list the errors each answers beyond those any method may, with when, so a client can tell one refusal from another by its name: NotController, NotAllowed, AlreadyHere, BadServiceJwt, HandleNotAvailable, SourceUnreadable, InvalidOperation, NotYet and NotFound.

Scopes read as atproto's reference reads them

The host reads OAuth scopes, roles' permissions and space policies' permissions with atproto 0.4.4's scope module, as atproto's permission spec and @atproto/oauth-scopes read them. A scope its grammar doesn't take is no scope: one naming an action there is none of (repo:C?action=upsert, where the unknown action was left out before), a parameter its resource doesn't take, a value it takes once named twice, a collection that isn't an NSID, or an rpc: audience with no #service. Approval withholds such a scope, and createSpace and updateSpace refuse a policy permission that is one (InvalidRequest).

A blob scope names one type or pattern: blob:image/*,video/* is no scope, where it was read as both. An upload's type is compared with the scope as written, not ignoring case, so IMAGE/png no longer passes blob:image/*. A token now keeps each blob scope it is given as one scope per type, lowercase (blob?accept=Image/PNG becomes blob:image/png).

An rpc: scope for one of the host's own methods names it at <host DID>#atgrp or *; the host's DID alone, which it took before, is no audience. space?spaceType=T is now kept at approval as space:T is.

Tokens already issued keep what they were granted: upgrading rewrites each grant's scope once so that it reads the same. A blob list becomes a scope per type, lowercase; unknown actions and parameters, and repeated values after the first, are dropped; and the host's DID alone as an audience of its own methods becomes <host DID>#atgrp. A scope that granted nothing before still does. Roles and space policies already written are records and are not rewritten: a permission in one that the grammar doesn't take now grants nothing. Those the console and atgrp write all read the same.

Service auth is checked with atproto-client 0.7.1's verify_with

The host's service auth and an account's token for moving here are checked with atproto-client 0.7.1's verify_with, which judges a token's audience itself, and tells an issuer that can't be resolved from one naming no key. An account's token for moving here whose DID can't be resolved is refused InvalidRequest again, as before 0.6; one whose DID names no key, or whose signature doesn't hold, is still InvalidToken.

Why

A version names what the host, the console and the command do for those who run and use them. A 0.x minor change bumps the minor here, where knope alone would bump the patch.

How it was checked

The build and tests are left to CI.

Approved

This is a mechanical release of 0.7.0. It bumps the workspace version in Cargo.toml and the three crates' Cargo.lock entries (atgrp, group-host, group-host-mcp). It adds the 0.7.0 CHANGELOG section, which matches the removed change file word for word. It deletes .changeset/atproto-client.md. A minor bump is right for 0.x, since the change file says minor and it breaks the HANDLE_RESOLVERS format. I found nothing to change. I didn't check CI results.

Approved

The pull still only releases 0.7.0. It bumps the workspace version in Cargo.toml and the three crates' Cargo.lock entries. It adds the 0.7.0 CHANGELOG section and deletes the two change files, atproto-client.md and console-sign-in-by-atproto-client.md. The changelog text matches both removed files word for word, and a minor bump is right for 0.x with the breaking HANDLE_RESOLVERS format. The new commits since my approval brought main's changes in along with the second change file. I read only the pull's own diff, not those merged changes, and I didn't check CI. Nothing to change.

Approved

The pull is still a mechanical release of 0.7.0, and I found nothing to change.

  • Version bump: the workspace version goes to 0.7.0 in Cargo.toml, and the atgrp, group-host and group-host-mcp entries in Cargo.lock follow it.
  • Changelog: the pull deletes all three change files (atproto-client.md, console-sign-in-by-atproto-client.md and the new console-one-oauth-client.md). The 0.7.0 CHANGELOG.md section reproduces them word for word. The two features are under Features, and the default: patch change file is under Fixes.
  • Bump size: a minor bump is still right for 0.x, because of the breaking HANDLE_RESOLVERS format.
  • What changed since my approval: main's changes came in with the new change file. I read the pull's own diff, not the merged code changes, and I didn't check CI.
Approved

The pull is still a mechanical release of 0.7.0, and I found nothing to change.

  • Version bump: Cargo.toml goes to 0.7.0, and the atgrp, group-host and group-host-mcp entries in Cargo.lock follow it.
  • Changelog: the pull deletes all four change files. The 0.7.0 CHANGELOG.md section reproduces them word for word. The two minor files are under Features. The two patch files are under Fixes, including the new service-auth-verify-with.md.
  • Bump size: a minor bump is still right for 0.x, because of the breaking HANDLE_RESOLVERS format.
  • What changed since my approval: main's changes came in with the new change file. They move service auth to atproto-client 0.7.1's verify_with. I read only the pull's own diff and that merged diff for context, and I didn't check CI.
Approved

The pull is still a mechanical release of 0.7.0, and I found nothing to change.

  • Version bump: Cargo.toml goes to 0.7.0, and the atgrp, group-host and group-host-mcp entries in Cargo.lock follow it.
  • Changelog: the pull deletes all five change files. The 0.7.0 CHANGELOG.md section reproduces them word for word. The two minor files are under Features and the three patch files under Fixes, including the new scopes-by-atproto.md.
  • Bump size: a minor bump is still right for 0.x, because of the breaking HANDLE_RESOLVERS format.
  • Changelog wording: the verify_any fix says an unresolvable DID is refused InvalidToken. The verify_with fix says it is InvalidRequest again. Read in order, they give the net behaviour.
  • What changed since my approval: main's changes came in with the new change file. I read only the pull's own diff, not the merged code changes. I didn't check CI.
Approved

The pull is still a mechanical release of 0.7.0, and I found nothing to change.

  • Version bump: Cargo.toml goes to 0.7.0, and the atgrp, group-host and group-host-mcp entries in Cargo.lock follow it.
  • Changelog: the pull deletes all six change files. The 0.7.0 CHANGELOG.md section reproduces them word for word. The three minor files, including the new read-spaces-to-come.md, are under Features. The three patch files are under Fixes.
  • Bump size: a minor bump is still right for 0.x, because of the breaking HANDLE_RESOLVERS format.
  • What changed since my approval: main's changes came in. They keep a read-only space scope when the group has no such space yet, with tests and docs. They also touch the README, Justfile and a few docs. I read that merged diff for context only. The pull's own diff doesn't include it, and I didn't check CI.
Approved

The pull is still a mechanical release of 0.7.0, and I found nothing to change.

  • Version bump: Cargo.toml goes to 0.7.0, and the atgrp, group-host and group-host-mcp entries in Cargo.lock follow it.
  • Changelog: the pull deletes all seven change files. The 0.7.0 CHANGELOG.md section reproduces them word for word. The three minor files are under Features and the four patch files under Fixes, including the new lists-end-without-a-cursor.md.
  • Bump size: a minor bump is still right for 0.x, because of the breaking HANDLE_RESOLVERS format.
  • What changed since my approval: main's changes came in. A new paged helper in api.rs leaves cursor out on the last page. It replaces "cursor": null in all nine list methods the change file names, and three tests were updated to match. I read that diff and it matches the changelog entry. I didn't check CI.
Approved

The pull is still a mechanical release of 0.7.0, and I found nothing to change.

  • Version bump: Cargo.toml goes to 0.7.0, and the atgrp, group-host and group-host-mcp entries in Cargo.lock follow it.
  • Changelog: the pull deletes all eight change files. The 0.7.0 CHANGELOG.md section reproduces them word for word. The three minor files are under Features and the five patch files under Fixes, including the new migration-method-errors.md.
  • Bump size: a minor bump is still right for 0.x, because of the breaking HANDLE_RESOLVERS format.
  • What changed since my approval: main's changes came in. The repo diff from my last approval is about 5,200 lines, and I did not read it. The pull's own diff holds only the release edits above, and they match the body. I didn't check CI.
Merged as f1f7dbb