Skip to content

Adds SSLTrustStoreProvider support to Databricks JDBC#875

Merged
madhav-db merged 6 commits into
databricks:mainfrom
madhav-db:ts-provider-reraise
Jul 7, 2025
Merged

Adds SSLTrustStoreProvider support to Databricks JDBC#875
madhav-db merged 6 commits into
databricks:mainfrom
madhav-db:ts-provider-reraise

Conversation

@madhav-db
Copy link
Copy Markdown
Collaborator

Description

Adds SSLTrustStoreProvider support to Databricks JDBC

Testing

Unit test

Additional Notes to the Reviewer

@madhav-db madhav-db requested a review from gopalldb July 2, 2025 06:50
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 2, 2025

📊 Code Coverage Report

Overall Project 86.13% -0.09% 🟢
Files changed 36.76% 🔴

File Coverage
DatabricksConnectionContext.java 88.99% -0.28% 🔴
ConfiguratorUtils.java 72.9% -5.21% 🔴

madhav-db added 3 commits July 2, 2025 12:25
- Added support for SSL client certificate authentication via the new parameter: SSLTrustStoreProvider.
- Introduced a test case for SSL trust store parameters to validate default settings in the DatabricksConnectionContext.

Signed-off-by: [Your Name] <your.email@databricks.com>
…ontextTest

- Introduced a new test case to validate the handling of SSL trust store parameters, including SSLTrustStore, SSLTrustStorePwd, SSLTrustStoreType, and SSLTrustStoreProvider.

Signed-off-by: [Your Name] <your.email@databricks.com>
Comment thread src/main/java/com/databricks/jdbc/api/impl/DatabricksConnectionContext.java Outdated
LOGGER.error(errorMessage);
StringBuilder errorMessage =
new StringBuilder()
.append("Failed to load trust store: ")
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.

You can use String.format here, e.g. String.format("bla bla bla %s bla %s", value1, value2);

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.

Done

@gopalldb gopalldb requested a review from vikrantpuppala July 2, 2025 08:53
@madhav-db madhav-db requested a review from gopalldb July 7, 2025 05:13
@madhav-db madhav-db merged commit f849075 into databricks:main Jul 7, 2025
9 of 12 checks passed
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