Skip to content

test(showcase): Add gRPC PQC Showcase integration tests - #13969

Open
lqiu96 wants to merge 1 commit into
mainfrom
pqc-grpc-poc-1.83.0
Open

test(showcase): Add gRPC PQC Showcase integration tests#13969
lqiu96 wants to merge 1 commit into
mainfrom
pqc-grpc-poc-1.83.0

Conversation

@lqiu96

@lqiu96 lqiu96 commented Jul 31, 2026

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates dependency versions for gRPC, Gson, and Error Prone across several pom.xml files. It also introduces a new integration test, testGrpcPqc_withTls, in ITPostQuantumCryptography.java to verify Post-Quantum Cryptography (PQC) TLS negotiation for gRPC clients. Feedback on the changes highlights a potential data race and visibility issue in the custom gRPC client interceptor used in the test, where capturedMetadata is mutated on the gRPC transport thread and read on the main test thread without synchronization. A suggestion is provided to make the field volatile and safely publish a copy of the metadata.

@lqiu96
lqiu96 force-pushed the pqc-grpc-poc-1.83.0 branch 3 times, most recently from c276c35 to 16c429d Compare July 31, 2026 18:11
@lqiu96
lqiu96 marked this pull request as ready for review August 25, 2026 19:54
@lqiu96
lqiu96 requested review from a team as code owners August 25, 2026 19:54
@lqiu96
lqiu96 force-pushed the pqc-grpc-poc-1.83.0 branch from 5e1cce9 to 7a7f7ad Compare August 25, 2026 21:19
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@blakeli0

Copy link
Copy Markdown
Contributor

The test is failing due to the error below

ITPostQuantumCryptography.testGrpcPqc_withTls:336 expected: X25519MLKEM768
but was : X25519

Is this expected?

@lqiu96

lqiu96 commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

The test is failing due to the error below

ITPostQuantumCryptography.testGrpcPqc_withTls:336 expected: X25519MLKEM768
but was : X25519

Is this expected?

taking a look. This shouldn't be the case

@lqiu96
lqiu96 force-pushed the pqc-grpc-poc-1.83.0 branch from 7a7f7ad to 860a865 Compare August 26, 2026 15:03
- Add testGrpcPqc_withTls Showcase TLS integration test in ITPostQuantumCryptography.java using built-in default gRPC transport, configured to trust the Showcase TLS server certificate directly.
- Include concise Javadoc documenting gRPC built-in PQC behavior and explaining the purpose of GrpcTlsCapturingClientInterceptor and HTTP/2 metadata helper methods.
- Declare capturedMetadata volatile and assign a merged copy in onHeaders for thread-safe metadata publication.
- Assert negotiated group is equal to EXPECTED_PQC_GROUP for gRPC without asserting a supported groups list.
- Leave all HTTP/JSON tests and setUp() 100% untouched.
- Exclude all mTLS test resources, keys, certs, and mTLS logic.
@lqiu96
lqiu96 force-pushed the pqc-grpc-poc-1.83.0 branch from 860a865 to 2f97a2b Compare August 26, 2026 15:36
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