Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TDS-specific SSL handshake handling #3261

Conversation

roshan0708
Copy link
Contributor

@roshan0708 roshan0708 commented Dec 16, 2024

Description

This commit adds the TdsDirectSSLHandshake function to handle SSL handshakes specifically for TDS connections. The ProtocolExtensionConfig structure has been updated with a new fn_direct_ssl_handshake function pointer, allowing protocol-specific SSL handling. This change ensures that TDS connections bypass the standard SSL handshake by returning STATUS_OK without invoking ProcessSSLStartup.

Engine PR: babelfish-for-postgresql/postgresql_modified_for_babelfish#501

Issues Resolved

BABEL-5342

Test Scenarios Covered

  • Use case based -

  • Boundary conditions -

  • Arbitrary inputs -

  • Negative test cases -

  • Minor version upgrade tests -

  • Major version upgrade tests -

  • Performance tests -

  • Tooling impact -

  • Client tests -

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This commit adds the TdsSSLHandshake function to handle SSL handshakes
specifically for TDS connections. The ProtocolExtensionConfig structure
has been updated with a new fn_ssl_handshake function pointer, allowing
protocol-specific SSL handling. This change ensures that TDS connections
bypass the standard SSL handshake by returning STATUS_OK without
invoking ProcessSSLStartup.

Task: BABEL-5342
Signed-off-by: Roshan Kanwar <[email protected]>
@coveralls
Copy link
Collaborator

coveralls commented Dec 16, 2024

Pull Request Test Coverage Report for Build 12389020093

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 74.815%

Totals Coverage Status
Change from base Build 12387127657: 0.001%
Covered Lines: 46470
Relevant Lines: 62113

💛 - Coveralls

@shardgupta shardgupta merged commit 93b91d1 into babelfish-for-postgresql:BABEL_5_X_DEV Dec 18, 2024
44 checks passed
@shardgupta shardgupta deleted the JIRA-BABEL-5342 branch December 18, 2024 11:35
pranavJ23 pushed a commit to pranavJ23/babelfish_extensions that referenced this pull request Jan 6, 2025
This commit adds the TdsSSLHandshake function to handle SSL handshakes
specifically for TDS connections. The ProtocolExtensionConfig structure
has been updated with a new fn_ssl_handshake function pointer, allowing
protocol-specific SSL handling. This change ensures that TDS connections
bypass the standard SSL handshake by returning STATUS_OK without
invoking ProcessSSLStartup.

Task: BABEL-5342

Signed-off-by: Roshan Kanwar <[email protected]>
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