Skip to content

docs: architecture dash sweep and one feature status owner - #530

Open
LeeroyHannigan wants to merge 26 commits into
feat/docs-install-pagesfrom
feat/docs-content-sweep
Open

LeeroyHannigan wants to merge 26 commits into
feat/docs-install-pagesfrom
feat/docs-content-sweep

Conversation

@LeeroyHannigan

@LeeroyHannigan LeeroyHannigan commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Changes since the last review

Six commits on top of 0c16021cb answer the review of 24 November. Nothing before them changed.

  • 84810bbdf merges feat/docs-install-pages at af9567b6d, the head with the review fixes of docs: add the documentation site #491 and docs: one install page per path, first requests page, container upgrades #523. The Merging section lists the six conflicts.
  • bddae2ce8, Feature Status. The import and export row names ImportTable and ExportTableToPointInTime. It says that they are off until the configuration sets [import] and [export] paths, and that DescribeImport, ListImports, DescribeExport and ListExports are not implemented. New rows mark resource-based policies, Contributor Insights and Kinesis streaming destinations as not implemented. Operations Not Implemented lists their operations. The row for a table ARN as TableName gives the two answers measured on SQLite.
  • bddae2ce8 also removes the README's Supported Operations list. The section and the API coverage column of the backend table point at Feature Status. The table now names DescribeEndpoints, DescribeLimits and the four stream operations. Its point-in-time recovery row names DescribeContinuousBackups and UpdateContinuousBackups. The plain-text cross references in the table and on the Requirements page are links.
  • 79a5112eb, Cassandra stream records. Every DeleteItem on a table without TTL writes its stream record after the item, on the differences page and on the storage backends page.
  • fece9c3a1, design documents. The Requirements page names one authentication mode, and marks Mode 3 and the Global Tables operations as not implemented. The server design says that assume-role does not check the format of CallerArn. It names evaluate_trust_policy and fetch_caller_tags, where it named an IdentityEngine that the code does not have.
  • Other fixes in fece9c3a1: the testing design says that ExtendDB serves PartiQL, and the backup and restore design drops the .review/ citation. The cache design links the v3 authentication design, and the v2 heading says (v2). The high-level design points at Feature Status for Global Tables.
  • ddab1a18d replaces the six em dashes in the README's WebAssembly section (feat(wasm): [Add WebAssembly browser support for ExtendDB #1009) and the one on the Cassandra setup page (feat(storage-cassandra): init sets replication factor and datacenter #909).
  • 469669e59, home page. The development image paragraph says that the command publishes the port on 127.0.0.1 only.

What

This is the third change in the documentation site series, on top of #523. It covers two content follow-ups filed for the site: the architecture documents' punctuation and header lines, and one owner for feature status. The third follow-up, one affiliation statement (#498), reached main in #964.

Architecture documents (#496). At the base (af9567b6d), the component designs, decision records, RFCs and the two architecture guides hold 627 em and en dashes. Of these, 579 are in prose and 48 inside code fences. On the published pages, a comma, colon, semicolon, parentheses or a sentence break now replaces each of the 526 dashes in prose. The 48 inside code fences stay. So do the 53 in the high-availability draft, the two templates and the design index, which the site does not publish.

I counted the U+2013 and U+2014 characters in each file at the base and at this head. A dash on a line between two code fence lines counts as code.

A validator compared the case-folded word sequence of every file outside code fences against the commit before the change. So the first four commits change punctuation only. A second pass then reworded the sentences that a prose reading found still awkward. Examples are a semicolon after a fragment and two colons on one line. Those edits are in the correction commits.

The ten design documents keep their Version, Date and Status lines in front matter, so each page opens with its heading. The product name is ExtendDB in prose throughout the section (95 places). Inline code, paths and crate names did not change.

Feature status (#497). The usage guide's status table moves to the Differences from DynamoDB page under Feature Status. The usage guide section and the README's Supported Operations section point at it. I checked the rows against the engine's operation dispatch (crates/engine/src/lib.rs):

  • The engine dispatches the implemented operations. It dispatches the PartiQL operations behind the default-on partiql build feature.
  • The Global Tables operations fall through to UnknownOperationException. So do the import, export, resource policy, Contributor Insights and Kinesis operations that the table marks as not implemented.
  • RestoreTableToPointInTime answers PointInTimeRecoveryUnavailableException.

The Requirements page's Non-Goals table and the high-level design's section 7 were both written in April 2026. Each now opens with a preface: it records the scope as decided then, and it points at the Feature Status table. The two rows that moved since then (PartiQL, and backup and restore) say so.

Affiliation statement (#498). Main's #964 sets one sentence on the relationship to Amazon Web Services across the tree. This PR keeps #964's wording (see Merging).

Smaller items in the same change:

  • The Requirements overview no longer claims 100 percent or byte-for-byte compatibility, and section 4.1.1 names one authentication mode.
  • Two internal ticket identifiers and two references to review logs are gone from published pages.
  • The two authentication designs (v2 and v3, published side by side) say which supersedes which.
  • This PR fixes the README's 15 prose dashes, six of them from feat(wasm): [Add WebAssembly browser support for ExtendDB #1009's WebAssembly section, and its single-backend feature line.

Why

Closes #496, closes #497.

The site published the architecture documents with their dashes as sentence splices. The design documents opened with Version, Date and Status lines that rendered as the first paragraph. Feature status lived in the usage guide's summary table and in the README's Supported Operations list, beside the Differences page. Those hand-kept lists drifted from each other and from the engine.

Decisions taken

The site does not render the Version, Date and Status values in front matter. GitHub shows them as a table at the top of each file. The site's Component designs index says that the records were written as the system was built, and it names the Differences page as current. The auth v2 design opens with a note that v3 supersedes it. Rendering "Draft" under each heading was the alternative, and this PR did not take it.

docs/design/README.md still lists the high-availability draft, because it lists the files that exist. The draft itself stays off the site.

At 390 px the Feature Status table scrolls inside its own box, as the theme's table rule lets wide tables do. overflow-wrap: anywhere on the cells removes the scroll, but it splits names such as ReturnConsumedCapacity inside the word. This PR keeps the scroll.

Review guide

I grouped the commits by concern: the scripted dash pass, then the affiliation statement, front matter and auth cache note. Then come the feature status move, the hand dash pass and the casing pass. Five correction and follow-up commits come after them, from 3af2020b2 to 838564a46. The dash commits are large and mechanical. The wording changed in the correction commits.

The Rebase on main section describes the three commits after the rebase. The Merging section describes the merges of #523's branch and the commits after them. The merge at c70c74aef replaces the affiliation sentence of the second commit with #964's.

Rebase on main

I rebased this branch with #491 and #523 onto main at 1d0d8f4a2. These changes on main touch the files this PR's commits change, and this branch keeps them:

The Cassandra setup page from #412 and the backup and restore design from #396, both on main, now follow this PR's rules. The design has its status in front matter and a sentence-case title, like the other design pages.

Commits added after the rebase:

  • docs(cassandra): correct the setup page against the code. The container publishes on 127.0.0.1:9042 only. The list of what init creates includes the default account's keyspace. The multi-node limitation named a node ID setting that does not exist. It now says one instance per catalog, and that the stream clock's node component comes from each instance's bind address and port.
  • docs: state the Cassandra backend's status where feature status lives. The Differences page and the Storage backends page say that the backend is experimental and refuses every vector operation. The Differences page's vector row gives the engine's two capability messages. A new Storage and Infrastructure row says which writes add their stream record after the item rather than with it. The Storage backends page gives the Cassandra version and names Cassandra in the one-instance limit. The design guide's example data database is extenddb, the name that init uses.
  • docs: state the one-instance limit without a release qualifier. "Not supported in this release" becomes "not supported" in the README, the deployment guide and the Storage backends page. Some sentences said "yet", "planned" or "a future version" about something ExtendDB does not do. They are in the README, the deployment and administration guides, the Cassandra setup page and RFC, ADR 0010 and the server, requirements and cache designs. Each now says only what is not supported.

Merging

This branch merged #523's branch six times. Each merge message lists the conflicted files and the text that each file keeps.

#537 sits on this branch. git merge-tree of this head with #537's head reports no conflict. Ten files changed by both auto-merge: six crate files from main, the administration guide, the upgrade manual, website/sidebars.ts and website/src/css/custom.css. Against main at 5252eda31, git merge-tree of this head reports no conflict either.

Filed separately

Testing done

Live DynamoDB, us-east-1, 25 November at 12:10 UTC. I sent each request twice, with SDK parameter validation off, on names that do not exist:

  • DescribeTable, GetItem, PutItem and BatchGetItem with a table ARN as TableName answer 400 ResourceNotFoundException. The DescribeTable message names the table from the ARN, so the service reads the ARN as the table.
  • ListImports, ListExports and ListContributorInsights answer 200.
  • GetResourcePolicy and UpdateKinesisStreamingDestination on the ARN of an absent table answer 400 ResourceNotFoundException.

ExtendDB, on the published 1.0.0 development image (SQLite, built from c2e9a32b0), 25 November at 15:32 UTC, each request twice:

  • With a table ARN as TableName, DescribeTable, PutItem, UpdateItem and DeleteItem answer 400 ValidationException with the tableName pattern message. GetItem, Query, Scan and BatchGetItem answer 400 ResourceNotFoundException.
  • DescribeImport, ListImports, DescribeExport, ListExports, PutResourcePolicy, GetResourcePolicy, DeleteResourcePolicy, ListContributorInsights and UpdateKinesisStreamingDestination answer 400 UnknownOperationException.
  • With no [import] or [export] paths, ImportTable and ExportTableToPointInTime answer 400 ValidationException, "Import is disabled." and "Export is disabled." with the configuration hint.
  • RestoreTableToPointInTime answers 400 PointInTimeRecoveryUnavailableException. ExecuteStatement answers 200.
  • At 16:36 UTC, DescribeContinuousBackups answers 200 with PointInTimeRecoveryStatus DISABLED. UpdateContinuousBackups answers 200 to PointInTimeRecoveryEnabled false, and 400 ContinuousBackupsUnavailableException to true.

This head also carries the main commits that came with the merge of feat/docs-install-pages. Its dispatch list names the same 40 operations as c2e9a32b0. The table name check (crates/core/src/validation/mod.rs, crates/server/src/table_name_gate.rs) has not changed since then.

The site, at the merge commit 84810bbdf and at this head: npm ci, npm run typecheck and the strict npm run build pass for the github.io host, with no build warning. The build fails on a broken link, Markdown link or anchor. I measured the built site in headless Chromium. At 390 px the Feature Status table holds 404 px of content in a 358 px box, and it scrolls inside the box. The page does not scroll. At 1280 px the table fits (703 px).

Across the 49 files of this PR, no prose line holds an em or en dash. The exception is the high-availability draft, which the site does not publish.

This PR touches eleven files over 600 lines, and all eleven were over 600 lines before this change. Against feat/docs-install-pages, the requirements and the backup and restore design grow by five lines and the v2 authentication design by three. The README shrinks by 20 lines, and the other seven change by one line or less.

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

Breaking changes

None.


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.

@LeeroyHannigan LeeroyHannigan added the documentation Improvements or additions to documentation label Oct 24, 2026
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

@mdeepth

The container example publishes the CQL port on 127.0.0.1 only, so the
node and its default superuser are not reachable from other hosts, and the
page's statement that the node listens on 127.0.0.1:9042 holds.

init creates the default account's keyspace along with the catalog
keyspace. Accounts added later get their keyspace when they are created.

There is no node ID setting. The server sets each instance's ID to its bind
address and port, and the stream clock derives its node component from that
ID. The bullet now states the one-instance limit and where the node
component comes from.
The Differences page and the Storage backends page now say that the
Cassandra backend is experimental and refuses every vector operation, with
the two messages the engine's capability gate returns. A new Storage and
Infrastructure row says when a Cassandra stream record is written after its
item: PutItem, UpdateItem and a conditional DeleteItem on a table without
TTL, and TransactWriteItems, commit the item with a lightweight transaction
first. The DynamoDB Streams row points at it.

The Storage backends table gives the Cassandra version (4.1 or newer) and
names Cassandra in the one-instance limit. The design guide's example data
database is extenddb, the name init uses by default.
"Not supported in this release" becomes "not supported" in the README, the
deployment guide and the Storage backends page. The same change takes "yet",
"planned" and "a future version" out of the other published sentences about
what ExtendDB does not do: the readiness endpoint, container guides for
SQLite and Cassandra, production use of the Cassandra backend, DynamoDB
parity in the Cassandra RFC and ADR 0010, the cross-process cache
invalidation channel, role chaining and policy variables in Resource ARNs.
The two Cassandra RFC sentences that only announced background backup jobs
are removed. Each sentence says what is not supported and nothing about
when.

@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.

The sweep changed no command, code token, identifier or link target: across the 49 files, the only code block changes are one README comment and two Rust comments, and every new or changed link and anchor resolves. The README Quick Start runs as written on the default PostgreSQL build. On SQLite, PostgreSQL with and without pgvector, MongoDB and Cassandra, PartiQL answers 200, Global Tables and 13 other listed operations answer UnknownOperationException, point-in-time recovery is refused as the page says, and the vector refusals match the quoted messages. The strict build passes, the crawl found 7,627 links with none broken, renaming the Feature Status heading fails the build on both pages that link to it, and CI is green.

The PR's aim is one record of feature status. I will approve once the items below are done.

README.md:267

The Supported Operations section is a second, hand-kept list, and it leaves out PartiQL and the seven backup and continuous backup operations that the engine serves (crates/engine/src/lib.rs:564-593). The backend table's API coverage column (lines 58 to 61) sends readers here, while differences-from-dynamodb.md:16 calls Feature Status the one record.

docs/design/09-testing.md:299

Optional. "PartiQL is deferred to post-v1 (Phase 15+)" is stale, and PartiQL is served.

docs/design/15-backup-restore.md:606

Optional. The page still cites .review/reviews/r8/DONE-SPLIT.md.

docs/cassandra-setup.md:307

Optional. One em dash remains in this page's prose.

Other optional notes

  • 12-auth-authz-cache.md:8 links the v2 auth design, which this PR marks as superseded by v3, and the sidebar says (v2) where the page heading does not.
  • "(see Feature status)" and "(see Operations Not Implemented)" in 01-requirements.md:30 and differences-from-dynamodb.md:29, 40 and 42 are plain text.
  • 02-high-level-design.md:411 restates Global Tables status rather than linking the Feature Status table.
  • At 390 px the page fits and the table scrolls inside its box (358 of 371 px), from ReturnConsumedCapacity and RestoreTableFromBackup and the 105-word backups cell; overflow-wrap: anywhere on the table cells removes it.
  • The PR body says RestoreTableToPointInTime answers ValidationException; it answers PointInTimeRecoveryUnavailableException on all four backends, as the page says.


## Feature Status

This table is the one record of which DynamoDB features ExtendDB implements. The sections that follow

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.

Feature Status marks Import/Export as implemented, and DescribeImport, ListImports, DescribeExport and ListExports answer UnknownOperationException; so do GetResourcePolicy, ListContributorInsights and UpdateKinesisStreamingDestination, which the service serves. Import and export are also off by default (Import is disabled). The table has no rows for resource policies, Contributor Insights or Kinesis streaming destinations.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in bddae2c. The import and export row names ImportTable and ExportTableToPointInTime, and says they're off until the configuration sets [import] and [export] paths. It also says DescribeImport, ListImports, DescribeExport and ListExports aren't implemented. New rows mark resource-based policies, Contributor Insights and Kinesis streaming destinations as not implemented, and Operations Not Implemented lists the nine missing operations.

On the 1.0.0 dev image each of the nine answered UnknownOperationException, twice. On the service, ListImports, ListExports and ListContributorInsights answered 200, and GetResourcePolicy and UpdateKinesisStreamingDestination answered ResourceNotFoundException for a table that doesn't exist.

Comment thread docs/differences-from-dynamodb.md Outdated
| Deleting a user, group or role that still has inline policies (a user also access keys or group memberships, a group also members) | `DeleteUser`, `DeleteGroup` and `DeleteRole` refuse with `DeleteConflict` until they are removed | The delete succeeds and removes them, and the principal's boundary, tags and sessions, with the principal. A principal created later with the same name starts empty |
| Putting an inline policy or boundary on a principal that does not exist | `NoSuchEntity` | HTTP 404 `IAM user not found` (or `group`, `role`) from the management API |
| Table ARN as `TableName` | Accepted; the request acts on that table | Authorized against that table, then the request fails with `ResourceNotFoundException` |
| Table ARN as `TableName` | Accepted; the request acts on that table | Not accepted: the request is authorized against the named table and then refused with `ResourceNotFoundException` |

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.

On SQLite, twice each, a table ARN as TableName answers 400 ValidationException with the tableName pattern message on DescribeTable, PutItem, UpdateItem and DeleteItem, and ResourceNotFoundException on GetItem, Query, Scan and BatchGetItem. The cell says ResourceNotFoundException. Authorization runs first, as it says. The service accepts the ARN on all eight.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in bddae2c. The cell gives both answers now: DescribeTable, PutItem, UpdateItem and DeleteItem answer ValidationException with the tableName pattern message, and GetItem, Query, Scan and BatchGetItem answer ResourceNotFoundException. I got the same eight answers on the 1.0.0 dev image, twice each.

On the service, DescribeTable, GetItem, PutItem and BatchGetItem with the ARN of a table that doesn't exist answered ResourceNotFoundException. The DescribeTable message names the table from the ARN.

Comment thread docs/differences-from-dynamodb.md Outdated
| `TransactGetItems` overlapping an in-flight `TransactWriteItems` on the same item | May cancel the read with `TransactionCanceledException` and reason `TransactionConflict` | Never cancels for this reason on PostgreSQL: the read runs in one `REPEATABLE READ` snapshot taken at its first read, so it sees either all of the write or none of it and returns the pre-write state while the write is in flight. That is a legal serial order (the read ordered before the write) and the all-or-nothing guarantee holds, but a client that retries on `TransactionConflict` to observe the newest state will not get that signal here. SQLite behaves the same (one WAL snapshot); MongoDB with the default `snapshot` read concern likewise, and the row above covers the other read concerns. |
| Transaction read concern (MongoDB backend only) | No user-configurable equivalent | `snapshot` is the default, fidelity-preserving mode. With `majority` or `local`, `TransactGetItems` is not guaranteed a single point-in-time snapshot and transaction condition reads have weaker isolation. With `local`, a condition can be evaluated against data that is later rolled back after failover. |
| Contended `TransactWriteItems` | A transaction that conflicts with another in-flight transaction on the same item is canceled with a `TransactionConflict` reason ("Transaction is ongoing for the item") | **PostgreSQL** queues the second transaction on the first one's row locks and **SQLite** runs one writer at a time, so both normally commit and no `TransactionConflict` is returned. PostgreSQL locks each transaction's items in table and key order, so two `TransactWriteItems` cannot deadlock on each other. A PutItem, UpdateItem, DeleteItem or BatchWriteItem of an item that a `TransactWriteItems` has locked also waits for it, where the Amazon DynamoDB developer guide lists that request as a conflict. On PostgreSQL this includes an item that the transaction checks or deletes while it is missing: the transaction holds the key until it commits or rolls back, so a request that creates the item waits. Many transactions that check one hot missing item queue less fairly than on an existing item, because every waiter wakes at each commit and only one proceeds. Each such check or delete of a missing item also inserts and deletes its key, so it writes WAL and leaves a dead row and index entry for autovacuum, even though it changes no item. When PostgreSQL still aborts a transaction (a deadlock with another lock holder, or a serialization failure under a stricter `default_transaction_isolation`), the answer is a `TransactionCanceledException` with a `TransactionConflict` reason, not a 500. **MongoDB** retries write conflicts internally and cancels with `TransactionConflict` on every item only after sustained contention. A client that relies on `TransactionConflict` to back off does not see it under ordinary contention. |
| Stream record for an item write (Cassandra backend only) | Every item-level change appears in the stream exactly once | PutItem, UpdateItem and a conditional DeleteItem on a table without TTL, and every item a TransactWriteItems writes, commit the item first with a lightweight transaction and write its stream record in a following logged batch, so a failure between the two leaves the item changed with no stream record. On a TTL-enabled table, PutItem, UpdateItem and DeleteItem write the item and its stream record in one logged batch, and an unconditional DeleteItem does so on any table. BatchWriteItem writes each item through the PutItem and DeleteItem paths. |

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.

Since #424, every DeleteItem on a table without TTL commits by LWT and writes the stream record afterward (crates/storage-cassandra/src/data/delete_item.rs:296-361). The row says an unconditional DeleteItem writes both in one logged batch. #424 landed after this row was written. The same text is at docs/storage-backends.md:45.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 79a5112, in this row and in the Cassandra bullet of docs/storage-backends.md. Both now say that PutItem, UpdateItem and DeleteItem on a table without TTL commit the item first and write the stream record afterwards. On such a table every delete, conditional or not, deletes the row with a lightweight transaction. Then delete_item_secondary_effects writes the index rows and the stream record in a logged batch.

Comment thread docs/design/01-requirements.md Outdated
### 4.1.1 Auth Modes

extenddb supports three authentication modes, selectable by configuration. The mode determines how credentials are validated and how authorization decisions are made.
ExtendDB supports two authentication modes, selectable by configuration: Mode 2 (local credential store) and Mode 3 (AWS IAM). Mode 1 (no auth) existed in early builds and has been removed. The mode determines how credentials are validated and how authorization decisions are made.

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.

The sentence now says two modes are supported, Mode 2 and Mode 3 (AWS IAM). With auth.provider = "aws_iam" (line 273), serve exits 1 with Unknown auth provider 'aws_iam'. Only 'builtin' is supported. (crates/app/src/cmd_serve.rs:98), twice. The v3 auth design calls Mode 3 deferred.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in fece9c3. Section 4.1.1 names one mode, Mode 2, and says Mode 3 isn't implemented, with the refusal serve prints and the exit 1. The Mode 3 heading says not implemented too.

Comment thread docs/design/06-component-server.md Outdated
```

`CallerArn` is required — it identifies the principal assuming the role. It must match the format `arn:aws:iam::{account_id}:user/{user_name}`. If the format is invalid, the handler returns 400 with `{"Error": "ValidationError", "Message": "CallerArn must be a valid IAM user ARN"}`. Role-chaining (a role assuming another role) is deferred to a future version; in v1, `CallerArn` must reference a user. The handler loads the caller's tags via `IdentityEngine`, builds an `AssumeRoleContext` from the caller's tags + `SessionTags` + `ExternalId`, loads the role's trust policy, and evaluates it using `evaluate_trust_policy`. If the trust policy denies the assumption, the handler returns 403 with `{"Error": "AccessDenied", "Message": "Trust policy does not allow this principal to assume the role"}`. This ensures developers can test trust policy conditions (e.g., `sts:ExternalId`, `aws:PrincipalTag/*` restrictions) through the management API.
`CallerArn` is required; it identifies the principal assuming the role. It must match the format `arn:aws:iam::{account_id}:user/{user_name}`. If the format is invalid, the handler returns 400 with `{"Error": "ValidationError", "Message": "CallerArn must be a valid IAM user ARN"}`. Role chaining (a role assuming another role) is not supported; `CallerArn` must reference a user. The handler loads the caller's tags via `IdentityEngine`, builds an `AssumeRoleContext` from the caller's tags + `SessionTags` + `ExternalId`, loads the role's trust policy, and evaluates it using `evaluate_trust_policy`. If the trust policy denies the assumption, the handler returns 403 with `{"Error": "AccessDenied", "Message": "Trust policy does not allow this principal to assume the role"}`. This ensures developers can test trust policy conditions (e.g., `sts:ExternalId`, `aws:PrincipalTag/*` restrictions) through the management API.

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.

The text says role chaining is not supported and CallerArn must be a user. The management assume-role issued credentials for an assumed-role ARN and for a role ARN, twice each, and a malformed CallerArn answered 403, where the text gives 400 with a message that is not in the code.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in fece9c3. The paragraph says CallerArn is the caller's ARN, a user or a role session for example. The handler doesn't check its format and leaves it to the trust policy. A refusal answers 403 with Caller is not authorized to assume this role (assume_role.rs:203). The 400 and its message are gone.

The differences page's role chaining row and the v2 auth design make the same claim. So do the requirements page's Non-Goals table and REQ-IDENT-009. This PR changes only the punctuation of the Non-Goals row. That's #1500.

The same paragraph named an IdentityEngine that the code doesn't have. It now says that evaluate_trust_policy reads the caller's tags with fetch_caller_tags. The rest of section 8, with its routes, type names, body keys and error bodies, is #1501.

Comment thread docs/design/01-requirements.md Outdated
- REQ-STREAM-005: Detailed shard management and retention design is deferred

### 3.5 Global Tables Operations (In Scope — Deferred Detail)
### 3.5 Global Tables Operations (In Scope, Detail Deferred)

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.

Optional. Section 3.5 is still headed Global Tables Operations (In Scope), and REQ-GT-001 and REQ-GT-003 say the operations are accepted. The engine answers them with UnknownOperationException.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done in fece9c3. The heading says not implemented. A new first line says the section was written in April 2026 as in scope, and that each of these operations answers UnknownOperationException. It links Feature Status.

Comment thread website/src/pages/index.tsx Outdated
<p>
One container over SQLite, plain HTTP, a seeded example credential. Nothing to initialize and no
certificate to trust. Bound to the loopback interface; not for anything reachable from other
certificate to trust. It listens only on the local machine and is not for anything reachable from other

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.

Optional. "It listens only on the local machine" holds because the command publishes on 127.0.0.1. The container binds 0.0.0.0.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done in 469669e. The paragraph says the command publishes the port on 127.0.0.1 only, so only this machine reaches it, and not to publish it on another interface. Dockerfile.dev binds 0.0.0.0, as you say.

LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main at e96a60f (#398 and #428 are the newest commits). Three files conflicted. Each one keeps main's text with this branch's formatting:

- docs/cassandra-setup.md: the keyspace_prefix bullet from #1173 (the 27-character limit and the lower-casing rule). A colon after the setting name replaces the em dash. The replication_factor bullet gets the same colon.
- docs/manuals/06-developer-test-guide.md: main's "core is sync Rust" wording, with a colon in place of the em dash.
- docs/versioning.md: main's two bullets (the experimental backend tier, and the WebAssembly build from #1009). Both README links are GitHub URLs, like every other link outside docs/ on this branch. The relative form of the WebAssembly link does not resolve in the strict site build.

Main's new docs/rfcs/0000-credential-encryption-key.md gets an entry in the RFCs sidebar, so the page is reachable from the site and not only by URL.

Main's new lines in docs/design/02-high-level-design.md (three) and docs/design/03-component-core.md (one) carry em dashes. They stay as main has them: #530's dash sweep covers those files.

The strict site build passes on the merged tree.
The base branch now holds the fix rounds of #491 and #523, and main up to 9e457a3. Six files conflicted. Each keeps the base's text, with this branch's punctuation and status edits on the same lines.

- docs/design/02-high-level-design.md: main's paragraph on the crate dependencies (#1009) and the read replica proposal (#584), with this branch's semicolons and colons in place of the dashes.
- docs/design/03-component-core.md: main's sentence on the crypto module (#1009), with a colon for the dash.
- docs/design/04-component-storage.md: main's IdempotentMismatch line (#526) in the list this branch writes with colons, and main's read replica paragraph (#584), which has no dash.
- docs/design/13-storage-mongodb.md: main's AT_TIMESTAMP iterator line (#468), and colons after the two engine names.
- docs/manuals/03-usage-guide.md: the section stays a pointer to the Feature Status table. The Global Tables cell that #491 fixed moves to that table on the differences page.
- docs/storage-backends.md: the base's Markdown links, Cassandra image and container link, with this branch's experimental label and Cassandra version. The MongoDB bullet is the base's. The Cassandra bullet keeps the facts of both sides. The one-instance sentence names three backends, as on this branch, with the base's link.
The table marked Import/Export as implemented and had no rows for resource-based policies, Contributor Insights or Kinesis streaming destinations. The engine dispatches ImportTable and ExportTableToPointInTime only, and answers UnknownOperationException to DescribeImport, ListImports, DescribeExport, ListExports, PutResourcePolicy, GetResourcePolicy, DeleteResourcePolicy, ListContributorInsights and UpdateKinesisStreamingDestination. Import and export answer ValidationException until extenddb.toml sets [import] and [export] paths. The import and export row now says this. Three new rows mark resource-based policies, Contributor Insights and Kinesis streaming destinations as not implemented, and Operations Not Implemented lists the nine operations. The auth table's resource policy row drops "(deferred)".

The row for a table ARN as TableName said ExtendDB refuses the request with ResourceNotFoundException. On SQLite, DescribeTable, PutItem, UpdateItem and DeleteItem answer ValidationException with the tableName pattern message, and GetItem, Query, Scan and BatchGetItem answer ResourceNotFoundException. The row now names both answers.

The README's Supported Operations list was a second, hand-kept copy that left out PartiQL and seven backup and continuous backup operations. The section now points at the Feature Status table, and so does the API coverage column of the backend table. The table takes the two operations only the README named (DescribeEndpoints, DescribeLimits) and names the four stream operations. The point-in-time recovery row names the two continuous backup operations: DescribeContinuousBackups reports the feature disabled, and UpdateContinuousBackups refuses to enable it.

The plain-text cross references in the table and on the Requirements page are links.
…am record after the item

Since #424, a DeleteItem on a table without TTL deletes the row with a lightweight transaction, conditional or not. It then writes the index rows and the stream record in a logged batch (delete_item_secondary_effects in crates/storage-cassandra/src/data/delete_item.rs). Only a TTL-claimed row reaches the batch that deletes the item and writes its stream record together. The stream record row on the differences page said that an unconditional DeleteItem writes both in one logged batch on any table. The Cassandra bullet on the storage backends page named only a conditional DeleteItem. Both now name DeleteItem with PutItem and UpdateItem.
…nd PartiQL do now

Requirements: section 4.1.1 said two authentication modes are supported, Mode 2 and Mode 3 (AWS IAM). serve refuses every provider but builtin (crates/app/src/cmd_serve.rs). The section now names one mode, and marks Mode 3 as not implemented with the refusal that serve prints. The heading of section 3.5 said "In Scope", and every Global Tables operation answers UnknownOperationException. The heading and a new first line now say that.

Server: the assume-role paragraph required a user ARN as CallerArn and gave a malformed one a 400 that the code does not send. The handler checks no format. It gives the ARN to the trust policy, and it reads a role session ARN as an AssumedRole principal. A refusal answers 403 with the body "Caller is not authorized to assume this role" (crates/server/src/management/assume_role.rs). The paragraph now says that. It also said that the handler loads the caller's tags through IdentityEngine, a type the code does not have. The paragraph now says that evaluate_trust_policy reads them from the catalog store with fetch_caller_tags.

Testing: section 8.1 said PartiQL is deferred, and ExtendDB serves it behind the default-on partiql build feature.

Backup and restore: revision item 25 cited a review report under .review/, and the repository has no such directory. The sentence is gone.

Authorization cache: the page linked the v2 authentication design, which v3 supersedes. It links v3 now, and the v2 page's heading says (v2), as its sidebar label does.

High-level design: section 7 points at the Feature Status table for Global Tables.
…brought in

The merge brought four list items of the README's WebAssembly section (#1009) with six em dashes, and the Cassandra setup page kept one from #909. The list items now put the operation names in parentheses and a colon before the quoted refusal. The Cassandra sentence uses commas. In the files this branch sweeps, no prose line holds an em or en dash now. The one exception is the high availability draft, which the site does not publish.
…t image on 127.0.0.1 only

The paragraph said that the container listens only on the local machine. The image binds 0.0.0.0 (Dockerfile.dev sets EXTENDDB__SERVER__BIND_ADDR), and the command on the page publishes the port on 127.0.0.1 only. The paragraph now says what the command does, and that the port must not be published on another interface.
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

The six commits on top of 0c16021 cover the review. The body lists them.

README.md:267: bddae2c replaces the Supported Operations list with a pointer to Feature Status, and the API coverage column links there too. The table picked up DescribeEndpoints and DescribeLimits, which only the README named, and the four stream operations. Its point-in-time recovery row names DescribeContinuousBackups and UpdateContinuousBackups.

docs/design/09-testing.md:299: fece9c3 says PartiQL is implemented behind the default-on partiql feature, with a link to Feature Status.

docs/design/15-backup-restore.md:606: fece9c3 drops the sentence that cited .review/reviews/r8/DONE-SPLIT.md.

docs/cassandra-setup.md:307: ddab1a1 uses commas there. The same commit replaces six dashes that #1009's WebAssembly section brought into the README.

12-auth-authz-cache.md:8 links the v3 design now, and the v2 page's heading says (v2), as the sidebar does (fece9c3). The plain-text references in 01-requirements.md and differences-from-dynamodb.md are links (bddae2c). Section 7 of 02-high-level-design.md points at Feature Status for Global Tables (fece9c3).

The 390 px table: at the new head it holds 404 px in a 358 px box and scrolls inside it. The page doesn't scroll. I've kept the scroll, because overflow-wrap: anywhere splits names like ReturnConsumedCapacity mid-word. #537 keeps key names whole in the same media block for the same reason. The body gives the measured widths now instead of saying it fits.

The body's RestoreTableToPointInTime sentence says PointInTimeRecoveryUnavailableException now, and it lists the PartiQL operations as dispatched behind the partiql feature.

LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
#530's branch at 469669e carries #523's af9567b, #491's 49b856f
and main up to 9e457a3. No file conflicted.

Main's commits in this merge add no field to a struct that the sample
documents, so the sample needs no new line. #1173 lower-cases the
Cassandra keyspace_prefix that a config file gives, and its default,
extenddb, is already lower case. The generator check passes:
docs/configuration.md matches the sample.

On the merged tree, the 13 sample tests of extenddb-config and the
sample test of each of the four backend crates pass. The SQLite test
also passes with the memory feature.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
#523's branch adds a link from docs/install-from-source.md to
manuals/05-admin-guide.md#backupstore, and the merge of #530's branch
carries it here. This branch replaced the admin guide's key tables,
[backup.store] among them, with the Configuration page, so that anchor
is gone. The strict site build then fails with a broken anchor on
/install-from-source/.

The link now opens the admin guide's backup store section, whose store
identity paragraph explains the "owned by another catalog" report. The
links of 14-backup-and-restore.md and 07-upgrade-manual.md open the same
section. With the change the strict site build passes.

@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.

The items from the earlier review are resolved at 469669e, measured twice on a SQLite build of this head and, where a line is about the service, in us-east-1.

  • The README now points at Feature Status, which names all 40 operations the server dispatches, and Operations Not Implemented lists every one it does not; the nine missing operations answer UnknownOperationException here, ImportTable and ExportTableToPointInTime answer "Import is disabled." and "Export is disabled.", and the service answers ListImports, ListExports and ListContributorInsights with 200 and GetResourcePolicy with PolicyNotFoundException. A table ARN as TableName gives the eight answers the row lists, where the service acts on the table on all eight. RestoreTableToPointInTime answers PointInTimeRecoveryUnavailableException, as the body says.
  • ExecuteStatement answers 200, serve with auth.provider = aws_iam exits 1 with "Unknown auth provider 'aws_iam'", assume-role accepts a user, assumed-role or role ARN and refuses not-an-arn with 403, and CreateGlobalTable and ListGlobalTables answer UnknownOperationException. The Cassandra DeleteItem path deletes the row before it writes the stream record, as the page says.
  • The home page's command publishes the port on 127.0.0.1 only, and the host's own address refuses it. The .review/ citation is gone, no dash is left in the 49 files' prose, the auth cache link and heading match, the plain references are links, and the strict site build passes. The wasm CI failure comes from main's metrics code, which this branch does not touch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation v1 Needed for the 1.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants