Skip to content

Conversation

@samuel40791765
Copy link
Contributor

Issues:

Resolves CryptoAlg-2926

Description of changes:

Xtrabackup happens to take a dependency on some of OpenSSL's BIO_ssl methods. These are essentially helper BIOs that maintain an SSL within them. We have the necessary functionality available, this is just wrapping these BIOs around them.

Call-outs:

N/A

Testing:

Ideally we would test against the "connect" BIO created within BIO_new_ssl_connect with BIO_do_connect, but this isn't quite easy since we do not have any BIO methods that set up sockets on the server end (BIO_s_accept). We have other mechanisms of doing so in our bssl tool and ocsp_integration_tests, but pulling the functionality over just to test these BIOs seemed a bit overkill for my liking. I've given my reasoning in the test comments, if we ever do support BIO_s_accept we can look to update the test.

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

@samuel40791765 samuel40791765 requested a review from a team as a code owner March 15, 2025 00:48
@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2025

Codecov Report

Attention: Patch coverage is 87.17949% with 5 lines in your changes missing coverage. Please review.

Project coverage is 79.03%. Comparing base (ea052e5) to head (dec6901).

Files with missing lines Patch % Lines
ssl/bio_ssl.cc 84.37% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2273      +/-   ##
==========================================
- Coverage   79.04%   79.03%   -0.01%     
==========================================
  Files         614      614              
  Lines      107003   107042      +39     
  Branches    15158    15161       +3     
==========================================
+ Hits        84579    84605      +26     
- Misses      21770    21784      +14     
+ Partials      654      653       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

smittals2
smittals2 previously approved these changes Mar 24, 2025
skmcgrail
skmcgrail previously approved these changes Mar 25, 2025
@samuel40791765 samuel40791765 dismissed stale reviews from skmcgrail and smittals2 via ed7279c March 25, 2025 20:59
@samuel40791765 samuel40791765 enabled auto-merge (squash) March 25, 2025 21:03
@samuel40791765 samuel40791765 merged commit bd41f9a into aws:main Mar 26, 2025
96 of 108 checks passed
@skmcgrail skmcgrail mentioned this pull request Mar 28, 2025
skmcgrail added a commit that referenced this pull request Mar 28, 2025
## What's Changed
* Revert "Allow constructed strings in BER parsing (#2015)" by
@samuel40791765 in #2278
* Add the rehash utility to the openssl CLI tool by @smittals2 in
#2258
* Documentation on service indicator by @justsmth in
#2281
* Update patches in Ruby CI by @samuel40791765 in
#2233
* Reject DSA trailing garbage in EVP layer, add test cases by @skmcgrail
in #2289
* Add support for verifying PKCS7 signed attributes by @samuel40791765
in #2264
* Add support for more SSL BIO functions by @samuel40791765 in
#2273
* Wire-up rust-openssl into GitHub CI (for the time being) by @skmcgrail
in #2291
* Adding detection of out-of-bound pre-bound memory read to AES-XTS
tests. by @nebeid in #2286
* AES: Add function pointer trampoline to avoid delocator issue by
@hanno-becker in #2294
* Bump mysql CI to 9.2.0 by @samuel40791765 in
#2161
* Cherrypick hardening DSA param checks from BoringSSL by @smittals2 in
#2293

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
samuel40791765 added a commit that referenced this pull request Apr 3, 2025
We've added support for Xtrabackup in
#2273, this ensures that the build
doesn't break.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
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.

4 participants