Skip to content

docs(upgrade): correct four sentences of the 1.0.0 upgrade notes - #1133

Merged
LeeroyHannigan merged 1 commit into
mainfrom
docs/upgrade-manual-1.0.0-fixes
Nov 18, 2026
Merged

LeeroyHannigan merged 1 commit into
mainfrom
docs/upgrade-manual-1.0.0-fixes

Conversation

@LeeroyHannigan

Copy link
Copy Markdown
Collaborator

What

This corrects four sentences that #1107 added to docs/manuals/07-upgrade-manual.md for the upgrade to 1.0.0:

  • Current Status: 0.1.15 read many of its Cassandra rows at ONE, not all of them.
  • General Upgrade Procedure: from 0.1.15, step 4's migrate prints Up to date. Current is the status that verify prints.
  • The v1.0.0 Cassandra entry: 0.1.15 ran many of its lightweight transactions at LOCAL_SERIAL and LOCAL_QUORUM already. The admin user creation and most IAM writes ran at the driver's defaults, SERIAL and ONE.
  • The v1.0.0 catalog key entry: the PostgreSQL query now matches the value against the pattern of a key that 1.0.0 accepts. It printed t for a valid key and f for four keys that 1.0.0 refuses. The text for the other backends refers to the same pattern.

Why

Follows #1107.

  • At v0.1.15, the Cassandra helper for lightweight transactions sends each statement at LOCAL_QUORUM, with LOCAL_SERIAL as its serial level. 63 calls go through it. The admin user store and most of the IAM store sent their conditional writes with no level, so the driver's defaults applied. Three IAM writes (the password change, the user delete and the account delete) committed at LOCAL_QUORUM and sent no serial level.
  • On a catalog at migration 12, extenddb migrate prints Up to date: the catalog is at migration 12, the latest this binary carries. No migrations needed. and exits 0.
  • A 32-byte key is 43 base64 characters and one =. The 43rd character holds the last 4 bits of the key and 2 padding bits. The base64 crate that 1.0.0 uses requires zero padding bits, and 16 of the 64 characters meet this in that position.
  • The base64 decoder of PostgreSQL skips spaces and line breaks, and it accepts nonzero padding bits. So length(decode(value, 'base64')) printed 32 for a key with a newline, a space or nonzero padding bits. 1.0.0 refuses each of these keys at startup.

Testing done

The old and the new query on PostgreSQL 16, and the key check of 1.0.0, with five keys:

Key Old query New query 1.0.0 key check
A valid 32-byte key 32 t accepted
The key and a newline 32 f invalid symbol at offset 44
The key with a space in it 32 f invalid symbol at offset 10
A 16-byte key 16 f encryption key must be 32 bytes
The key with nonzero padding bits 32 f invalid last symbol at offset 42
  • The last column comes from the decode and length check of decode_key_into, copied into a scratch program with the same base64 version, 0.22.1.
  • cargo +1.97.0 test --locked -p extenddb-storage-postgres --test doc_version_literals: 3 passed.
  • On a catalog that the 0.1.15 image created, 1.0.0 migrate printed the Up to date line above. 1.0.0 serve exited 1 on the same catalog with a newline at the end of the key.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, or public CLI surface, an RFC has been accepted or is linked
    below. Otherwise, an ADR captures the decision (link below).

ADR / RFC: n/a


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

- Current Status: 0.1.15 read many of its Cassandra rows at ONE, not all of them.
- General Upgrade Procedure: from 0.1.15, migrate prints "Up to date". Current is the status that verify prints.
- The v1.0.0 Cassandra entry: 0.1.15 ran many of its lightweight transactions at LOCAL_SERIAL and LOCAL_QUORUM already. The admin user creation and most IAM writes ran at the driver's defaults, SERIAL and ONE.
- The v1.0.0 catalog key entry: the PostgreSQL query now matches the pattern of a key that 1.0.0 accepts. The pattern is 42 base64 characters, one of the 16 characters with zero padding bits, and "=". The text for the other backends refers to the same pattern. The old query, length(decode(value, 'base64')), printed 32 for a key with a newline, a space or nonzero padding bits. 1.0.0 refuses each of these keys.
@LeeroyHannigan LeeroyHannigan added v1 Needed for the 1.0 release release-blocker Must ship for its milestone's release labels Nov 18, 2026
@LeeroyHannigan LeeroyHannigan added this to the 1.0 milestone Nov 18, 2026
@demohan demohan self-assigned this Nov 18, 2026

@demohan demohan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve. The four sentences match the source. At v0.1.15, query_lwt runs at LOCAL_QUORUM with LOCAL_SERIAL, the admin user creation sends no level, and 9 of the 12 IAM conditional writes use apply_lwt at the driver default. On PostgreSQL 14 and 16 the new query printed t for a valid key and f for a key with a newline, a key with a space, a 16-byte key and a key with nonzero padding bits. base64 0.22.1 accepts the same 16 characters as the regex in the 43rd position. Optional: the driver sends no serial level, so SERIAL is the server default rather than the driver's.

@LeeroyHannigan
LeeroyHannigan added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit c2e9a32 Nov 18, 2026
52 of 55 checks passed
@LeeroyHannigan
LeeroyHannigan deleted the docs/upgrade-manual-1.0.0-fixes branch November 18, 2026 19:20
LeeroyHannigan added a commit that referenced this pull request Nov 19, 2026
docs/manuals/07-upgrade-manual.md keeps the migration 13 text of this branch in Current Status. Its Cassandra sentence takes the "many of its rows" correction of main (#1133). The General Upgrade Procedure keeps the migration 13 sentence of this branch in place of the "Up to date" sentence of main. On this branch an upgrade from 0.1.15 applies migration 13.
LeeroyHannigan added a commit that referenced this pull request Nov 19, 2026
docs/manuals/07-upgrade-manual.md keeps the migration 13 text of this branch in Current Status. Its Cassandra sentence takes the "many of its rows" correction of main (#1133). The General Upgrade Procedure keeps the migration 13 sentence of this branch in place of the "Up to date" sentence of main. On this branch an upgrade from 0.1.15 applies migration 13.
LeeroyHannigan added a commit that referenced this pull request Nov 19, 2026
Release 1.0.0 shipped from main (#1133) without this branch. The four sentences that 2fc23a2 changed for migration 13 describe 1.0.0, which carries migrations 1 to 12. They are again the text of main:

- Current Status
- the opening of the General Upgrade Procedure
- the opening of the Rollback Procedure
- the rollback paragraph of the v1.0.0 key entry

The GSI queue entry of this branch now says what migration 13 changes for a rollback to 1.0.0. On PostgreSQL the migration is breaking, so 1.0.0 refuses the migrated catalog, and a rollback restores both databases. SQLite, MongoDB and Cassandra record it as not applicable, and 1.0.0 serves those catalogs with a warning.
LeeroyHannigan added a commit that referenced this pull request Nov 19, 2026
… entries to v1.1.0

Release 1.0.0 shipped from main (#1133) without this branch. The four sentences that e2654c4 changed for migration 13 describe 1.0.0, which carries migrations 1 to 12. They are again the text of main:

- Current Status
- the opening of the General Upgrade Procedure
- the opening of the Rollback Procedure
- the rollback paragraph of the v1.0.0 key entry

The migration 13 paragraph of this branch in Current Status is now followed by what the migration changes for a rollback to 1.0.0. On PostgreSQL and SQLite the migration is breaking, so 1.0.0 refuses the migrated catalog, and a rollback restores the backup. MongoDB and Cassandra record it as not applicable, and 1.0.0 serves those catalogs with a warning.

The two entries of this branch under Behavior Changes by Release now name v1.1.0. docs/versioning.md puts a breaking catalog migration in a minor release, so 1.0.1 cannot carry this branch.
LeeroyHannigan added a commit that referenced this pull request Nov 19, 2026
No file conflicted. The merge brings main at release 1.0.0 (#1107) and the upgrade note changes of #1133.
LeeroyHannigan added a commit that referenced this pull request Nov 19, 2026
No file conflicted. The base branch now holds main at release 1.0.0 (#1107) and the upgrade note changes of #1133. The lines that main adds hold no em or en dash, and they name the product in lowercase only in sample output.
LeeroyHannigan added a commit that referenced this pull request Nov 19, 2026
No file conflicted. The base branch now holds main at release 1.0.0 (#1107) and the upgrade note changes of #1133. Main changed neither extenddb.sample.toml nor the config crate, and docs/configuration.md still matches the sample. Cargo.lock differs from the lock file of main only by the serde_json dependency of extenddb-config that this branch adds. The four license notice files are current.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
No file conflicted. Of the files this branch changes, main changed only docs/manuals/07-upgrade-manual.md. #1133 rewrote four sentences of the 1.0.0 notes. #526 added a v1.1.0 entry at the end of Behavior Changes by Release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-blocker Must ship for its milestone's release v1 Needed for the 1.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants