Skip to content

Unit Testing for Large TLS Configs and Quic Crypto Buffer#1402

Draft
arrestle wants to merge 4 commits intoansible:develfrom
arrestle:AAP-51326-1-crypto-buffer-exceeded-breaking-unittest
Draft

Unit Testing for Large TLS Configs and Quic Crypto Buffer#1402
arrestle wants to merge 4 commits intoansible:develfrom
arrestle:AAP-51326-1-crypto-buffer-exceeded-breaking-unittest

Conversation

@arrestle
Copy link
Copy Markdown
Contributor

@arrestle arrestle commented Aug 8, 2025

AAP-51326: Add failing test for CRYPTO_BUFFER_EXCEEDED issue

Problem

Receptor throws CRYPTO_BUFFER_EXCEEDED errors when using oversized CA certificate bundles:

This PR

Adds a failing unit test that demonstrates the vulnerability:

  • Creates oversized CA bundle (32KB)
  • Attempts QUIC connection with Netceptor
  • Fails as expected - shows current code allows oversized bundles without validation
  • Ready for fix implementation that will make this test pass

TEST FAILURE (EXPECTED): CA bundle size (32287 bytes) exceeds QUIC 16KB crypto buffer limit
This oversized CA bundle was allowed to be loaded without validation
Customer Impact: This would cause CRYPTO_BUFFER_EXCEEDED errors during QUIC handshake
Fix Required: Add certificate size validation before loading CA bundles

Test Output

Files Changed: 1 file, 308 lines added
Type: Test-only PR (no production code changes)
Next Step: Implement fix to validate CA bundle sizes before loading

@arrestle arrestle force-pushed the AAP-51326-1-crypto-buffer-exceeded-breaking-unittest branch from cf2176e to 5dd1692 Compare August 9, 2025 19:43
Co-authored-by: Lisa Ranjbar <lranjbar@redhat.com>
@arrestle arrestle changed the title Add failing test for AAP-51326 CRYPTO_BUFFER_EXCEEDED issue Unit Testing for Large TLS Configs and Quic Crypto Buffer Aug 11, 2025
Copy link
Copy Markdown
Contributor

@davemulford davemulford left a comment

Choose a reason for hiding this comment

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

Requesting that all emoji are removed from the log messages because not all terminals are going to be able to display them.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@davemulford davemulford left a comment

Choose a reason for hiding this comment

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

Looks great!

@arrestle arrestle marked this pull request as draft August 18, 2025 18:41
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