Skip to content

fix(engine): read SSESpecification in UpdateTable - #1126

Open
LeeroyHannigan wants to merge 15 commits into
fix/1052-sse-table-classfrom
fix/1054-update-table-sse
Open

LeeroyHannigan wants to merge 15 commits into
fix/1052-sse-table-classfrom
fix/1054-update-table-sse

Conversation

@LeeroyHannigan

@LeeroyHannigan LeeroyHannigan commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Changes since the last review

What

UpdateTable now reads SSESpecification. It did not count the member as a change, so a request that carried it alone got At least one of BillingMode, ProvisionedThroughput, DeletionProtectionEnabled, StreamSpecification, GlobalSecondaryIndexUpdates, or WarmThroughput must be specified. Each refusal below is a ValidationException with DynamoDB's text:

  • A KMSMasterKeyId of more than 2048 characters and an SSEType outside [AES256, KMS] come first among UpdateTable's member faults, ahead of the index and stream view type faults.
  • The four One or more parameter values were invalid sentences of CreateTable (fix(engine): refuse the TableClass and SSESpecification DynamoDB refuses #1114) refuse SSEType AES256, an SSEType or a KMSMasterKeyId with Enabled false, and a KMSMasterKeyId without SSEType KMS.
  • A specification beside another change gets One or more parameter values were invalid: Server-Side Encryption modification must be the only operation in the request. The other changes are BillingMode, ProvisionedThroughput, DeletionProtectionEnabled, StreamSpecification, TableClass, OnDemandThroughput and GlobalSecondaryIndexUpdates. A stream change beside ProvisionedThroughput keeps its own sentence, which DynamoDB answers first.
  • {"Enabled": false} and {} on a table with the default encryption get One or more parameter values were invalid: Table is already encrypted by default.

The member faults come first. The four sentences and the "only operation" sentence follow the BillingMode and throughput checks. All of them come before the table lookup, and the "already encrypted" sentence comes after it. DynamoDB answers them in this order.

DynamoDB refuses a specification of the wrong JSON type while it reads the body, with SerializationException. A specification that is not a JSON object gets Unexpected field type (measured for a string). An Enabled that is not a boolean or a string gets the texts above. An SSEType or KMSMasterKeyId that is not a string gets the type text that check_member_types gives, for example NUMBER_VALUE cannot be converted to String for a number. UpdateTable answers these after the read, ahead of the table class and member faults. #1262 adds a reader, json_object, that refuses a specification that is not a JSON object on both inputs. The PR that merges second keeps one of the two checks.

DynamoDB reads a specification without Enabled that names SSEType or KMSMasterKeyId as one with Enabled true, so UpdateTable adds "Enabled": true to it before the checks. A null Enabled, SSEType or KMSMasterKeyId counts as absent (measured on a table that does not exist on 2 December 2026). {} stays a request to disable, and so does {"Enabled": null}. On a table with KMS, UpdateTable accepts both, and DescribeTable then reports no SSEDescription. DynamoDB answered {} that way on 18 November 2026. Its answer to {"Enabled": null} alone needs a table with KMS that exists, and it is not measured. An Enabled written as a string becomes the boolean that DynamoDB reads, as on CreateTable (#1114). In any ASCII case, "true", "t", "yes", "y" and "1" are true, and "false", "f", "no", "n" and "0" are false. Another string gets SerializationException Unexpected token received from parser. An Enabled of another JSON type gets SerializationException with DynamoDB's text: NUMBER_VALUE cannot be converted to Boolean for a number, no message for a list, and Start of structure or map found where not expected for an object. So each backend records the value that the check read.

Each backend records an accepted specification beside its TableClass write, in the same transaction or write, as its CreateTable records it. DescribeTable then reports the new SSEDescription. The backends are SQLite, PostgreSQL, MongoDB and Cassandra.

UpdateTable accepts and records a KMSMasterKeyId with SSEType KMS, as ExtendDB's CreateTable does, because ExtendDB makes no KMS request. DescribeTable does not report the key: the KMSMasterKeyArn ends in key/default for every key. DynamoDB answers a key that does not exist with the fault of its KMS lookup (rows 7 and 8 of the issue).

This PR targets the branch of #1114, fix/1052-sse-table-class, because it calls check_sse_specification and EnumFaults::sse_specification from #1114. Merge #1110 and #1114 first.

Why

These are DynamoDB's answers, measured in us-east-1. DynamoDB answered the rows of the issue on 13 and 14 November 2026. On 18 November 2026, UpdateTable requests of each shape above went out to DynamoDB and to ExtendDB on SQLite. They went to a table that does not exist, to tables with the default encryption, and to tables with KMS. On 25 November 2026, more requests went to a table that does not exist. They carry a specification of the wrong JSON type, an Enabled string, or an SSE fault beside another member fault. On 2 December 2026, more requests went to a table that does not exist. They carry an Enabled string, a null Enabled, an Enabled of another JSON type, or a null SSEType or KMSMasterKeyId. On 3 December 2026, {"Enabled": null} and {} went to a table that does not exist and got ResourceNotFoundException. Each refused request went out twice and got the same answer both times. The request {} on a table with KMS went out once on 18 November 2026, because it changes the table. DynamoDB reported UPDATING, and no SSEDescription 45 seconds later.

Closes #1054

Testing done

  • At 34c630e, cargo +1.97.0 test --lib passed 984 engine tests and 1260 core tests, with 1 ignored. The server lib tests gave 521 passed and 5 failed. The 5 are the backup_store::tests that refuse a spool or a backup root under /local/home, which belongs to another user on the build host (storage-sqlite: the two write_lock_tests fail when an ancestor of the Cargo target directory is owned by another user #1414). cargo +1.97.0 test -p extenddb-wasm-adapter passed its 3 unit tests and the parity corpus test, and cargo +1.97.0 test -p extenddb-storage-postgres --test doc_version_literals passed 3 tests.
  • At b083915, cargo +1.97.0 test -p extenddb-storage-sqlite --no-fail-fast passed 336 tests, with 1 ignored. Four tests failed on the build host: the two backup_catalog::write_lock_tests, and one test each in tests/backup_job_panic.rs and tests/restore_job_resume.rs. Each refuses its backup root because /local/home, an ancestor of the target directory, belongs to another user (storage-sqlite: the two write_lock_tests fail when an ancestor of the Cargo target directory is owned by another user #1414).
  • At 7d87f97, before the round of 2 December, cargo test --lib passed on the PostgreSQL, MongoDB and Cassandra backends. PostgreSQL passed 84 tests, MongoDB 190 with 83 ignored (they need a MongoDB server), and Cassandra 175. This round changes no backend file, but the merges add main's changes, and these tests were not run again. CI runs them.
  • At 34c630e, cargo +1.97.0 fmt --all -- --check is clean. The two clippy commands of CI on the workspace with -D warnings are clean: one with --features extenddb-storage-cassandra/test-hooks,extenddb-storage-mongodb/test-hooks, and one with --features extenddb-engine/backup-test-hooks. cargo +1.94.0 check --all-targets on the core, the engine and the four storage crates is clean, and so is the clippy step of the WebAssembly workflow.
  • Against ExtendDB on SQLite and on PostgreSQL, built from 34c630e, tests/test_table_enum_members.py and tests/test_config_fields.py passed 123 tests. The new rows check each refusal, and that the table keeps its encryption after it. They also check the encryption DescribeTable reports after an accepted change, {} and {"Enabled": null} on a table with KMS among them. The two Python suites collect with no error: 7421 tests in tests/ and 820 in tests/python.
  • With the production change reverted, the Rust row test fails. At e1b4a52 it also failed with each of these changes, on the rows for that change:
    • the "only operation" check removed
    • Enabled added for SSEType KMS alone
    • no type check of the specification
    • a check that reads only a boolean Enabled
    • the SSE faults recorded after the index and stream faults
  • At e1b4a52, with the disable check only for an explicit Enabled false, the wire file failed on the empty specification row alone.
  • At 6c08bbe, with a null Enabled counted as present, the row test fails on the null Enabled row. Without the Enabled type check, the new test sse_member_type_texts fails.
  • At 34c630e, with a null Enabled alone read as Enabled true, the row kms-enabled-null fails, and kms-empty and the other rows of test_update_table_records_sse pass.

On the build host, the four backend writes went through the compiler and clippy at 34c630e. The SQLite and PostgreSQL writes also went through the two wire files. The PostgreSQL, MongoDB and Cassandra lib tests ran at 7d87f97, and the MongoDB lib tests again at b48d586. CI runs them, and the wire files on MongoDB and Cassandra.

Line counts: production +161 -27, tests +332 -9. The round of 2 December: production +32 -17 in its own commits and the merge resolution described above, tests +90 -18. The round of 3 December: tests +11 -3 and three lines of the upgrade manual entry in its own commits. Its merge resolves the module doc of tests/test_table_enum_members.py. The upgrade manual entry has 15 lines.

Not in this PR, each in an open issue:

Other open PRs:

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

An UpdateTable with an SSESpecification now changes the table's encryption settings, or gets one of the refusals above. The previous release answered such a request with the At least one of ... must be specified text when the specification came alone. Beside WarmThroughput, it answered the "only operation" sentence. Beside another change, it applied that change and did not act on the specification. The v1.2.0 entry of docs/manuals/07-upgrade-manual.md gives this change and the refusals.


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.

UpdateTable did not count SSESpecification as a change. A request with
TableName and SSESpecification alone was refused as one that names no
change. DynamoDB reads the specification. It refuses an SSEType outside
its set, an SSEType of AES256, an SSEType with Enabled false and a
KMSMasterKeyId without the SSEType KMS. It accepts a specification that
enables or disables KMS, and changes the table's encryption. The
answers were measured in us-east-1 on 13, 14 and 18 Nov 2026.

UpdateTable now counts the member as a change. It lists a KMSMasterKeyId
of more than 2048 characters and an SSEType outside its set first among
the member faults, as DynamoDB does. It refuses a specification whose
members do not go together with the sentences CreateTable uses. After
them it refuses a specification beside another change, such as
BillingMode or a new index, with DynamoDB's sentence. DynamoDB answers a
BillingMode of PROVISIONED without ProvisionedThroughput first, so these
checks follow the BillingMode checks. They run before the table lookup,
as DynamoDB answers them for a table that does not exist. A stream
change beside ProvisionedThroughput keeps its own sentence, which
DynamoDB answers ahead of the specification one.

Each backend records an accepted specification as CreateTable records
it, so DescribeTable reports the new SSEDescription. DynamoDB reads a
specification without Enabled that names SSEType or KMSMasterKeyId as
one with Enabled true. UpdateTable adds Enabled true to it before the
checks above.

DynamoDB refuses an Enabled of false, or an empty specification, on a
table that uses the default encryption. UpdateTable now refuses both
with DynamoDB's sentence, after the table lookup, as DynamoDB does.
DynamoDB reports the change as UPDATING for about 45 seconds, where
ExtendDB reports the new settings at once.

Fixes #1054.
UpdateTable did not check the JSON type of SSESpecification or of its
SSEType and KMSMasterKeyId. Such a specification reached the table
lookup and the backend write. On a table with KMS the backend recorded
it, and DescribeTable then reported another SSEDescription or none.
DynamoDB refuses these requests while it reads the body (measured 25
Nov 2026, us-east-1). It answers "x" with SerializationException
"Unexpected field type", and an SSEType of 5 with "NUMBER_VALUE cannot
be converted to String". UpdateTable now gives these answers after the
read. The member texts come from check_member_types, which
GetShardIterator's check_member_shapes now calls.

UpdateTable also writes an Enabled given as a string as a boolean, in
the way check_sse_specification reads it. "false" is false and any
other string is true. The backends read only a boolean Enabled, so the
record and the check now agree. A null SSEType or KMSMasterKeyId no
longer counts as present when UpdateTable adds "Enabled": true.
…ation

No UpdateTable row had an SSE fault beside a stream view type fault or
an index fault. So no test saw that the SSE faults come first. Add the
two rows measured on 25 Nov 2026. In one the SSEType and the
StreamViewType are both BOGUS. In the other a GSI Create has the
ProjectionType BOGUS, and the body sends it ahead of the SSEType BOGUS.
DynamoDB lists the SSEType fault first in both.

Add the empty specification on a table with the default encryption,
measured on 18 Nov 2026. It gets "Table is already encrypted by
default", as {"Enabled": false} does.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
DynamoDB reads an Enabled of "false" as false and any other string as
true (measured on UpdateTable, 25 Nov 2026, us-east-1). With "Enabled":
"true" or "yes" and SSEType AES256, it answers "SSEType AES256 is not
supported". With "Enabled": "false" and SSEType KMS, it answers
"SSEType can not be specified if Enabled is false".

check_sse_specification read only a JSON boolean, so it passed these
requests. Now it reads a string in the same way. CreateTable runs the
check, but CreateTable was not measured with these shapes. UpdateTable
runs it from #1126 on, and #1126 adds the measured rows.
@navareamol navareamol self-assigned this Nov 30, 2026

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

I think an Enabled that is not a boolean or a string turns encryption off on a KMS table. The code adds "Enabled": true only when spec.get("Enabled").is_none(), so a null Enabled counts as present while a null SSEType counts as absent. check_sse_member_types checks SSEType and KMSMasterKeyId but not Enabled. On SQLite at e1b4a52, on a table created with {"Enabled": true, "SSEType": "KMS"}, each of {"Enabled": null, "SSEType": "KMS"}, {"Enabled": null}, {"Enabled": 1, "SSEType": "KMS"}, {"Enabled": 1} and {"Enabled": [true], "SSEType": "KMS"} answers 200, and DescribeTable then has no SSEDescription. On a table with the default encryption, {"Enabled": 1, "SSEType": "AES256"} answers "Table is already encrypted by default" instead of the AES256 sentence. Has anyone sent these shapes to DynamoDB? If it reads a null Enabled as absent, as the PR reads a null SSEType, {"Enabled": null, "SSEType": "KMS"} is an enable there. One option: treat a null Enabled as absent before the implied rule, and refuse a number, list or object Enabled with the text DynamoDB gives, with a row for each.

{} is measured only on a table with the default encryption (default-empty), and test_update_table_records_sse[disabled] sends {"Enabled": False}. On a KMS table, {}, {"SSEType": null}, {"KMSMasterKeyId": null} and {"Foo": "x"} each turn encryption off here. Could you measure {} on a KMS table on DynamoDB and add it to the test_update_table_records_sse rows?

I will approve once the Enabled shapes above are measured on DynamoDB and the code and rows follow that answer.

…ynamoDB does

UpdateTable counted a null Enabled as present, so the rule that reads a
specification naming SSEType or KMSMasterKeyId as Enabled true did not
apply. It also took an Enabled of another JSON type and stored it, and the
backends then read it as false. On a KMS table, {"Enabled": null, "SSEType":
"KMS"} and {"Enabled": 1} each turned encryption off.

DynamoDB answered these on 2 Dec 2026, each body twice, on a table that
does not exist:

- {"Enabled": null, "SSEType": "AES256"} gets "SSEType AES256 is not
  supported", so a null Enabled counts as absent.
- An Enabled of 1 or 0 gets SerializationException "NUMBER_VALUE cannot be
  converted to Boolean".
- An Enabled of [true] gets SerializationException with no message, and
  one of {} gets "Start of structure or map found where not expected".

UpdateTable now counts a null Enabled as absent before that rule, and
check_sse_member_types refuses an Enabled of another type with these
texts through check_member_types. It reads an Enabled string with
read_sse_enabled before that check.

The rows hold each measured body, and the strings that #1114 reads now
also go to UpdateTable. A new test checks the SerializationException texts.
DynamoDB accepted UpdateTable with {"SSESpecification": {}} on a table
created with KMS on 18 Nov 2026. It reported UPDATING, and 45 seconds later
DescribeTable had no SSEDescription. The row kms-empty of
test_update_table_records_sse holds that answer.
cargo fmt wraps the line that reads Enabled as a boolean in UpdateTable.
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

@navareamol

The Enabled shapes: fixed in 6c08bbe. On 2 Dec 2026, DynamoDB answered UpdateTable on a table that does not exist, each body twice:

  • {"Enabled": null, "SSEType": "AES256"} gets SSEType AES256 is not supported, and {"Enabled": null, "SSEType": "KMS"} gets ResourceNotFoundException. So DynamoDB reads a null Enabled as absent, and the specification as one with Enabled true.
  • {"Enabled": 1, "SSEType": "KMS"}, {"Enabled": 1}, {"Enabled": 1, "SSEType": "AES256"} and {"Enabled": 0, "SSEType": "KMS"} get SerializationException NUMBER_VALUE cannot be converted to Boolean.
  • {"Enabled": [true], "SSEType": "KMS"} gets SerializationException with no message.
  • {"Enabled": {}, "SSEType": "KMS"} gets SerializationException Start of structure or map found where not expected.

UpdateTable now counts a null Enabled as absent before it adds "Enabled": true. check_sse_member_types refuses an Enabled of another JSON type with these texts, through check_member_types. A string reads as #1114 reads it, measured on the same day. Each body is a row in tests/test_table_enum_members.py, and the texts are in the new Rust test sse_member_type_texts. With a null Enabled counted as present, the row test fails on the null row. Without the Enabled type check, sse_member_type_texts fails.

{} on a KMS table: the row kms-empty of test_update_table_records_sse is in 83a6412. DynamoDB answered that request on 18 Nov 2026, on a table created with {"Enabled": true, "SSEType": "KMS"}: 200 with SSEDescription UPDATING, and no SSEDescription at 45 and 90 seconds. That request went out once, because it changes the table. {"SSEType": null}, {"KMSMasterKeyId": null} and {"Foo": "x"} on a KMS table need a table that exists, and this round creates none, so they are not measured. On a table that does not exist, DynamoDB answered each of them with ResourceNotFoundException on 2 Dec 2026, and {} the same on 18 Nov 2026. So each passes the read and the checks as {} does, and ExtendDB reads each as {}. Those rows are in tests/test_table_enum_members.py.

The base merges main at c8e66fb, which brings #481, #1137, #1403,
#1465, #1515 and #1411, and adds the v1.2.0 entries of #1110 and #1114
to docs/manuals/07-upgrade-manual.md. The merge has no conflict.

Git merged two files at other lines. In crates/core/src/types/table.rs,
main changes the members of a DELETING table in TableDescription, and
this branch changes the doc comment of the SSESpecification member of
UpdateTableInput. In crates/storage-mongodb/src/table_engine.rs, main
makes the creation time of a table description optional, and this
branch records the specification in update_table.
Add a v1.2.0 entry at the top of "Behavior Changes by Release" in
docs/manuals/07-upgrade-manual.md, above the entry of #1114. It gives
the 1.1.0 answers to an SSESpecification in UpdateTable, the record of
an accepted specification, and the refusals with the texts of DynamoDB.
It also says what DescribeTable reports after a rollback.
The base now holds main at c057660 (#1446). The upgrade manual
conflicted where this branch had its v1.2.0 entry. The merge takes the
manual of the base and puts the entry of this branch after the entry of
the base. Git merged crates/storage-mongodb/src/table_engine.rs, where
#1446 changes DeleteTable and this branch changes UpdateTable, at other
lines.
@navareamol

Copy link
Copy Markdown
Collaborator

{"Enabled": null} alone on a KMS table answers 200 and turns encryption off on SQLite at ee68ac8, the same as {}. It follows from reading a null as absent, and you measured a null Enabled only beside SSEType. Has anyone sent {"Enabled": null} alone to a KMS table on DynamoDB? Whatever it gives, a row for it next to kms-empty would pin the answer.

The upgrade manual does not say that {} or a null Enabled alone turns encryption off on a KMS table. That is the behaviour a reader would most want to know before upgrading, so I think one sentence belongs next to the "already encrypted by default" line.

Two wording points in the manual. It says a specification beside another change gets the "must be the only operation" sentence, but a stream change beside ProvisionedThroughput gets the stream sentence first, as the code does. And it says ExtendDB "records a KMSMasterKeyId", while DescribeTable reports key/default for every key id: a table created with alias/orig and one updated with alias/y both show it. Could you say that DescribeTable does not report the key?

CreateTable still creates a table without encryption for a null, number, list or object Enabled (see my comment on #1114), so the two operations differ until that is fixed.

The two points from my review are resolved at ee68ac8, which contains #1114 at 7feeec2 and main. A null Enabled with SSEType KMS is now an enable. A number or a list or an object Enabled answers the SerializationException with your texts and DescribeTable is unchanged, on a KMS table and on a default table. Strings follow #1114: "TRUE" and "yes" keep a KMS table encrypted, "no" disables it, "on" is refused. Removing the null rule fails ut-sse-enabled-null-aes256, and removing the Enabled type check fails sse_member_type_texts and the six number, list and object rows. For {} on a KMS table, the kms-empty row passes. It is a test only commit and the old code gave the same answer, so it guards the behaviour and would not have failed before. {"SSEType": null}, {"KMSMasterKeyId": null} and {"Foo": "x"} on a KMS table also turn encryption off here, and you have not measured them on an existing table, as you say.

I will approve once the manual says what {} and a null Enabled alone do on a KMS table and a row covers {"Enabled": null} alone.

test_update_table_records_sse gets the row kms-enabled-null: UpdateTable
with {"Enabled": null} on a table with KMS. ExtendDB reads the null as
absent, as for {}, so DescribeTable then reports no SSEDescription.

The row asserts the answer of ExtendDB. It does not run against DynamoDB,
whose answer needs a table with KMS: we did not create one to measure it.
The update goes through the client without parameter validation, because
the SDK refuses a null Enabled before it sends the request.
The UpdateTable entry now says that {"Enabled": false}, {} and
{"Enabled": null} on a table with KMS remove its SSEDescription. It gives
the measurement of the first two and says that the third has none. It
names the stream sentence that a StreamSpecification beside
ProvisionedThroughput gets ahead of the specification sentence.

The entry said that ExtendDB records a KMSMasterKeyId. It now says that
DescribeTable does not report the key: the KMSMasterKeyArn ends in
key/default for every key.
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

@navareamol

{"Enabled": null} alone on a KMS table: no, nobody sent it to DynamoDB. It needs a table with KMS that exists, and we create no table on DynamoDB. Today I sent {"Enabled": null} and {} to UpdateTable on a table that does not exist, each twice, and all four got ResourceNotFoundException. So both pass every check that runs before the table lookup. That does not show what DynamoDB does with the table.

The row is kms-enabled-null in 62d2baa, next to kms-empty in test_update_table_records_sse. It asserts the answer of ExtendDB: the null counts as absent, as for {}, and DescribeTable then reports no SSEDescription. Its comment says that this is not a service measurement, and the row does not run against DynamoDB. The update now goes through dynamodb_client_no_validation, because the SDK refuses a null Enabled before it sends the request. On SQLite and PostgreSQL servers built from the new head, the two wire files passed 123 tests. With a null Enabled alone read as Enabled true, the new row fails and kms-empty still passes.

The manual sentence: added in 34c630e, next to the "already encrypted by default" line. On a table with SSEType KMS, UpdateTable accepts {"Enabled": false}, {} and {"Enabled": null}, and DescribeTable then reports no SSEDescription. DynamoDB answered the first two that way on such a table on 18 November 2026, and the sentence says so. It also says that the answer to a null Enabled alone is not measured.

The two wording points, both in 34c630e:

  1. The "only operation" bullet now names the exception: a StreamSpecification beside ProvisionedThroughput gets You cannot modify stream status while updating table IOPS first, as it does without a specification.
  2. The entry now says that DescribeTable does not report the key. The KMSMasterKeyArn ends in key/default for every KMSMasterKeyId.

CreateTable: see my answer on #1114. #1547 tracks the number, the list and the object, and a comment on #1547 adds the null.

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

{"Enabled": null} alone on a KMS table: your answer settles my question. Nobody sent it to DynamoDB, because it needs a KMS table that exists, and the UpdateTable bodies on a missing table only show that both {"Enabled": null} and {} pass the checks before the table lookup. The row kms-enabled-null pins ExtendDB's answer and says in its comment that it is not a service measurement. On SQLite built from 34c630e, test_config_fields.py and test_table_enum_members.py passed 123 tests. With a null Enabled read as true in update_table.rs, kms-enabled-null fails while kms-empty and kms-without-enabled pass, so the row detects that change.

The manual sentence says what a reader needs: on a KMS table, UpdateTable accepts {"Enabled": false}, {} and {"Enabled": null}, DescribeTable then reports no SSEDescription, the first two match your 18 November measurement, and the answer to a null alone is not measured.

Both wording points are fixed. The "only operation" bullet names the StreamSpecification beside ProvisionedThroughput exception, which agrees with the guard in update_table.rs. The entry says DescribeTable does not report the key and shows key/default for every key, as I measured with alias/orig and alias/y.

CreateTable with a null, number, list or object Enabled: #1547 and its comment cover it, so the difference between the two operations is tracked and I do not hold this PR for it.

One optional line: the docstring of test_update_table_records_sse still says "Measured on 18 Nov 2026: DynamoDB accepts each request". The new null row is not measured, so a short "except kms-enabled-null" there would match the comment above the row.

I approve #1126 at 34c630e.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants