diff --git a/Cargo.lock b/Cargo.lock index 26a2759cd..e7e39f911 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1660,7 +1660,7 @@ dependencies = [ [[package]] name = "extenddb" -version = "0.1.15" +version = "1.0.0" dependencies = [ "anyhow", "extenddb-app", @@ -1677,7 +1677,7 @@ dependencies = [ [[package]] name = "extenddb-app" -version = "0.1.15" +version = "1.0.0" dependencies = [ "anyhow", "async-trait", @@ -1710,7 +1710,7 @@ dependencies = [ [[package]] name = "extenddb-auth" -version = "0.1.15" +version = "1.0.0" dependencies = [ "async-trait", "aws-credential-types", @@ -1734,7 +1734,7 @@ dependencies = [ [[package]] name = "extenddb-backup-store" -version = "0.1.15" +version = "1.0.0" dependencies = [ "aws-config", "aws-runtime", @@ -1759,7 +1759,7 @@ dependencies = [ [[package]] name = "extenddb-cache" -version = "0.1.15" +version = "1.0.0" dependencies = [ "futures", "moka", @@ -1770,7 +1770,7 @@ dependencies = [ [[package]] name = "extenddb-config" -version = "0.1.15" +version = "1.0.0" dependencies = [ "anyhow", "config", @@ -1785,7 +1785,7 @@ dependencies = [ [[package]] name = "extenddb-core" -version = "0.1.15" +version = "1.0.0" dependencies = [ "base64 0.22.1", "bigdecimal", @@ -1801,7 +1801,7 @@ dependencies = [ [[package]] name = "extenddb-engine" -version = "0.1.15" +version = "1.0.0" dependencies = [ "base64 0.22.1", "bytes", @@ -1827,7 +1827,7 @@ dependencies = [ [[package]] name = "extenddb-server" -version = "0.1.15" +version = "1.0.0" dependencies = [ "anyhow", "async-trait", @@ -1871,7 +1871,7 @@ dependencies = [ [[package]] name = "extenddb-storage" -version = "0.1.15" +version = "1.0.0" dependencies = [ "async-trait", "aws-lc-rs", @@ -1897,7 +1897,7 @@ dependencies = [ [[package]] name = "extenddb-storage-cassandra" -version = "0.1.15" +version = "1.0.0" dependencies = [ "async-trait", "base64 0.22.1", @@ -1928,7 +1928,7 @@ dependencies = [ [[package]] name = "extenddb-storage-mongodb" -version = "0.1.15" +version = "1.0.0" dependencies = [ "anyhow", "async-trait", @@ -1958,7 +1958,7 @@ dependencies = [ [[package]] name = "extenddb-storage-postgres" -version = "0.1.15" +version = "1.0.0" dependencies = [ "anyhow", "async-trait", @@ -1990,7 +1990,7 @@ dependencies = [ [[package]] name = "extenddb-storage-sqlite" -version = "0.1.15" +version = "1.0.0" dependencies = [ "async-trait", "base64 0.22.1", diff --git a/Cargo.toml b/Cargo.toml index 6b8155fad..138d50d1e 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ members = [ ] [workspace.package] -version = "0.1.15" +version = "1.0.0" edition = "2024" rust-version = "1.91.1" license = "Apache-2.0" @@ -45,19 +45,19 @@ homepage = "https://extenddb.org/" # pin that is not exact. # Internal dev-dependencies are declared by path in each crate instead, with # no version, so that cargo drops them from the published manifests. -extenddb-core = { path = "crates/core", version = "=0.1.15" } -extenddb-cache = { path = "crates/cache", version = "=0.1.15" } -extenddb-backup-store = { path = "crates/backup-store", version = "=0.1.15" } -extenddb-engine = { path = "crates/engine", version = "=0.1.15" } -extenddb-storage = { path = "crates/storage", version = "=0.1.15" } -extenddb-config = { path = "crates/config", version = "=0.1.15" } -extenddb-storage-cassandra = { path = "crates/storage-cassandra", version = "=0.1.15" } -extenddb-storage-mongodb = { path = "crates/storage-mongodb", version = "=0.1.15" } -extenddb-storage-postgres = { path = "crates/storage-postgres", version = "=0.1.15" } -extenddb-storage-sqlite = { path = "crates/storage-sqlite", version = "=0.1.15" } -extenddb-auth = { path = "crates/auth", version = "=0.1.15" } -extenddb-server = { path = "crates/server", version = "=0.1.15" } -extenddb-app = { path = "crates/app", version = "=0.1.15" } +extenddb-core = { path = "crates/core", version = "=1.0.0" } +extenddb-cache = { path = "crates/cache", version = "=1.0.0" } +extenddb-backup-store = { path = "crates/backup-store", version = "=1.0.0" } +extenddb-engine = { path = "crates/engine", version = "=1.0.0" } +extenddb-storage = { path = "crates/storage", version = "=1.0.0" } +extenddb-config = { path = "crates/config", version = "=1.0.0" } +extenddb-storage-cassandra = { path = "crates/storage-cassandra", version = "=1.0.0" } +extenddb-storage-mongodb = { path = "crates/storage-mongodb", version = "=1.0.0" } +extenddb-storage-postgres = { path = "crates/storage-postgres", version = "=1.0.0" } +extenddb-storage-sqlite = { path = "crates/storage-sqlite", version = "=1.0.0" } +extenddb-auth = { path = "crates/auth", version = "=1.0.0" } +extenddb-server = { path = "crates/server", version = "=1.0.0" } +extenddb-app = { path = "crates/app", version = "=1.0.0" } # Serialization serde = { version = "1", features = ["derive"] } diff --git a/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html b/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html index c7c83227f..0aaa77ef8 100644 --- a/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html +++ b/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html @@ -1956,17 +1956,17 @@
Apache License
Version 2.0, January 2004
diff --git a/SOFTWARE-LICENSE-NOTICES-DEV.html b/SOFTWARE-LICENSE-NOTICES-DEV.html
index c457488ff..9b6dcfcad 100644
--- a/SOFTWARE-LICENSE-NOTICES-DEV.html
+++ b/SOFTWARE-LICENSE-NOTICES-DEV.html
@@ -1746,17 +1746,17 @@ Used by:
Apache License 2.0
Used by:
Apache License
Version 2.0, January 2004
diff --git a/SOFTWARE-LICENSE-NOTICES-MONGODB.html b/SOFTWARE-LICENSE-NOTICES-MONGODB.html
index 3dc3d4163..870a4a91c 100644
--- a/SOFTWARE-LICENSE-NOTICES-MONGODB.html
+++ b/SOFTWARE-LICENSE-NOTICES-MONGODB.html
@@ -1749,17 +1749,17 @@ Used by:
Apache License 2.0
Used by:
Apache License
Version 2.0, January 2004
diff --git a/SOFTWARE-LICENSE-NOTICES.html b/SOFTWARE-LICENSE-NOTICES.html
index 0499e1e25..b2d5e70a4 100644
--- a/SOFTWARE-LICENSE-NOTICES.html
+++ b/SOFTWARE-LICENSE-NOTICES.html
@@ -1747,17 +1747,17 @@ Used by:
Apache License 2.0
Used by:
Apache License
Version 2.0, January 2004
diff --git a/crates/storage-postgres/tests/doc_version_literals.rs b/crates/storage-postgres/tests/doc_version_literals.rs
index 2e00eedb9..e8e865c79 100644
--- a/crates/storage-postgres/tests/doc_version_literals.rs
+++ b/crates/storage-postgres/tests/doc_version_literals.rs
@@ -3,12 +3,14 @@
//! Binary version literals in the documentation must match the compiled version.
//!
-//! The documentation carries sample output containing the binary version. Those
-//! literals go stale silently: nothing fails, nothing warns, and the next reader
-//! trusts them, so the check stays behind rather than literals that expire at the
-//! next release. Sample lines show the catalog as `catalog migration `, the
-//! highest migration id the binary carries; that number is not checked, so adding a
-//! migration needs no edit here.
+//! The documentation carries sample output containing the binary version, and
+//! the image READMEs and Docker Hub pages under `docker/` run image tags such
+//! as `extenddb/extenddb-mongodb:`. Those literals go stale silently:
+//! nothing fails, nothing warns, and the next reader trusts them, so the check
+//! stays behind rather than literals that expire at the next release. Sample
+//! lines show the catalog as `catalog migration `, the highest migration id
+//! the binary carries; that number is not checked, so adding a migration needs
+//! no edit here.
//!
//! Two escapes are deliberate. Files that document a past version, an upgrade
//! between versions, or another backend's version are exempt by path, each with a
@@ -88,11 +90,19 @@ const LOOKAHEAD: usize = 24;
///
/// So the match is case-insensitive and scans a short window after the keyword rather
/// than requiring adjacency.
+///
+/// Three rules keep the window to our own version. An image reference such as
+/// `extenddb/extenddb-mongodb:0.1.5` holds the keyword twice and is one literal, so
+/// each number is reported once, by where it starts. A number after `:` (or `:v`) is
+/// an image tag, and it is ours only when no space separates it from the keyword:
+/// `(network extenddb, image cassandra:4.1.5)` names another project's image. A
+/// number after `/releases/` is a link to a release named on purpose.
fn versions_near(line: &str, keyword: &str) -> Vec {
let haystack = line.to_ascii_lowercase();
let chars: Vec = haystack.chars().collect();
let key: Vec = keyword.chars().collect();
let mut found = Vec::new();
+ let mut seen_at = Vec::new();
for start in 0..chars.len() {
if !chars[start..].starts_with(&key[..]) {
@@ -117,7 +127,16 @@ fn versions_near(line: &str, keyword: &str) -> Vec {
j += 1;
}
let run: String = chars[digit_at..j].iter().collect();
+ let between: String = chars[after..digit_at].iter().collect();
+ let tag_colon = between.ends_with(':') || between.ends_with(":v");
+ if seen_at.contains(&digit_at)
+ || (tag_colon && between.contains(char::is_whitespace))
+ || between.contains("/releases/")
+ {
+ continue;
+ }
if let Some(version) = exact_version(&run) {
+ seen_at.push(digit_at);
found.push(version);
}
}
@@ -212,11 +231,19 @@ fn the_matcher_sees_every_form_it_claims_to_cover() {
"# extenddb 0.1.5 (catalog migration 4) starting on 127.0.0.1:18443",
"# extenddb 0.1.5",
"ExtendDB 0.1.5 needs migration 4.",
+ " extenddb/extenddb-mongodb:0.1.5 \\",
+ " docker.io/extenddb/extenddb-cassandra:0.1.5",
+ "EXTENDDB_CASSANDRA_IMAGE=extenddb/extenddb-cassandra:0.1.5",
+ "docker pull ghcr.io/extenddb/extenddb-postgres:0.1.5",
+ "docker pull public.ecr.aws/extenddb/extenddb-dev:0.1.5",
+ " extenddb/extenddb-mongodb:v0.1.5",
];
for line in seen {
- assert!(
- !stale_literals(line, "0.1.6").is_empty(),
- "the matcher must see a stale literal in this form: {line}"
+ // Exactly one finding: an image reference names the keyword twice.
+ assert_eq!(
+ stale_literals(line, "0.1.6"),
+ vec![(1, "0.1.5".to_owned())],
+ "the matcher must see one stale literal in this form: {line}"
);
}
@@ -227,6 +254,8 @@ fn the_matcher_sees_every_form_it_claims_to_cover() {
"connection_string = \"postgresql://extenddb:***@localhost:5432/extenddb_catalog\"",
" OK: Catalog version 0.0.2",
"# catalog 0.0.2 (postgres)",
+ "(network extenddb, image cassandra:4.1.5)",
+ "See https://github.com/ExtendDB/extenddb/releases/tag/v0.1.14 for 0.1.14.",
];
for line in ignored {
assert_eq!(
@@ -291,6 +320,8 @@ fn documentation_version_literals_match_the_compiled_version() {
let mut files = Vec::new();
markdown_files(&root.join("docs"), &mut files);
+ // The image READMEs and Docker Hub pages run `extenddb/extenddb-:`.
+ markdown_files(&root.join("docker"), &mut files);
let readme = root.join("README.md");
if readme.exists() {
files.push(readme);
@@ -301,6 +332,13 @@ fn documentation_version_literals_match_the_compiled_version() {
files.len(),
root.display()
);
+ assert!(
+ files
+ .iter()
+ .any(|f| f.ends_with("docker/README-mongodb.md")),
+ "expected the image READMEs under {}/docker",
+ root.display()
+ );
let mut stale = Vec::new();
for file in files {
diff --git a/docker/README-mongodb.md b/docker/README-mongodb.md
index 4080e4251..f1c72eade 100644
--- a/docker/README-mongodb.md
+++ b/docker/README-mongodb.md
@@ -66,7 +66,7 @@ docker run --rm \
-v "$PWD/extenddb-state:/var/lib/extenddb" \
-e EXTENDDB_ADMIN_USER=admin \
-e EXTENDDB_ADMIN_PASSWORD='replace-this-password' \
- extenddb/extenddb-mongodb:0.1.8 \
+ extenddb/extenddb-mongodb:X.Y.Z \
init --backend mongodb \
--config /var/lib/extenddb/extenddb.toml \
--overwrite --bind-addr 0.0.0.0 \
@@ -77,7 +77,7 @@ docker run -d --name extenddb-mongodb \
-v "$PWD/extenddb-state:/var/lib/extenddb" \
--read-only --tmpfs /tmp:rw,noexec,nosuid,size=16m \
--cap-drop ALL --security-opt no-new-privileges:true \
- extenddb/extenddb-mongodb:0.1.8
+ extenddb/extenddb-mongodb:X.Y.Z
```
For production, inject credentials through the orchestrator's secret store,
diff --git a/docker/dockerhub-overview-dev.md b/docker/dockerhub-overview-dev.md
index b54222ebf..0d26cb004 100644
--- a/docker/dockerhub-overview-dev.md
+++ b/docker/dockerhub-overview-dev.md
@@ -44,7 +44,7 @@ Every published image is signed with Sigstore cosign, with a Rekor transparency-
cosign verify --key extenddb-signing.pub.pem docker.io/extenddb/extenddb-dev:X.Y.Z
```
-From the first release after the keyless migration (named in the release notes), signatures are keyless, bound to the workflow that signed the image:
+From 0.1.15, signatures are keyless, bound to the workflow that signed the image:
```console
cosign verify \
diff --git a/docker/dockerhub-overview-mongodb.md b/docker/dockerhub-overview-mongodb.md
index 3238b20d3..584dc2ed9 100644
--- a/docker/dockerhub-overview-mongodb.md
+++ b/docker/dockerhub-overview-mongodb.md
@@ -85,9 +85,8 @@ cosign verify --key extenddb-signing.pub.pem \
docker.io/extenddb/extenddb-mongodb:X.Y.Z
```
-From the first release after the keyless migration (named in the release
-notes), signatures are keyless: the certificate names the GitHub Actions
-workflow and ref that signed the image, and no public key is needed.
+From 0.1.15, signatures are keyless: the certificate names the GitHub
+Actions workflow and ref that signed the image, and no public key is needed.
```console
cosign verify \
diff --git a/docker/dockerhub-overview.md b/docker/dockerhub-overview.md
index 790f2e0d6..c557852c9 100644
--- a/docker/dockerhub-overview.md
+++ b/docker/dockerhub-overview.md
@@ -30,7 +30,7 @@ cosign verify --key extenddb-signing.pub.pem docker.io/extenddb/extenddb-postgre
The earliest releases, 0.1.5 and 0.1.6, predate transparency logging; add `--insecure-ignore-tlog=true` to verify those two.
-From the first release after the keyless migration (named in the release notes), signatures are keyless: the certificate names the GitHub Actions workflow and ref that signed the image, and no public key is needed.
+From 0.1.15, signatures are keyless: the certificate names the GitHub Actions workflow and ref that signed the image, and no public key is needed.
```console
cosign verify \
diff --git a/docs/getting-started.md b/docs/getting-started.md
index 24ef187cc..6bb9604f4 100755
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -289,7 +289,7 @@ extenddb runs as a daemon (background process) and logs to syslog. On startup it
```bash
./target/release/extenddb serve --config extenddb.toml
-# extenddb 0.1.15 (catalog migration 12) starting on 127.0.0.1:18443
+# extenddb 1.0.0 (catalog migration 12) starting on 127.0.0.1:18443
# storage: postgres (postgresql://extenddb:***@localhost:5432/extenddb_catalog)
```
@@ -1393,10 +1393,11 @@ Each runner requires its tools to be installed. The runner checks prerequisites
```bash
./target/release/extenddb version
-# extenddb 0.1.15
+# extenddb 1.0.0
# catalog migration 12 (postgres)
# commit abc1234
# built 2026-04-17T12:00:00Z
+# test-hooks disabled
```
The `-V` flag prints the same output:
diff --git a/docs/manuals/04-quickstart-setup-guide.md b/docs/manuals/04-quickstart-setup-guide.md
index b33de1baa..e2103cf38 100755
--- a/docs/manuals/04-quickstart-setup-guide.md
+++ b/docs/manuals/04-quickstart-setup-guide.md
@@ -129,7 +129,7 @@ Check the version:
```bash
./target/release/extenddb version
-# extenddb 0.1.15
+# extenddb 1.0.0
# catalog migration 12 (postgres)
# commit abc1234
# built 2026-04-17T12:00:00Z
diff --git a/docs/manuals/07-upgrade-manual.md b/docs/manuals/07-upgrade-manual.md
index 231492da0..f0f5105a9 100755
--- a/docs/manuals/07-upgrade-manual.md
+++ b/docs/manuals/07-upgrade-manual.md
@@ -4,6 +4,8 @@
## Current Status
+1.0.0 carries the same catalog migrations as 0.1.15, 1 to 12. A catalog that 0.1.15 migrated is Current under 1.0.0, so a deployment on 0.1.15 stops its servers and starts the 1.0.0 binary with no `migrate` step, and a rollback to 0.1.15 starts the 0.1.15 binary on the same catalog and configuration while the deployment has not run `extenddb encryption-key switch`. 1.0.0 also refuses to start on a catalog key that is not 32 bytes in base64 (0.1.15 started on one and failed every signed request), keeps the key in locked memory, and adds an optional KEK file outside the catalog (see [the v1.0.0 entry](#v100-the-catalog-key-is-checked-at-startup-and-kept-in-locked-memory-a-kek-file-is-optional)). On Cassandra, 1.0.0 reads and writes at `LOCAL_QUORUM` where 0.1.15 read at `ONE`, so a request fails while fewer than a quorum of its keyspace's replicas are up, which at a replication factor of 2 means one replica down: use a replication factor of 3 before the upgrade (see [the v1.0.0 entry](#v100-cassandra-reads-and-writes-at-local_quorum)). The paragraphs below on catalog migrations 1 to 12, and on a rollback to 0.1.14 or an earlier release, are for a deployment on 0.1.14 or an earlier release. The notes on `[backup.store]` and on backups taken by 0.1.14 and earlier releases apply to every deployment.
+
This release versions the PostgreSQL, SQLite, Cassandra and MongoDB catalogs by a migration ledger and carries catalog migrations 1 to 12, which `extenddb migrate --list` prints. **Every deployment created by 0.1.14 or an earlier release runs `extenddb migrate --yes` once** before a server of this release starts on it: the server refuses a catalog with pending migrations. Migration 1 brings the catalog of every earlier release to migration 1's schema, migration 5 drops `continuous_backups`, a table and on MongoDB a collection (see [Catalog 0.0.5](#catalog-005)), and migration 6 adds the backup catalog index and the restore job records ([below](#migration-6-the-backup-catalog-index)). Migration 7 adds the `stream_pending` table to the PostgreSQL data database, where a write stores its stream record until the record gets its sequence number after the write commits; it does not apply to the other backends. Migration 8 adds the `restore_progress` table to the PostgreSQL data database, where a store-backed restore records each data file it applied; it does not apply on the other backends either.
Migration 9, `warm_throughput`, adds a nullable `warm_throughput` column to the `tables` and `indexes` catalog tables on PostgreSQL, SQLite and Cassandra. It holds the `WarmThroughput` a client sets on a table or a global secondary index, which `DescribeTable` reports; nothing acts on the value (see [Differences from DynamoDB](../differences-from-dynamodb.md)). Tables created before the migration report the defaults for their billing mode. On MongoDB it changes nothing, since the catalog collections have no validator, and the ledger records it as not applicable. Migration 9 is breaking: to go back to a release without it, restore the backup taken before the upgrade (see [Rollback Procedure](#rollback-procedure)).
@@ -16,11 +18,11 @@ Migration 12, `unique_access_key_ids`, gives the MongoDB `access_keys` collectio
Configure `[backup.store]` before the release that stops creating in-catalog backups. The [Backup and Restore manual](14-backup-and-restore.md) covers choosing and securing a store, the recovery figures, the restore drill, catalog-loss recovery and what to do with in-catalog backups. This section says what the upgrade changes. In this release, CreateBackup and RestoreTableFromBackup work as follows:
-- On PostgreSQL, SQLite and MongoDB, CreateBackup writes to the configured store. There it is asynchronous, as on the service. The response is `CREATING`, and the backup becomes `AVAILABLE` when the upload ends. So a client that creates a backup and then deletes it has to poll DescribeBackup first. The previous release returned `AVAILABLE`.
+- On PostgreSQL, SQLite and MongoDB, CreateBackup writes to the configured store. There it is asynchronous, as on the service. The response is `CREATING`, and the backup becomes `AVAILABLE` when the upload ends. So a client that creates a backup and then deletes it has to poll DescribeBackup first. 0.1.14 and earlier releases returned `AVAILABLE`.
- Without a store, CreateBackup writes the in-catalog format and logs a deprecation warning that names `[backup.store]` on each call. A later major release's CreateBackup refuses without one.
- Cassandra writes the in-catalog format with or without a store.
- `kind = "disabled"` under `[backup.store]` keeps a deployment on the in-catalog format on purpose. CreateBackup still logs the deprecation warning on each call. `kind = "disabled"` is no longer needed to keep a deployment able to restore the backups it takes.
-- A store-backed backup is listed, described, deleted and restored like any other. `RestoreTableFromBackup` of a backup in the configured store runs the restore job from the store on every backend (PostgreSQL, SQLite, MongoDB and Cassandra). In-catalog backups, those of the previous release included, restore as before.
+- A store-backed backup is listed, described, deleted and restored like any other. `RestoreTableFromBackup` of a backup in the configured store runs the restore job from the store on every backend (PostgreSQL, SQLite, MongoDB and Cassandra). In-catalog backups, those of 0.1.14 and earlier releases included, restore as before.
`extenddb backup migrate-legacy ` or `--all` carries in-catalog backups into the configured store under their own ARNs (see the Backup and Restore manual's Legacy backups section). On SQLite, stop the server for it. On every backend, each backup and restore job answers `LimitExceededException` while it runs. It refuses a backup whose id has the 13-digit shape that 0.1.14 and earlier releases issued, which is every backup those releases took. It also refuses a backup with an item the item check refuses, and a SQLite backup taken before catalog 0.0.4. To carry such a backup forward, restore it and take a new backup of the restored table, which has a new ARN. Run `migrate-legacy --all` again after the last DeleteBackup of an in-catalog backup. It deletes what a stopped migration left under a deleted backup's prefix, and then the deleted backup's record. The release that removes the in-catalog reader refuses its migration while such a record, whose backup id has the 14-digit shape, remains.
@@ -30,7 +32,7 @@ Migration 8 adds the `restore_progress` table to the PostgreSQL data database. R
If a store-backed restore whose server stopped has no recorded progress, the reconciler starts it again from its first data file. It marks the restore `FAILED` as `target_not_empty` only when the target holds more items than the backup. To restore that backup again, run `extenddb backup remove-target --account `. It removes the target and its record (see the admin guide's [`[backup.store]`](05-admin-guide.md#backupstore) section). `backup remove-target` writes the catalog, so on SQLite stop the server for it, as for `purge`.
-A rollback restores the catalog from the pre-upgrade backup (see [Migration 6](#migration-6-the-backup-catalog-index)), so a store-backed restore in flight loses its job record. The previous binary resumes no restore. Quiesce restores before a downgrade.
+A rollback to 0.1.14 or an earlier release restores the catalog from the pre-upgrade backup (see [Migration 6](#migration-6-the-backup-catalog-index)), so a store-backed restore in flight loses its job record. A binary of those releases resumes no restore. Quiesce restores before a downgrade.
On file-backed SQLite, an absent `[backup.store]` section is a filesystem store at `backups/` beside the database file, created `0700` at startup. That root must be owned by the extenddb user, with mode `0700`. Each directory above it must be owned by root or by that user, with no write access for group or others. A directory that carries the sticky bit can be writable by group or others.
@@ -78,15 +80,15 @@ A migration is additive when the previous release serves the catalog correctly w
### Migration 6: the backup catalog index
-A backup of a table that holds an `N` value the wire did not validate, or an attribute name over the limit, fails on the store-backed path where the previous release backed it up. Four write paths stored such a value (`1E126`, `abc`) unvalidated (#618: BatchWriteItem, TransactWriteItems, UpdateItem on an absent item in the key it creates, ImportTable), UpdateItem and a TransactWriteItems Update of releases before #433 stored an attribute name over 65,535 bytes unchecked, and the store-backed job validates every item with the rule the restore applies, so no backup that no restore can load is reported `AVAILABLE`. This meets file-backed SQLite without a `[backup.store]` section (the defaulted root) and any deployment once a store is configured. The client sees `CREATING` and then `BackupNotFound`; the reason reaches the operator only: `extenddb backup list --failed` prints the FAILED row with the count of refused items and the first one, and the server log names each refused item's key and attribute path beside the backup ARN (up to 1,000 per backup), which a tenant's support case can cite (every tenant-supplied text in the line is written as a JSON string's content, control characters and the Unicode line separators U+0085, U+2028 and U+2029 escaped, so a newline or a line separator in an attribute name or a number value cannot forge a second log record). The way out is to rewrite or delete each named item through the wire, which validates the value (an item whose key itself holds such a number cannot be rewritten or deleted through the wire, since a PutItem or a DeleteItem with that key is refused; #982 tracks a way to remove it); the in-catalog create of a server without a store still backs such a table up.
+A backup of a table that holds an `N` value the wire did not validate, or an attribute name over the limit, fails on the store-backed path where 0.1.14 and earlier releases backed it up. Four write paths stored such a value (`1E126`, `abc`) unvalidated (#618: BatchWriteItem, TransactWriteItems, UpdateItem on an absent item in the key it creates, ImportTable), UpdateItem and a TransactWriteItems Update of releases before #433 stored an attribute name over 65,535 bytes unchecked, and the store-backed job validates every item with the rule the restore applies, so no backup that no restore can load is reported `AVAILABLE`. This meets file-backed SQLite without a `[backup.store]` section (the defaulted root) and any deployment once a store is configured. The client sees `CREATING` and then `BackupNotFound`; the reason reaches the operator only: `extenddb backup list --failed` prints the FAILED row with the count of refused items and the first one, and the server log names each refused item's key and attribute path beside the backup ARN (up to 1,000 per backup), which a tenant's support case can cite (every tenant-supplied text in the line is written as a JSON string's content, control characters and the Unicode line separators U+0085, U+2028 and U+2029 escaped, so a newline or a line separator in an attribute name or a number value cannot forge a second log record). The way out is to rewrite or delete each named item through the wire, which validates the value (an item whose key itself holds such a number cannot be rewritten or deleted through the wire, since a PutItem or a DeleteItem with that key is refused; #982 tracks a way to remove it); the in-catalog create of a server without a store still backs such a table up.
Migration 6 adds the catalog index of backups kept in a backup store, turns each restore registration into a restore job record, adds the maintenance claim record (`backup_maintenance`) and writes the catalog's random id (`settings.catalog_id`). On SQLite and PostgreSQL the index is the `backup_index` table and the job record is new columns of `table_restores`; on MongoDB the index is the `backup_index` collection and the job record a `restore_job` field of each restore target's `tables` document; on Cassandra the index is new columns of `backups_by_arn` and the `backup_index_by_status` table, and the job record new `restore_*` columns of `tables`. Stop every server built before this migration before running `extenddb migrate --yes`: such a server neither reads the index nor marks the restore registrations it writes, so a restore it ran during the upgrade would be owned by nobody. A restore in flight at that stop is left as a RUNNING job record whose owner is dead; the first reconciler pass of the new server (within `backup.reconcile_interval_secs`, default 60 s) marks it FAILED and removes its CREATING target, so the name is free again and the table has to be restored anew. On Cassandra the backfill reads `tables` with a filtered scan and writes each registration with a lightweight transaction, which takes seconds on a catalog of ordinary size. On Cassandra and MongoDB, which have no transaction around a body, every write of the migration is safe to send again: a `migrate --yes` that fails part way leaves migration 6 unrecorded, `serve` keeps refusing the catalog, and the next `migrate --yes` runs the body again and finishes.
-A rollback to the previous binary needs two things: the catalog restored from the pre-upgrade backup (the previous binary refuses a catalog carrying migration 6, exit status 4), and the `[backup]` section removed from the configuration file, which the previous binary refuses as an unknown field before it reaches the catalog (`unknown field 'backup'`). The pre-upgrade backup predates every backup this release wrote to the store, so a restored catalog has no `backup_index` row for them while the store keeps their bytes under its root; the previous binary serves neither (it does not read the store). After the upgrade is run again, `extenddb backup sync --adopt-store` gives them rows: the store's identity file names the pre-rollback catalog, so the re-upgraded catalog finds the store owned by another catalog until the command makes it the owner (on SQLite's default root the server instead logs a warning and leaves the store unconfigured, so `/health` has no `backup_store` component until then), and the command then adopts every backup under the root. On SQLite `backup sync`, with or without its options, takes the serve lock as `backup purge` does, so the server is stopped while it runs; on PostgreSQL, MongoDB and Cassandra it runs beside the servers under the maintenance claim. In-catalog backups taken after it are lost with the rows, as before. A backup that `migrate-legacy` carried into the store after the upgrade has its bytes under the root like any other backup this release wrote, and `backup sync --adopt-store` adopts it.
+A rollback to 0.1.14 or an earlier release needs two things: the catalog restored from the pre-upgrade backup (a binary of those releases does not read the migration ledger: on PostgreSQL, `serve --foreground` of 0.1.14 and of 0.1.10 on a catalog that 0.1.15 created stops with exit status 1 and `invalid catalog version '12'`), and the `[backup]` section removed from the configuration file, which that binary refuses as an unknown field before it reaches the catalog (`unknown field 'backup'`). The pre-upgrade backup predates every backup this release wrote to the store, so a restored catalog has no `backup_index` row for them while the store keeps their bytes under its root; that binary serves neither (it does not read the store). After the upgrade is run again, `extenddb backup sync --adopt-store` gives them rows: the store's identity file names the pre-rollback catalog, so the re-upgraded catalog finds the store owned by another catalog until the command makes it the owner (on SQLite's default root the server instead logs a warning and leaves the store unconfigured, so `/health` has no `backup_store` component until then), and the command then adopts every backup under the root. On SQLite `backup sync`, with or without its options, takes the serve lock as `backup purge` does, so the server is stopped while it runs; on PostgreSQL, MongoDB and Cassandra it runs beside the servers under the maintenance claim. In-catalog backups taken after it are lost with the rows, as before. A backup that `migrate-legacy` carried into the store after the upgrade has its bytes under the root like any other backup this release wrote, and `backup sync --adopt-store` adopts it.
### The switch to a KEK file: rollback
-A deployment that moved its stored secrets under a key-encryption key (KEK) file with `extenddb encryption-key switch` (the admin guide's [Encryption Key](05-admin-guide.md#encryption-key) section) has no `encryption_key` row in its catalog: the switch deleted it, and the catalog holds the data encryption key wrapped under the KEK in the `encryption_key_ring` row instead. The change adds no catalog migration, and a deployment that keeps the catalog key needs no `migrate --yes` run for it. A previous binary started on a switched catalog refuses with `MissingEncryptionKey`. To run the previous binary again, restore a catalog copy taken before the switch, which holds the catalog key; every catalog write since that copy is lost, and on Cassandra this manual has no tested rollback. Also delete `[auth.encryption]` and any `EXTENDDB__AUTH__ENCRYPTION__KEY_FILE` override from the configuration: the previous binary refuses an unknown field in `[auth]`, as it refuses `[backup]` above. The locked key store and the signing-key cache change no stored byte, so they need no rollback step.
+A deployment that moved its stored secrets under a key-encryption key (KEK) file with `extenddb encryption-key switch` (the admin guide's [Encryption Key](05-admin-guide.md#encryption-key) section) has no `encryption_key` row in its catalog: the switch deleted it, and the catalog holds the data encryption key wrapped under the KEK in the `encryption_key_ring` row instead. The change adds no catalog migration, and a deployment that keeps the catalog key needs no `migrate --yes` run for it. A previous binary started on a switched catalog refuses with `MissingEncryptionKey`. On PostgreSQL it stops before that, because the switch also encrypted the `data_database_connection_string` row: the 0.1.15 server exits 1 with `the catalog's data_database_connection_string row is not a PostgreSQL URL`. To run the previous binary again, restore a catalog copy taken before the switch, which holds the catalog key; every catalog write since that copy is lost, and on Cassandra this manual has no tested rollback. Also delete `[auth.encryption]` and any `EXTENDDB__AUTH__ENCRYPTION__KEY_FILE` override from the configuration: the previous binary refuses an unknown field in `[auth]`, as it refuses `[backup]` above. The locked key store and the signing-key cache change no stored byte, so they need no rollback step.
A SQLite dev image of a previous release started on a switched catalog writes a new `encryption_key` row into it and serves with that key, so every request signed with a credential under the DEK fails with HTTP 500. A server of this release then refuses to start on that catalog, and `extenddb encryption-key switch --key-file --accept-catalog-key --yes`, run with a configuration that does not set `key_file`, re-encrypts the secrets under the DEK and deletes the row.
@@ -96,7 +98,7 @@ Writing a catalog migration is contributor work. The procedure, with a worked ex
## General Upgrade Procedure
-For releases that include catalog changes. The names below in angle brackets are the ones chosen at `extenddb init`: `` and `` (`--catalog-db`, `--data-db`; defaults `extenddb_catalog` and `extenddb`) and ``, the application role (`--extenddb-user`, default `extenddb`). `` is the PostgreSQL role `init` connected as (`--pg-user`).
+For releases that include catalog changes. An upgrade from 0.1.14 or an earlier release to 1.0.0 takes every step. From 0.1.15, step 4's `migrate` reports the catalog Current and exits 0, and `migrate --yes` changes nothing. Before step 1, check the catalog key as [the v1.0.0 entry](#v100-the-catalog-key-is-checked-at-startup-and-kept-in-locked-memory-a-kek-file-is-optional) describes: `migrate` and `verify` do not check it, and `serve` refuses one that is not 32 bytes. On Cassandra, before step 1, raise each keyspace with a replication factor below 3 as [Keyspace replication](../cassandra-setup.md#keyspace-replication) describes ([v1.0.0](#v100-cassandra-reads-and-writes-at-local_quorum) reads and writes at `LOCAL_QUORUM`). The names below in angle brackets are the ones chosen at `extenddb init`: `` and `` (`--catalog-db`, `--data-db`; defaults `extenddb_catalog` and `extenddb`) and ``, the application role (`--extenddb-user`, default `extenddb`). `` is the PostgreSQL role `init` connected as (`--pg-user`).
1. **Stop the server**
@@ -218,7 +220,7 @@ SQLite deployments follow the same sequence, backing up the database files as [S
## Rollback Procedure
-The upgrade is not reversible in place when it applies a breaking migration, and every migration in this release is breaking (see [The Catalog Status](#the-catalog-status)). If an upgrade fails or must be undone (PostgreSQL; for SQLite see [SQLite](#sqlite) below):
+The upgrade is not reversible in place when it applies a breaking migration, and every migration in this release is breaking (see [The Catalog Status](#the-catalog-status)). An upgrade from 0.1.15 to 1.0.0 applies no migration: to roll it back, stop the 1.0.0 server and start the 0.1.15 binary, with any `[auth.encryption]` section deleted from the configuration. After `extenddb encryption-key switch`, the 0.1.15 binary refuses the catalog: see [The switch to a KEK file: rollback](#the-switch-to-a-kek-file-rollback). A Cassandra keyspace whose replication factor was raised for 1.0.0 can keep it under 0.1.15. If an upgrade fails or must be undone (PostgreSQL; for SQLite see [SQLite](#sqlite) below):
1. Stop the server
2. Restore both databases from the backups into new databases, connected as `` to the `postgres` database, with the upgraded databases renamed aside rather than dropped:
@@ -386,6 +388,28 @@ Catalog upgrades change the schema; behavior changes alter how the running serve
interprets existing data or configuration. Review these before upgrading a live
deployment, even when no catalog migration is required.
+### v1.0.0: Cassandra reads and writes at `LOCAL_QUORUM`
+
+**What changed.** The Cassandra backend runs its reads and writes at `LOCAL_QUORUM`. 0.1.15 ran many of them at `ONE`, the driver's default, in each area: items (the reads of GetItem, Query and Scan among them), transactions, TTL, streams, the catalog, IAM and `init`. A read with `ConsistentRead` `false` also runs at `LOCAL_QUORUM`. A lightweight transaction runs Paxos at `LOCAL_SERIAL` and commits at `LOCAL_QUORUM`, where 0.1.15 used `SERIAL` and `ONE`. Batches ran at `LOCAL_QUORUM` before and still do. No setting changes these levels (#945).
+
+**Who is affected.** A Cassandra deployment while fewer than a quorum of a keyspace's replicas in the datacenter are up: at a replication factor of 2, one replica down; at 3, two down. At a replication factor of 1 both levels need the one replica, so nothing changes. 0.1.15 kept answering those reads with one replica up; 1.0.0 fails them with HTTP 500 (`InternalServerError`). On one node, with an account keyspace at a replication factor of 2, 0.1.15 answered GetItem, Query and Scan and 1.0.0 answered each with HTTP 500; PutItem got HTTP 500 on both releases.
+
+**Before upgrading**, give the catalog keyspace and every account keyspace a replication factor of 3 on at least three nodes, as [Keyspace replication](../cassandra-setup.md#keyspace-replication) in the Cassandra setup guide describes, and set `replication_factor` in `[storage.cassandra]` to match. PostgreSQL, SQLite and MongoDB are not affected. No catalog migration is required, and a rollback to 0.1.15 starts the 0.1.15 binary on the same catalog and configuration.
+
+### v1.0.0: the catalog key is checked at startup and kept in locked memory; a KEK file is optional
+
+**What changes with no configuration change** (#1003). Without `[auth.encryption] key_file`, the stored format and the catalog key stay as they are: 1.0.0 reads the access key and session secrets that 0.1.15 stored, stores new ones in the same format, and writes no settings row at startup. On a PostgreSQL catalog that the 0.1.15 image created, an access key made by 0.1.15 and one made by 1.0.0 each signed requests under both releases, before and after 1.0.0 served the catalog. What an operator sees:
+
+- The server and each `extenddb backup` command refuse a catalog key, the `encryption_key` settings row, that is not base64 or does not decode to 32 bytes. `serve` exits 1 with `Encryption key in settings table is not valid: . Restore the original key: every stored access key and session secret is encrypted under it` ([Troubleshooting](../troubleshooting.md#encryption-key-errors)). 0.1.15 started on such a key, answered `/health` with 200 and failed every signed request with HTTP 500. `migrate` and `verify` do not check the key.
+- The catalog key and the cached SigV4 signing keys live in a locked key store: `memfd_secret` where the kernel has it, otherwise pages locked with `mlock`. At the default `[auth.cache] max_entries` of 10,000 it needs about 640 KB of locked memory (643,072 bytes on a 16-core host), and the kernel's default memlock limit before Linux 5.16 is 64 KiB. When the store cannot be locked, the server logs a warning that names the limit it needs (`cannot lock bytes of memory for the key store ...; raise the memlock limit ...`) and starts with the keys in ordinary memory. The startup line ends with `key_store=memfd_secret`, `key_store=locked pages` or `key_store=none` ([Memory locking](05-admin-guide.md#memory-locking)).
+- Each start without `key_file` logs a warning that the stored secrets are encrypted under the catalog key, which the catalog holds, and names `extenddb encryption-key switch`.
+
+**New and opt-in.** `[auth.encryption] key_file`, or `EXTENDDB__AUTH__ENCRYPTION__KEY_FILE`, names a key-encryption key (KEK) file outside the catalog, and the `extenddb encryption-key` commands (`status`, `switch`, `rewrap`, `rotate`, `reset`, `set-data-connection`) move the secrets under it and manage its keys. The admin guide's [Encryption Key](05-admin-guide.md#encryption-key) section gives the file rule, the delivery routes and the procedure. With `key_file` set, a server that cannot lock its key store refuses to start unless `require_locked_memory = false`, and a server whose catalog has not been switched refuses to start and changes nothing.
+
+**Before upgrading**, check the catalog key. If signed requests to the 0.1.15 server succeed, the key passes. On PostgreSQL, `SELECT length(decode(value, 'base64')) FROM settings WHERE key = 'encryption_key';` in the catalog database prints 32; on the other backends the value is 44 characters of base64 ending in `=`. The key that `extenddb init` writes passes. A key that fails was changed after `init`: restore its original value before starting 1.0.0, since every stored secret is encrypted under it.
+
+**Rollback.** Without a switch, 0.1.15 starts on the same catalog: a configuration that sets `key_file` makes 0.1.15 exit 1 with ``unknown field `encryption` ``, so delete the `[auth.encryption]` section. After `encryption-key switch`, follow [The switch to a KEK file: rollback](#the-switch-to-a-kek-file-rollback).
+
### v0.1.15: Cassandra `serve` warns of keyspaces at another replication
**What changed.** At start-up, `serve` compares the replication of each of the
@@ -1195,6 +1219,19 @@ DescribeStream and GetShardIterator now refuse a client-built `StreamArn` with t
---
+### v0.1.15: numbers and table names are checked as DynamoDB checks them, and expression depth is limited
+
+**What changed.** Four changes refuse requests that earlier releases accepted or answered with another error. Each answers `ValidationException`: for numbers, names and ARNs with the message DynamoDB returns; the expression depth limit is ExtendDB's own, and what DynamoDB does with deeply nested expressions was not measured.
+
+- Numbers on every key and item path (#620). Before this release only the PutItem item and UpdateItem's update values were checked. Every other path stored or looked up an `N` or `NS` value such as `abc` or `1E126` as written. Now the keys of GetItem, DeleteItem, UpdateItem, BatchGetItem and TransactGetItems, the items and keys of BatchWriteItem and TransactWriteItems, the `ExpressionAttributeValues` and legacy `Expected` values of PutItem, DeleteItem and UpdateItem, and the `ExpressionAttributeValues` of a TransactWriteItems Update and of a Put or Delete with a `ConditionExpression` are checked: an `N` value `abc` in a key is refused. A refused batch or transaction writes nothing, where earlier releases stored the whole request. In ImportTable, a value that is not a number ends the import of its file and a number out of range skips its row, and an import that refused a row ends `FAILED` with `ItemValidationError`, where earlier releases reported `COMPLETED`. A number in `ExpressionAttributeValues` that is refused no longer gets the `ExpressionAttributeValues contains invalid value: ... for key :v` wrapper. Query and Scan inputs are not checked yet, and zeros such as `0E126` are still stored as `0`.
+- Number exponents (#619). An exponent between the 32-bit and 64-bit limits answers `Number overflow` or `Number underflow`, where earlier releases answered `cannot be converted to a numeric value`: `1E2147483648` is now `Number overflow`. The values refused are the same; only the message changes.
+- Table names, index names and ARNs (#830). They are checked before authorization. A name outside `[a-zA-Z0-9_.-]+`, or one that holds U+0000, gets `ValidationException`, where PostgreSQL answered HTTP 500 "Internal error during authorization". A caller with no permission now gets the `ValidationException` for a bad name, as on DynamoDB, and `AccessDeniedException` for the name of a table that exists. A malformed ARN in a name field or an ARN field gets the sentence DynamoDB gives for that field, such as "Invalid StreamArn" or "Invalid Backup ARN".
+- Expression nesting depth (#1000). Each parenthesis and each `if_not_exists` or `list_append` call in an `UpdateExpression`, and each nested `size` call in a condition or filter, counts one level against `max_expression_depth` under `[limits]` (default 150). Past it the request gets `ValidationException` "Invalid UpdateExpression: expression nesting depth exceeded" (or "Invalid ConditionExpression: ..." or "Invalid FilterExpression: ..."), and nothing is written. Earlier releases had no limit there, and a debug build of the server stopped with a stack overflow on 681 nested parentheses in a `SET` value. PartiQL, new in this release, applies the same limit: at the default, a PartiQL `UPDATE` with 76 or more nested `if_not_exists(a, a + ...)` steps gets `ValidationException` "expression nesting depth exceeded".
+
+**Who is affected.** A client that sends malformed numbers, names or ARNs, or deeply nested expressions, and relied on the earlier answer: it now gets `ValidationException`, and its batch or transaction writes nothing. A client that matches error text changes for the messages above. An item stored under an invalid number key before the upgrade can be read only by Scan or Query, which do not check the number yet, and removed only with its table. No catalog migration is required.
+
+---
+
## License
Copyright 2026 ExtendDB contributors. Licensed under the Apache License, Version 2.0.
diff --git a/docs/versioning.md b/docs/versioning.md
index cfe104a3b..dc57e6b3b 100644
--- a/docs/versioning.md
+++ b/docs/versioning.md
@@ -55,7 +55,7 @@ Fixes ship in patch releases. A fix for an earlier minor release gets a patch re
- The newest minor release gets bug fixes and security fixes.
- The minor release before it gets security fixes for 3 months after the newest one ships.
- After 2.0 ships, the last 1.x minor release gets security fixes for 12 months.
-- The 0.1.x releases get no fixes after 1.0 ships.
+- The 0.1.x releases get no more fixes; the 3-month rule above starts with the 1.x releases.
Support covers the stable and beta backends. An experimental backend gets fixes in the newest minor release only. To report a security issue, follow [SECURITY.md](../SECURITY.md).
diff --git a/packaging/npm/package.json b/packaging/npm/package.json
index c078995d5..1261fa5b8 100644
--- a/packaging/npm/package.json
+++ b/packaging/npm/package.json
@@ -1,6 +1,6 @@
{
"name": "@extenddb/dev",
- "version": "0.1.15",
+ "version": "1.0.0",
"description": "ExtendDB dev server launcher: a DynamoDB-compatible database for local development and CI. Spawns the extenddb dev binary (file-backed by default, in-memory with --memory) and hands back an endpoint plus credentials any AWS SDK accepts.",
"license": "Apache-2.0",
"repository": {
@@ -25,10 +25,10 @@
"test": "node test/launcher.test.js"
},
"optionalDependencies": {
- "@extenddb/linux-x64": "0.1.15",
- "@extenddb/linux-arm64": "0.1.15",
- "@extenddb/darwin-x64": "0.1.15",
- "@extenddb/darwin-arm64": "0.1.15",
- "@extenddb/win32-x64": "0.1.15"
+ "@extenddb/linux-x64": "1.0.0",
+ "@extenddb/linux-arm64": "1.0.0",
+ "@extenddb/darwin-x64": "1.0.0",
+ "@extenddb/darwin-arm64": "1.0.0",
+ "@extenddb/win32-x64": "1.0.0"
}
}
diff --git a/packaging/npm/test/launcher.test.js b/packaging/npm/test/launcher.test.js
index ea5993b13..10a76460b 100644
--- a/packaging/npm/test/launcher.test.js
+++ b/packaging/npm/test/launcher.test.js
@@ -203,12 +203,16 @@ function versionOutput(release) {
}
// Releases next to `release` that a looser comparison accepts. A major.minor
-// comparison accepts one patch release either side. A prefix match accepts
-// the release with a digit added or removed.
+// comparison accepts one patch release either side. An ordered comparison
+// accepts the release before, which for an X.Y.0 release is on the line
+// before: X.(Y-1).99, or (X-1).99.99 for X.0.0. A prefix match accepts the
+// release with a digit added or removed.
function nearReleases(release) {
const [major, minor, patch] = release.split(".").map(Number);
const near = [`${major}.${minor}.${patch + 1}`, `${release}0`, release.slice(0, -1)];
if (patch > 0) near.push(`${major}.${minor}.${patch - 1}`);
+ else if (minor > 0) near.push(`${major}.${minor - 1}.99`);
+ else if (major > 0) near.push(`${major - 1}.99.99`);
return near;
}