Skip to content

chore(test): DB-ESDK cross-language test-server language adapters - #2374

Merged
hanabanaka merged 8 commits into
mainfrom
huaye/dbesdk-test-server
Sep 21, 2026
Merged

hanabanaka merged 8 commits into
mainfrom
huaye/dbesdk-test-server

Conversation

@hanabanaka

Copy link
Copy Markdown
Contributor

DB-ESDK cross-language test-server language adapters (java-v3, rust-v1, net-v4).

Companion to aws-crypto-tools-commons#16 (the test server, orchestrator, and test cases).

@hanabanaka
hanabanaka requested a review from a team as a code owner September 14, 2026 23:43
@hanabanaka
hanabanaka force-pushed the huaye/dbesdk-test-server branch 2 times, most recently from 90accbc to ebd17cc Compare September 15, 2026 18:54
Adds the java-v3, rust-v1, and net-v4 DB-ESDK Test Server language adapters:
the item-encryptor and transforms wire operations over rpcv2Cbor, the
server-wrapper tests ported to the DB-ESDK item API, a declarative
branchKeyIdSupplier wired into the hierarchical keyring, the raw-RSA feature
declaration, and the java-v3 known-bug declarations for the deep-nesting
request-validator overflow and the missing 4096-char expression-length guard in
the pinned published 3.8.1.

@lucasmcdonald3 lucasmcdonald3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's also run the test server CI from this repo

…sable workflow

Add a thin caller that uses aws-crypto-tools-commons' reusable
dbesdk-test-server.yml (workflow_call) and passes this repo's commit as dbe_ref,
so a change to the language adapters here triggers the cross-language run against
this PR's servers. The full CI definition is not re-declared. Requires the
commons reusable workflow on the referenced ref and the KMS OIDC role trusting
this repo.
…emporary)

The reusable workflow does not exist on aws-crypto-tools-commons main yet
(it is on the unmerged #16 branch), so the @main reference failed the run
at startup. Point the uses: ref and commons_ref at huaye/dbesdk-test-server-main
so this CI runs now. Revert both to main before merging.
lucasmcdonald3
lucasmcdonald3 previously approved these changes Sep 18, 2026
@@ -0,0 +1 @@
a82094c6ad32f64db21d6231e74231d55e61016c No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We shouldn't commit this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed and added to gitignore

Comment thread test-server/net-v4-server/Program.cs Outdated
// a GenericServerError, per the operation wrapper.
status = StatusCodes.Status400BadRequest;
payload = EncodeError(ServerException.Generic(
$"malformed rpcv2Cbor request: {unexpected.Message}"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

malformed rpcv2Cbor request is only one possible failure,
this error message should be more generic,
since this is a catch-all block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Generalized

…lize the net catch-all error message

Untrack test-server/net-v4-server/.dbesdk-build-stamp (a per-server build
marker) and add a .gitignore rule so it is not committed again. Make the
net server's catch-all handler report a generic 'unexpected server error'
instead of naming malformed rpcv2Cbor, since it catches any framework failure.
@kessplas kessplas changed the title feat(dbesdk): DB-ESDK cross-language test-server language adapters chore(test): DB-ESDK cross-language test-server language adapters Sep 21, 2026

@kessplas kessplas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hanabanaka
hanabanaka merged commit 52f9d55 into main Sep 21, 2026
71 checks passed
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.

3 participants