chadtmiller.com/group-host
atmosphere group host
Release 0.7.0
MergedThis 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.
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.
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 theatgrp,group-hostandgroup-host-mcpentries inCargo.lockfollow it. - Changelog: the pull deletes all three change files (
atproto-client.md,console-sign-in-by-atproto-client.mdand the newconsole-one-oauth-client.md). The 0.7.0CHANGELOG.mdsection reproduces them word for word. The two features are under Features, and thedefault: patchchange file is under Fixes. - Bump size: a minor bump is still right for 0.x, because of the breaking
HANDLE_RESOLVERSformat. - 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.
The pull is still a mechanical release of 0.7.0, and I found nothing to change.
- Version bump:
Cargo.tomlgoes to 0.7.0, and theatgrp,group-hostandgroup-host-mcpentries inCargo.lockfollow it. - Changelog: the pull deletes all four change files. The 0.7.0
CHANGELOG.mdsection reproduces them word for word. The twominorfiles are under Features. The twopatchfiles are under Fixes, including the newservice-auth-verify-with.md. - Bump size: a minor bump is still right for 0.x, because of the breaking
HANDLE_RESOLVERSformat. - 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.
The pull is still a mechanical release of 0.7.0, and I found nothing to change.
- Version bump:
Cargo.tomlgoes to 0.7.0, and theatgrp,group-hostandgroup-host-mcpentries inCargo.lockfollow it. - Changelog: the pull deletes all five change files. The 0.7.0
CHANGELOG.mdsection reproduces them word for word. The twominorfiles are under Features and the threepatchfiles under Fixes, including the newscopes-by-atproto.md. - Bump size: a minor bump is still right for 0.x, because of the breaking
HANDLE_RESOLVERSformat. - Changelog wording: the
verify_anyfix says an unresolvable DID is refusedInvalidToken. Theverify_withfix says it isInvalidRequestagain. 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.
The pull is still a mechanical release of 0.7.0, and I found nothing to change.
- Version bump:
Cargo.tomlgoes to 0.7.0, and theatgrp,group-hostandgroup-host-mcpentries inCargo.lockfollow it. - Changelog: the pull deletes all six change files. The 0.7.0
CHANGELOG.mdsection reproduces them word for word. The threeminorfiles, including the newread-spaces-to-come.md, are under Features. The threepatchfiles are under Fixes. - Bump size: a minor bump is still right for 0.x, because of the breaking
HANDLE_RESOLVERSformat. - 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,
Justfileand 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.
The pull is still a mechanical release of 0.7.0, and I found nothing to change.
- Version bump:
Cargo.tomlgoes to 0.7.0, and theatgrp,group-hostandgroup-host-mcpentries inCargo.lockfollow it. - Changelog: the pull deletes all seven change files. The 0.7.0
CHANGELOG.mdsection reproduces them word for word. The threeminorfiles are under Features and the fourpatchfiles under Fixes, including the newlists-end-without-a-cursor.md. - Bump size: a minor bump is still right for 0.x, because of the breaking
HANDLE_RESOLVERSformat. - What changed since my approval: main's changes came in. A new
pagedhelper inapi.rsleavescursorout on the last page. It replaces"cursor": nullin 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.
The pull is still a mechanical release of 0.7.0, and I found nothing to change.
- Version bump:
Cargo.tomlgoes to 0.7.0, and theatgrp,group-hostandgroup-host-mcpentries inCargo.lockfollow it. - Changelog: the pull deletes all eight change files. The 0.7.0
CHANGELOG.mdsection reproduces them word for word. The threeminorfiles are under Features and the fivepatchfiles under Fixes, including the newmigration-method-errors.md. - Bump size: a minor bump is still right for 0.x, because of the breaking
HANDLE_RESOLVERSformat. - 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.
9 passed
Releases group-host 0.7.0, from the 8 change files on main: its changelog is below. Merging this pull releases it; the
release-pullworkflow then tags itv0.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.0makes 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/_healthand the MCP server'sserverInfoname 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-clientcrate. 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_RESOLVERSnames a handle's own/.well-known/atproto-didaswell-known, asked over the schemeDID_WEB_SCHEMEsays, where it waswell-known:<scheme>: the host refuses to start with the old form. WithDID_WEB_SCHEME=http, as on a test network, a handle may be any name, as127.0.0.1:2584.atgrpcalls 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
callline, attempt by attempt, in the trace of the request it is made for, and sends atraceparentnaming that trace; a refusal it is answered with is logged asrefused.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, whereCONSOLE_URLis 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
callline and sends atraceparent, 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
notifyRepoUpdateandnotifyCredentialsRevoked, and an account's token for moving here, are checked with atproto-client'sverify_any, for the audiences each took before. A token's audience and method are now checked before any key is read:notifyRepoUpdatechecks itsspaceis well formed first, and a token for an account not hosted here is refused bynotifyCredentialsRevokedbefore its signature. An account's token for moving here whose DID can't be resolved is refusedInvalidToken, as one whose DID names no key is, where it wasInvalidRequest.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'scursor, a string, does not allow, so a client checking answers against the lexicons (as@atproto/lexdoes) refused it. That wascom.atproto.repo.listRecords,com.atproto.sync.listReposandlistBlobs,com.atproto.space.listRecords,listRepoOpsandlistBlobs,org.atgrp.listJoinRequests,org.atgrp.internal.listInvitesandorg.atgrp.internal.listSpaceRecords.Moving a group and revoking a token name their errors
The lexicons of
org.atgrp.internal.migratePrepare,migrateReceive,migrateComplete,migrateActivateandrevokeGroupTokennow 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,NotYetandNotFound.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
scopemodule, as atproto's permission spec and@atproto/oauth-scopesread 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 anrpc:audience with no#service. Approval withholds such a scope, andcreateSpaceandupdateSpacerefuse 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, soIMAGE/pngno longer passesblob:image/*. A token now keeps each blob scope it is given as one scope per type, lowercase (blob?accept=Image/PNGbecomesblob:image/png).An
rpc:scope for one of the host's own methods names it at<host DID>#atgrpor*; the host's DID alone, which it took before, is no audience.space?spaceType=Tis now kept at approval asspace:Tis.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 andatgrpwrite all read the same.Service auth is checked with atproto-client 0.7.1's
verify_withThe 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 refusedInvalidRequestagain, as before 0.6; one whose DID names no key, or whose signature doesn't hold, is stillInvalidToken.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.