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

Release 0.7.0

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

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

Features

Spaces' issuer keys hold up at scale

A spaces token (a delegation token, credential or service auth) issued by an account on this server is now verified against the key the server already holds for it, with nothing read from the PLC directory. Other issuers' keys are used for PDS_DID_CACHE_SECS (an hour by default), then go on being used while they are read again in the background, up to the new PDS_DID_CACHE_MAX_SECS (a day by default), after which they are read again first. The server keeps up to one key for each 1 KiB of PDS_CACHE_BYTES (262,144 by default), forgetting the one used longest ago past that rather than all of them, and writes them to PDS_DATA_DIR/issuer-keys at shutdown and each minute they change, so a restart does not read every issuer's document again.

Fixes

Blobs in a bucket are read and stored over kept connections

With PDS_BLOBSTORE_S3_BUCKET set, the server keeps a connection to the store open for up to 90 seconds between requests, instead of 2, so most getBlobs and uploads no longer open a connection and do a TLS handshake first. A request that fails before any answer, as when the store closes an idle connection just as the request is sent, is sent once more over a new connection, within the same timeout.

Spaces' tokens no longer wait for the PLC directory

The key of a delegation token's, a space credential's or a revocation's issuer is kept for PDS_DID_CACHE_SECS (an hour by default) rather than five minutes. Once it is half that old, a token it verifies is answered at once and the issuer's document is read again after it, so a busy issuer's calls never wait for the directory; calls that need the same issuer's document at once share one read of it. Reads from the PLC directory now reuse an open connection instead of making a new one each time, which saves a round trip and a TLS handshake on each; posts to it still take a connection of their own.

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 release pull made by knope release. It raises the workspace version from 0.6.0 to 0.6.1 in Cargo.toml and in the seven crate entries of Cargo.lock. It adds the 0.6.1 section to CHANGELOG.md and removes the one change file, .changeset/issuer-keys.md. The changelog text matches the change file word for word. The patch bump fits a fixes-only release, and nothing else is touched. I didn't review the behaviour change itself, since it landed in an earlier pull.

Approved

This is still the release pull made by knope release. It now also covers the blobstore change that landed on main after my last review. The pull itself changes only the release files: the 0.6.0 to 0.6.1 bump in Cargo.toml and the seven crate entries in Cargo.lock, the new CHANGELOG.md section, and the removal of both change files, .changeset/blobstore-connections.md and .changeset/issuer-keys.md. Both changelog entries match their change files word for word. Both are fixes, so a patch bump fits. The blobstore change in the range I diffed came from main and is not part of this pull, so I didn't review it. It does carry its spec text in spec/BLOBS.md and its harness checks. The earlier approval stands.

Approved

This is still the release pull made by knope release. It now bumps the workspace version to 0.7.0 and covers the new issuer-keys-scale change file, a minor change. The minor bump fits a 0.x feature, as the body says. The pull changes only the release files. These are the Cargo.toml version, the seven Cargo.lock crate entries, the new CHANGELOG.md section, and the removal of the three change files. All three changelog entries match their change files word for word, and I found nothing else touched. I didn't review the behaviour changes, because they landed in earlier pulls. My earlier approval stands.

All checks have passed

3 passed, 1 skipped

Merged as 9e83d9f