Skip to content

[PECO-1779] Add SSL Truststore URL params to allow configuring custom SSL truststore - #458

Closed
vikrantpuppala wants to merge 2 commits into
mainfrom
ssltruststore
Closed

vikrantpuppala wants to merge 2 commits into
mainfrom
ssltruststore

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Collaborator

Description

Added SSL Trust Store params to JDBC

Testing

Local testing using Mubashir's setup

Additional Notes to the Reviewer

@vikrantpuppala vikrantpuppala changed the title add ssl trust store params [PECO-1779] Add SSL Truststore URL params to allow configuring custom SSL truststore Sep 10, 2024

@gopalldb gopalldb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for adding this!

try {
PoolingHttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(
getConnectionSocketFactoryRegistry(this.connectionContext));
connManager.setMaxTotal(100);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do we need to keep this configurable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

SDK has this always fixed to 100. So should not change existing behaviour. However, feel free to let me know if you think we should make this configurable

}
}

public static Registry<ConnectionSocketFactory> getConnectionSocketFactoryRegistry(IDatabricksConnectionContext connectionContext) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can we add tests for this?

@madhav-db
madhav-db self-requested a review September 11, 2024 05:01
@madhav-db

madhav-db commented Sep 11, 2024 •

Copy link
Copy Markdown
Contributor

Quick question: I believe this will work for the SEA flow, correct? Are we planning to implement SSL Truststore (and later perhaps Keystore) support for the thrift flow too?

@vikrantpuppala

Copy link
Copy Markdown
Collaborator Author

@madhav-db this is for both SEA and thrift flow. Here it gets enabled for SEA flow and here for the thrift flow.

@vikrantpuppala

Copy link
Copy Markdown
Collaborator Author

Moved to #490 due to push restrictions on main fork

@samikshya-db
samikshya-db deleted the ssltruststore branch February 19, 2025 11:31

This branch had an error being deployed

1 failed deployment
azure-prod — adfdadf5 Deployed Sep 10, 2024 by vikrantpuppala
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.

3 participants