Repository navigation
feat(pdm): use one DynamoDB table per algorithm - #136
Merged
Merged
Conversation
This was referenced Nov 24, 2026
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
prdai
force-pushed
the
feat/algorithm-seed-table
branch
from
November 26, 2026 01:38
d66decf to
fdfcf50
Compare
prdai
marked this pull request as ready for review
November 26, 2026 02:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what changed
<prefix>-<algorithmId>. Prefixes arerads-personal-dataandsecure-rads-personal-data, exposed as thePdmTablePrefixstack output.PdmTableKeyArnon the registry algorithm table, separate from the PCR-bound enclave key.recordsandcount) resolve the table from the validated algorithm id. The Makefile and benchmark use the prefix for seeding./count, so the pre-rebase execution-service table params, IAM grants, and table-derived count call are dropped.kms:Decryptscoped bykms:ViaService=dynamodb, required to read CMK-encrypted tables. Execution-service does not touch PDM tables.InternalServerErrorin the batch writer.PersonalDataTablefrom both PDM stacks. Deploying deletes the existing shared tables.why
Per-algorithm tables make isolation, IAM scope, encryption keys, TTL, backup/restore, and deletion native DynamoDB boundaries instead of per-item conventions. See #130.
verification
bun run typecheckandbun run lintpass inseeding, bothpdm-servicetrees, and bothexecution-servicetrees.serverless packagesucceeds for both PDM stacks after the rebase; the secure template keeps the mTLS count API from feat(pdm): serve size checks from an mTLS count endpoint #139.uvx ruff==0.17.4 check .anduvx ruff==0.17.4 format --check .pass inbenchmark.PdmTableKeyArnstored per algorithm.exit:0, zero DynamoDB throttles.notes
mainafter feat(pdm): serve size checks from an mTLS count endpoint #139 merged. The count endpoint from feat(pdm): serve size checks from an mTLS count endpoint #139 now uses the per-algorithm table, and the execution-service PDM table access is gone.PutItemdropsPdmTableKeyArnon rebuild. Harmless unless a table is deleted and recreated afterward.rads-execution-service-devstack was patched directly after CloudFormation kept rejecting the executor role policy; future deploys should reconcile it.