Repository navigation
fix: enforce the table quota, the provisioned-capacity maxima and max_policy_document_bytes - #831
LeeroyHannigan wants to merge 33 commits into
Conversation
Pure checks for max_tables_per_account, per_table_max_rcu/wcu and per_account_max_rcu/wcu, with the LimitExceededException sentences the service returns for a provisioned value over a maximum.
CreateTable counts the account's tables and refuses one over max_tables_per_account, and CreateTable and UpdateTable refuse a provisioned throughput over the per-table or account maximum with LimitExceededException. A name the account already holds is still refused as taken first.
The size limit of a policy document was the literal 6,144 in PolicyDocument::from_json, so the max_policy_document_bytes key changed nothing. The key is now the limit on both paths. - Write: from_json_for_write now takes the limit as an argument. The management API's policy and permissions boundary handlers and the console's policy page pass the key to it. - Read: the authorization cache parses a stored identity policy, permissions boundary or session policy with the key. A stored policy over it does not parse, and authorization answers AccessDenied. from_json keeps the default of 6,144 bytes, now the named constant DEFAULT_MAX_POLICY_DOCUMENT_BYTES. The security model manual names the key.
from_json_for_write now takes the limit as a second argument, and the fuzz target called it with one. The target now drives from_json_with_size_limit and from_json_for_write with DEFAULT_MAX_POLICY_DOCUMENT_BYTES, the two calls the server makes, and its header names them.
crates/auth/src/policy/document.rs keeps the reference and Arn value checks of from_json_for_write from main and its size limit argument from this branch. In that file, the reference check now gets the same limit. DEFAULT_MAX_POLICY_DOCUMENT_BYTES from this branch replaces the MAX_POLICY_BYTES constant from main, which holds the same 6,144 bytes. crates/core/src/validation/mod.rs keeps the restorable_item module from main and the provisioned_limits module from this branch. crates/server/src/authz_cache.rs keeps the policy owner that main adds to each parse error and the size limit that this branch passes to each policy loader. crates/server/src/console/mod.rs keeps the secure_cookies field from main and the max_policy_document_bytes field from this branch. crates/server/src/lib.rs sets both fields when it builds the console state: secure_cookies from main and max_policy_document_bytes from this branch.
…in added Main added tests that call PolicyDocument::from_json_for_write with one argument, in the reference, Arn value and trust policy test files. It also added a console test that builds a ConsoleState without the new field. This branch gives from_json_for_write a second argument, the configured max_policy_document_bytes, and adds that field to ConsoleState. The tests now pass DEFAULT_MAX_POLICY_DOCUMENT_BYTES, as the tests this branch changed before do, and the console test sets the field to the same default.
… index Main gave GsiDescription two fields, warm_throughput and warm_throughput_record, for the WarmThroughput feature. The index helper of the provisioned limits tests builds a GsiDescription by name, so it now sets both to None, as the backends do.
… size limit Main added a session policy check to AssumeRole, PolicyDocument::from_json_for_session_policy, which parsed the document with the default limit of 6,144 bytes. This branch parses a stored session policy on the request path with the configured max_policy_document_bytes. With a key other than the default the two paths disagreed. AssumeRole issued a session whose policy the request path then refused to load, or refused one that the request path loads. from_json_for_session_policy now takes the limit, and AssumeRole passes the configured key from its state. AssumeRole therefore accepts a session policy when the request path loads it. A test checks that AssumeRole accepts a session policy at the configured limit and refuses one a byte over it.
handle_update_table read the table twice. The first read served the projected attribute total, the bare index update, the warm throughput and the on-demand switch checks. The second served the provisioned-capacity maxima. The capacity condition now joins the first condition. enforce_update_table runs last in that block on the same TableDescription, so the maxima still follow the other checks. The doc comment of PolicyDocument::from_json names from_json_for_session_policy as the third path that parses with the configured max_policy_document_bytes.
crates/engine/src/lib.rs keeps the streams_iterator_params module from main and the table_limits module from this branch, in name order.
… maximum provisioned_limits.rs built CapacityUnits from a ProvisionedThroughputDescription in five places, and Unit::table_max and Unit::account_max each converted a configured u64 maximum to i64. CapacityUnits::of_description now reads a stored throughput, and Unit::limit converts the maximum of either unit. The checks and their sentences do not change.
…aximum check_update_table_capacity refused a unit over the per-table maximum only when the request raised it above what the table stored. A switch to PAY_PER_REQUEST keeps the earlier figures in the stored ProvisionedThroughput. So a table that stored 500 read units could return to PROVISIONED at 300 under a per-table maximum of 100. An on-demand table now holds no units for this check, as table_capacity already counts it. The new test row expects the per-table sentence for that switch. Before this change the check accepted the request.
Four assertions in provisioned_limits_tests.rs compared only the start of a refusal. They now compare the full sentence with assert_eq!, as the measured-sentence tests above them do.
No test reached the limits through the handlers. With both enforce_create_table and enforce_update_table removed, every engine test passed. table_limits_tests.rs sends one table of rows to handle_create_table and handle_update_table, in order. The context has an in-memory SQLite catalog, a quota of 3 tables, per-table maxima of 100 and account maxima of 150. The rows are those of the manual run in the PR: - an undefined key with 101 read units, refused for the key first - the per-table and the account sentences on both operations - a GSI create over the account maximum - an accepted decrease - the quota refusal, and a taken name at the quota Each change below fails the test: - no enforce_create_table call: the 101 RCU row - no enforce_update_table call: the UpdateTable to 101 RCU row - the CreateTable limits ahead of the definition checks: the undefined key row The PartiQL test context is now visible to the whole crate, so the test reuses it.
The comment of enforce_create_table said that two concurrent requests could leave the account one table over the quota. More requests can each pass the quota with one slot left. The account can then end over it by one table fewer than the number of those requests.
enforce_create_table returned Ok for a name that the account's list holds, and left the refusal to the backend. A DeleteTable of that name between the list and the create then let the create through with no limit checked. The review of 27 Nov 2026 raced the two requests under a per-table maximum of 100. A table at 5000 read units got through in 3 of 3 runs on SQLite and 2 of 2 on PostgreSQL. The limits read now answers the taken name itself, with the ResourceInUseException that the backend gives: `Table already exists: <name>`. The answer comes before the limits, as before.
…able ImportTable created its table with no limit checked. In the review of 27 Nov 2026, an account at a quota of 5 tables imported two more at 50000 read and write units each. That left 7 tables and 100000 read units, and the account could then create no provisioned table. The import now calls enforce_create_table before it creates the table, after the checks of its path and file size. So it gets the CreateTable answers: a taken name, the capacity maxima, then the table quota. docs/dynamodb-limits.md now lists ImportTable among the operations that check the five limits. RestoreTableFromBackup still checks none of them, as #1481 tracks.
…s test No test reached a second ListTables page, so a read of the first 100 names only passed every test. the_limits_read_every_page_of_the_account_tables stores 101 tables of 1 read unit each. Then CreateTable at 2 read units gets the account sentence with 101 reserved, and at 1 read unit it creates the 102nd table. The next table gets the quota sentence for 102 tables. A read of the first page only fails the first and the last row. The two account limits tests now send their requests through one helper, send.
…zation cache a_stored_policy_over_the_configured_size_does_not_load read the user's inline policies only. With the default size in place of the key in any other loader, the server tests passed. The test now loads a stored policy through each of the six loaders that parse one. It sets the key to the policy's size, then to one byte under it. At the size each load succeeds. One byte under, each fails with the full parse failure message, which names the owner of the policy.
… startup The shared test server runs with the default key of 6,144 bytes, so no wire test could tell the key from the default. tests/test_policy_size_limit_sqlite.py serves a SQLite deployment of its own on 127.0.0.1 with the key at 400 bytes. It sends a 401-byte and a 400-byte policy to four paths. These are the management API for a user policy and for a permissions boundary, the console's policy page, and AssumeRole as a session policy. Each refuses the 401-byte policy with its full sentence and accepts the 400-byte one. Then the server restarts with the key at 300 bytes. It denies the requests of a user and of a session that hold 400-byte policies. After a restart at 400 bytes, it allows them again. The file imports the deployment class of test_allow_credential_import_sqlite.py and the console session class of test_console_cache_coherence.py.
The v1.1.0 release of 27 Nov 2026 does not hold this change, so the entry now has a v1.2.0 heading. It sits after main's v1.2.0 entries, which are newest first. The entry now names ImportTable, and it says that the per-table maximum applies to the table and to each index on its own. Two earlier refusals come before the maxima: a table that is not ACTIVE, and an index Create that names an index the table holds. RestoreTableFromBackup is the one operation left that checks none of the limits (#1481).
…ization cache The format check of CI failed on four hunks in three test files. The commits after the merge of main added them, in provisioned_limits_tests.rs, table_limits_tests.rs and authz_cache.rs. This commit applies cargo fmt to them and changes nothing else.
…t index check_table_max had one caller, the loop of check_create_table_capacity over the table and each index. Its loop over the two units now sits in that loop. The engine test built the same index gix in create_with_index and in index_create, and gix() now builds it for both. No answer changes.
#831's branch merged main and now checks a CreateTable's table and each index against the per-table maximum on their own, with the per-index sentence. crates/core/src/validation/provisioned_limits.rs takes that check from #831, so check_create_table_indexes of this branch goes. It keeps check_table_capacity_bounds and MAX_TABLE_CAPACITY_UNITS from this branch. crates/engine/src/table_limits.rs makes the one call of #831. The test helper capacity_checks of this branch passes the request to check_create_table_capacity, as #831's signature takes it.
The sum of the units of a CreateTable wrapped past 9223372036854775807. An index at 9223372036854775807 beside a table at 5 then got the per-index sentence, which is DynamoDB's answer. Other rules give that answer too. The rows that would tell them apart are CreateTable requests, and no one has sent them to DynamoDB. The sum now saturates at 9223372036854775807 again, as on #831's branch. The measured row of an index at 9223372036854775808 leaves CAPACITY_FIGURES and tests/test_capacity_figure_bounds.py. ExtendDB now answers it with the account sentence and Requested: 9223372036854775807, where DynamoDB answers the per-index sentence. the_units_of_a_create_table_are_summed_up_to_i64_max holds that row with the four figures of the review of 30 Nov 2026. With a sum that wraps, the index at 9223372036854775803 and the two indexes at 4611686018427387904 get the per-index sentence instead, as the first row does.
#831's branch inlines check_table_max into check_create_table_capacity and adds gix() to the engine limits test. The merge takes both with no conflict. check_table_capacity_bounds and MAX_TABLE_CAPACITY_UNITS of this branch stay as they were.
the_units_of_a_create_table_are_summed_up_to_i64_max wrote a CreateTable body by hand. It now builds them with provisioned_table, from #831's branch, and passes them to check_create_table_capacity like the file's other CreateTable tests. The first row names the index figure as 9223372036854775807. That is what the reader makes of 9223372036854775808, so the rows and their answers stay the same.
The Breaking changes section of this PR lists two answers that a table from an earlier release can get. RestoreTableFromBackup refuses a backup of a table with a figure above 1000000000000. UpdateTable has to bring such a figure into the bound. The upgrade manual had no entry for them. The new v1.2.0 entry follows the entry of #831. It also names the reading of a fraction and of a figure outside the 64-bit range, which 1.1.0 refused with SerializationException.
|
The branch merged main at c057660 in 3c583fb, with a merge commit and no rebase. The four files you named conflicted:
v1.1.0 shipped without this change, so b1deb7b gives the entry a 5f28cba fixes ImportTable, from your comment on
The test fails with the call taken out. |
LJMart11
left a comment
There was a problem hiding this comment.
Checked at bd27313 against the list from b2b4dc7.
The follow-up makes CreateTable check the table and each index against the per-table maximum separately, moves the table-status and taken-index-name refusals of UpdateTable ahead of the maxima, answers a taken table name from the limits read, and adds the quota and capacity checks to ImportTable. Confirmed on the head: each of those guards fails a test when removed (status check, taken-index check, the refuse_ahead_of_the_maxima call, the taken-name branch, the ImportTable call, the per-index check; one failing test each or more). The lib tests of core (1270), auth (540), engine (985) and server (528) pass under 1.94.0, and 19 SQLite pytest tests of table throughput and UpdateTable billing validation pass. The base tip equals the merge base, so no base movement was merged.
Previous items: 2 fixed.
Main is at 5826e1b, three commits past c057660: #1531, #1466 and #1087. In docs/manuals/07-upgrade-manual.md, #1531 adds a v1.2.0 entry at the top of "Behavior Changes by Release", and git merged it with no conflict. #1087 adds its v1.2.0 entry after the other v1.2.0 entries of main, where this branch has its entry. That is the one conflict. The merge keeps both entries without change: the entry of #1087 first, then the entry of this branch, before the v1.1.0 entries. No other file has changes on both sides.
|
Checked at Fixed:
Disputed: none. Needs-human: none. |
Changes since the last review
The branch is at 0d53c9e. LJMart11 reviewed bd27313 on 3 Dec 2026, and one commit comes after that review:
docs/manuals/07-upgrade-manual.md, fix(storage-cassandra): retry a lost UpdateItem version check over the PutItem and DeleteItem window #1531 adds a v1.2.0 entry at the top of "Behavior Changes by Release", and git merged it with no conflict. fix(storage-sqlite): keep each partition key in one parallel Scan segment #1087 adds its v1.2.0 entry after the other v1.2.0 entries of main, where this branch has its entry. That is the one conflict. The merge keeps both entries without change: the entry of fix(storage-sqlite): keep each partition key in one parallel Scan segment #1087 first, then the entry of this branch, above the v1.1.0 entries. No other file has changes on both sides, and the lines that this branch changes against main are the same before and after the merge. Testing done gives the gates at 0d53c9e.These commits sit on b2b4dc7, the head that the reviews of 27 Nov 2026 read, and end at bd27313:
crates/engine/src/partiql/test_context.rsbuilds its context on main'scrate::test_context::context_on.crates/engine/src/update_table.rsreads the table for main'scompanion.is_some()and for this branch'sraises_capacity.crates/server/src/authz_cache.rskeys the session loader by access key, as main does, and keeps the size limit.docs/manuals/07-upgrade-manual.mdkeeps main'sClientRequestTokenentry where main moved it.crate::test_context, so the PartiQL test helper keeps main'spub(super).CreateTableagainst the per-table maximum on their own, with the per-index sentence for an index. Before, the per-table maximum held the table and its indexes together.UpdateTableanswer a table that is notACTIVE, and an indexCreatethat names an index the table holds, before the maxima.ResourceInUseExceptionfrom the limits read. Before, the read returnedOk(())and left the name to the backend.ImportTable.max_policy_document_byteson each path that writes or loads a policy.cargo fmt.The body names
ImportTableand the per-index check, gives the counts of 0d53c9e, and lists the conflicts with open PRs at 0d53c9e.What
Six
[limits]keys that the server accepted and did not act on now take effect.max_tables_per_account:CreateTableandImportTablecount the account's tables. When the account already holds the quota, they refuse the new table withLimitExceededException:There is a soft account quota of {n} tables.per_table_max_rcu,per_table_max_wcu,per_account_max_rcuandper_account_max_wcu:CreateTable,ImportTableandUpdateTablerefuse a provisioned throughput over a maximum withLimitExceededException. The checks are incrates/core/src/validation/provisioned_limits.rs.crates/engine/src/table_limits.rsreads what the account holds.CreateTableandImportTablecheck the account maximum first, against the table and its indexes together. Then they check the table's own throughput against the per-table maximum. Then they check each index's throughput against the same maximum, with the per-index sentence:The requested <unit> for index <name>, <n>, is above the per index maximum for the account in <region>. Per table maximum: <max>.and the limits guide sentence.UpdateTablefirst gives two answers of earlier releases:ResourceInUseExceptionfor a table that is notACTIVE, andValidationExceptionfor an indexCreatethat names an index the table holds. Then it checks the table's ownProvisionedThroughputagainst the per-table maximum. Then it checks the account maximum against what the table and its indexes hold after the change.PROVISIONEDis a raise.max_policy_document_bytes: the policy size limit was the literal 6,144 inPolicyDocument::from_json. The management API's policy and permissions boundary handlers and the console's policy page now pass the key tofrom_json_for_write.AssumeRolechecks a session policy against the key, where it used 6,144 before. The authorization cache parses a stored identity policy, permissions boundary or session policy with the same key. The security model manual names the key.RestoreTableFromBackupdoes not check the table quota or the capacity maxima.docs/dynamodb-limits.mdmarks these five limits as Partial. #1481 tracksRestoreTableFromBackup, and this PR fixes itsImportTablehalf.On
CreateTablethe order is the measured one: the definition checks, then a taken name (ResourceInUseException), then the capacity limits. The table quota comes last. Its position was not measured.Two checks of the backend have a second copy here, for the order:
ResourceInUseException,Table already exists: <name>. The backend checks the name again when it creates the table. Before 221da50, aDeleteTableof that name between the read and the create let an unchecked create through (review of 27 Nov 2026).UpdateTableanswers a table that is notACTIVEand a taken index name with the backend's texts, before the maxima. The backend checks both again when it applies the change.Other effects:
CreateTableandImportTablelists the account's table names. ACreateTable,ImportTableorUpdateTablewith a provisioned throughput also describes every table in the account to sum what the account holds. The review of 27 Nov 2026 measured about 0.5 s for such a request at 2499 tables on PostgreSQL. CreateTable and UpdateTable list and describe every table of the account to check the limits, so their time grows with the table count #1562 tracks one count-and-sum query per backend.max_policy_document_bytesbelow the size of a stored policy, the policy no longer parses. Requests of its principal then getAccessDeniedException.max_tables_per_account, the per-table maxima andmax_policy_document_bytesas not enforced, and the account maxima as enforced when throttling is on. Whichever of the two merges second must update the descriptions of all six keys.docs/manuals/07-upgrade-manual.mdhas a v1.2.0 entry with the new refusals and the keys to set before an upgrade.Why
The issue lists the keys and the code that ignored them. The comment on the issue has the answers of Amazon DynamoDB, measured on 2026-10-31. This change uses those sentences where a measurement exists.
The review of 27 Nov 2026 measured these answers on tables that it created, and this round did not send them again:
CreateTableover the per-table maximum while the account stays under its maximum: the per-table sentence.CreateTableof a table at 20001 read units with an index at 20000, under a per-table maximum of 40000: created. An index at 40001: the per-index sentence.UpdateTableover a maximum on a table that is CREATING, DELETING or UPDATING:ResourceInUseException.UpdateTablethat raises the table's own throughput over the account maximum, an indexCreateover it, and a switch back toPROVISIONED: the sentences of this change.On 3 Dec 2026,
UpdateTableon a table that does not exist answeredResourceNotFoundExceptionbefore either maximum. The requests set read units one over the maximum, or sent an indexCreate. Each request went out twice.These answers are not in the measurements:
LimitExceededExceptionAPI reference.CreateTablechecks.Closes #538
Conflicts with open PRs
On 4 December 2026,
git merge-treecompared 0d53c9e and main with each of the 221 open PRs. It finds these conflicts with this PR, and main has none of them:crates/core/src/limits/mod.rs.DEFAULT_MAX_POLICY_DOCUMENT_BYTESanddefault_max_expression_operatorssit at the same line. Keep both.crates/engine/src/lib.rs,mod table_limits;againstmod table_lifecycle;. Keep both, in name order.crates/engine/src/update_table.rs, the condition that reads the table. Keep every term:raises_capacityfrom this PR anddisables_ssefrom fix(engine): read SSESpecification in UpdateTable #1126.docs/dynamodb-limits.md. Their on-demand rows sit between the rows that this PR marks as Partial. Keep both.In
docs/manuals/07-upgrade-manual.md, the v1.2.0 entry of this PR sits after main's v1.2.0 entries, above the v1.1.0 entries. 30 open PRs conflict with this PR in that file, and each of them conflicts with main there too. Open PRs that add their entries at the same place conflict there. Keep both entries.Testing done
At 0d53c9e, the merge of main, with toolchain 1.97.0:
cargo fmt --all -- --check: clean..github/workflows/clippy.ymlwith-D warnings, on the whole workspace as CI runs them: clean.cargo clippy --all-targets -- -W clippy::pedanticonextenddb-core,extenddb-auth,extenddb-engineandextenddb-server: no warning on a line that this change adds.cargo test --lib:extenddb-core1270 passed and 1 ignored,extenddb-auth540 passed,extenddb-engine985 passed.extenddb-serverhas 528 tests, and 523 passed. The fivebackup_storetests fail on this host only, as the block of bd27313 says.cargo test -p extenddb-wasm-adapter: 3 passed, and theparitycorpus test passed.cargo test -p extenddb-storage-postgres --test doc_version_literals: 3 passed.tests/test_policy_size_limit_sqlite.py, with the SQLite build of 0d53c9e, on a SQLite deployment of its own on 127.0.0.1: 1 passed.python3 -m pytest --collect-only -qoftests/(7342 tests) and oftests/python(820): no error.At bd27313, with toolchain 1.97.0 unless a line names another:
cargo fmt --all -- --check: clean..github/workflows/clippy.ymlwith-D warnings: clean. The first ran onextenddb-core,extenddb-auth,extenddb-engineandextenddb-server, and the second onextenddb-engine, whose feature it turns on.cargo clippy --all-targets -- -W clippy::pedanticon the same four crates: no warning on a line that this change adds.cargo +1.94.0 check --all-targetson the four crates: clean..github/workflows/wasm.ymlforwasm32-unknown-unknown: clean. This host has no clang, so the run used a stand-in C compiler and archiver. Clippy does not link.cargo test -p extenddb-wasm-adapter: 3 passed, and theparitycorpus test passed.cargo test --lib:extenddb-core1270 passed and 1 ignored,extenddb-auth540 passed,extenddb-engine985 passed.extenddb-serverhas 528 tests, and 523 passed. Fivebackup_storetests fail on this host only, because/local/homebelongs to uid 65534 and the spool checks refuse a directory under it. storage-sqlite: the two write_lock_tests fail when an ancestor of the Cargo target directory is owned by another user #1414 describes the same cause for twoextenddb-storage-sqlitetests. This PR does not change that file.cargo test --release --no-fail-fast -p extenddb-storage-postgres --tests, as the PostgreSQL storage job of CI runs it, againstpgvector/pgvector:pg16on 127.0.0.1: 500 passed, 2 ignored and 5 failed, in 46 test binaries. The failures are threestore_identitytests ofbackup_restore.rsand two tests ofcatalog_nul_backup_jobs.rs. Each getsPermissionDeniedfor its backup root, because/local/homeon this host belongs to uid 65534.doc_version_literalspassed 3 of 3.python3 -m pytest --collect-only -qoftests/(7305 tests) and oftests/python(820): no error.devtools/run-testsmakes:tests/test_misc_operations.py,tests/test_table_operations.py,tests/test_table_throughput_mode.pyandtests/test_update_table_billing_validation.py: 60 passed on each.tests/test_import_export.pyandtests/test_backup_restore_fidelity.py, with[import]and[export]paths andEXTENDDB_TEST_BACKUP_STORE=noneasdevtools/run-testssets them: 72 passed on each.tests/python/test_control_plane.py: 15 passed on each.tests/test_policy_size_limit_sqlite.py, on a SQLite deployment of its own: 1 passed.provisioned_limits_tests.rshas 10 tests. They compare the full sentences, and check each maximum at its value and one unit above.create_table_holds_the_table_and_each_index_to_the_default_maximainprovisioned_limits_tests.rsholds the rows of the review of 27 Nov 2026 at the default maxima. It fails with the check of the sum put back.table_limits_tests.rssendsCreateTable,ImportTableandUpdateTablerows through the handlers, on an in-memory SQLite catalog. Its tests fail on each of these controls:handle_update_tablewithout its call ofrefuse_ahead_of_the_maximaOk(())for a taken nameimport_tablewithout its call ofenforce_create_tabletable_limits_tests.rsalso failed without the call ofenforce_create_tableor ofenforce_update_table, and with theCreateTablelimits ahead of the definition checks.a_table_that_is_not_active_and_a_taken_index_name_come_ahead_of_the_maximainupdate_table_tests.rsfails with the status check taken out.the_size_limit_is_the_one_the_caller_passesinextenddb-authchecks both parse paths at the limit and one byte over it.a_stored_policy_over_the_configured_size_does_not_loadinauthz_cache.rsfails with the default size passed to any of the six loaders that parse a stored policy.tests/test_policy_size_limit_sqlite.pyfails with the default size put back at any of the six other sites:serve.rs,lib.rs,iam_policy.rs,permissions_boundary.rs,policy_pages.rsandassume_role.rs.CreateTableandUpdateTable, andmax_policy_document_bytesbefore and after a restart.table_limits_tests.rsandtests/test_policy_size_limit_sqlite.pynow hold those rows.Line counts against main, at 0d53c9e: production +784 -109, tests +1218 -12, docs +34 -7. The commits from b2b4dc7 to bd27313: production +113 -34, tests +620 -115, docs +32 -33.
Checklist
cargo test --workspace)cargo fmt --check)cargo clippy -- -W clippy::pedantic)Storagetrait, auth model, on-diskformat, 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
The server now refuses requests that it accepted before. With the defaults, it refuses a table or an index over 40,000 RCU or WCU and an account over 80,000 RCU or WCU, on
CreateTable,ImportTableandUpdateTable. It also refuses a 2,501st table. A deployment that relies on more must raise the keys. The v1.2.0 entry of the upgrade manual lists the keys.A deployment that set
max_policy_document_bytesbelow 6,144 now refuses a new policy above the key. It also denies the requests of a principal whose stored policy is above the key.PolicyDocument::from_json_for_writeandPolicyDocument::from_json_for_session_policynow take the size limit as a second argument.ConsoleState,ManagementStateandAuthzCacheConfigofextenddb-serverhave a new field,max_policy_document_bytes.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.