Skip to content

tests(integration): cases for TLS 1.3 group selection#5652

Merged
jmayclin merged 3 commits intoaws:mainfrom
jmayclin:2025-12-03-strong-preferred-test
Dec 5, 2025
Merged

tests(integration): cases for TLS 1.3 group selection#5652
jmayclin merged 3 commits intoaws:mainfrom
jmayclin:2025-12-03-strong-preferred-test

Conversation

@jmayclin
Copy link
Copy Markdown
Contributor

@jmayclin jmayclin commented Dec 5, 2025

Goal

Add a test for group selection logic

Why

We just added another lever for s2n-tls group selection logic. Our existing unit/integration tests are quite verbose and difficult to read, so there is benefit in being able to have some concise tests that show exactly what the s2n-tls behavior is, and which demonstrate that without relying on any internal APIs.

How

We use brass-aphid-wire to access a very neat "TLS Transcript" of the handshake, which lets us look at the key shares/selected groups without actually querying the underlying TLS connections

Testing

This is a test 🙂

I did make sure that the test failed when I changed the assertions.

Related

strongly preferred groups: #5648
brass-aphid-wire integration: #5634

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Dec 5, 2025
@jmayclin jmayclin marked this pull request as ready for review December 5, 2025 01:02
pair.shutdown().unwrap();

let decrypted_stream = pair.io.decrypter.borrow();
let transcript = decrypted_stream.as_ref().unwrap().transcript();
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.

Love this! Being able to decrypt and inspect the full transcript directly makes these tests precise and easy to reason about.

@jmayclin jmayclin added this pull request to the merge queue Dec 5, 2025
Merged via the queue into aws:main with commit 2a8313f Dec 5, 2025
53 checks passed
@jmayclin jmayclin deleted the 2025-12-03-strong-preferred-test branch December 5, 2025 23:42
kaukabrizvi pushed a commit to kaukabrizvi/s2n-tls that referenced this pull request Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants