Repository navigation
[Feature]Add support for discovery URL - #336
Merged
mgyucht merged 10 commits intoAug 30, 2024
Merged
Conversation
samikshya-db
marked this pull request as ready for review
August 28, 2024 04:27
jayantsing-db
self-requested a review
August 28, 2024 07:35
jayantsing-db
requested review from
jayantsing-db
and removed request for
jayantsing-db
August 28, 2024 07:38
mgyucht
approved these changes
Aug 29, 2024
mgyucht
left a comment
Contributor
There was a problem hiding this comment.
One small nit, otherwise, LGTM!
## Changes <!-- Summary of your changes that are easy to understand --> Add a new config in proxy hosts to provide non proxy hosts. Related system property info here: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html ## Tests <!-- How is this tested? --> Tested locally and via unit tests
## Changes <!-- Summary of your changes that are easy to understand --> We need to provide a way for clients to specify their own SSL socket factory in case they want to handle TLS connections in a different way ## Tests <!-- How is this tested? --> Unit tests and local testing
…bricksConfig.java Co-authored-by: Miles Yucht <[email protected]>
mgyucht
approved these changes
Aug 30, 2024
mgyucht
added a commit
that referenced
this pull request
Sep 4, 2024
### New Features and Improvements * Add a way to provide non proxy hosts ([#331](#331)). * Add support for discovery URL ([#336](#336)). * Provide SSLSocketFactory in HttpClient ([#333](#333)). ### Bug Fixes * DatabricksConfig: newWithWorkspaceHost should retain authType ([#338](#338)). * Handle login.html incorrect validation for private link ([#340](#340)). ### Internal Changes * Fix nightly test failure ([#339](#339)). ### API Changes: * Added `regenerateDashboard()` method for `workspaceClient.qualityMonitors()` service. * Added `com.databricks.sdk.service.catalog.RegenerateDashboardRequest` and `com.databricks.sdk.service.catalog.RegenerateDashboardResponse` classes. * Added `com.databricks.sdk.service.jobs.QueueDetails`, `com.databricks.sdk.service.jobs.QueueDetailsCodeCode`, `com.databricks.sdk.service.jobs.RunLifecycleStateV2State`, `com.databricks.sdk.service.jobs.RunStatus`, `com.databricks.sdk.service.jobs.TerminationCodeCode`, `com.databricks.sdk.service.jobs.TerminationDetails` and `com.databricks.sdk.service.jobs.TerminationTypeType` classes. * Added `status` field for `com.databricks.sdk.service.jobs.BaseRun`. * Added `status` field for `com.databricks.sdk.service.jobs.RepairHistoryItem`. * Added `status` field for `com.databricks.sdk.service.jobs.Run`. * Added `status` field for `com.databricks.sdk.service.jobs.RunTask`. * Added `maxProvisionedThroughput` and `minProvisionedThroughput` fields for `com.databricks.sdk.service.serving.ServedModelInput`. * Added `columnsToSync` field for `com.databricks.sdk.service.vectorsearch.DeltaSyncVectorIndexSpecRequest`. * Changed `workloadSize` field for `com.databricks.sdk.service.serving.ServedModelInput` to no longer be required. OpenAPI SHA: d05898328669a3f8ab0c2ecee37db2673d3ea3f7, Date: 2024-09-04
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Sep 4, 2024
### New Features and Improvements * Add a way to provide non proxy hosts ([#331](#331)). * Add support for discovery URL ([#336](#336)). * Provide SSLSocketFactory in HttpClient ([#333](#333)). ### Bug Fixes * DatabricksConfig: newWithWorkspaceHost should retain authType ([#338](#338)). * Handle login.html incorrect validation for private link ([#340](#340)). ### Internal Changes * Fix nightly test failure ([#339](#339)). ### API Changes: * Added `regenerateDashboard()` method for `workspaceClient.qualityMonitors()` service. * Added `com.databricks.sdk.service.catalog.RegenerateDashboardRequest` and `com.databricks.sdk.service.catalog.RegenerateDashboardResponse` classes. * Added `com.databricks.sdk.service.jobs.QueueDetails`, `com.databricks.sdk.service.jobs.QueueDetailsCodeCode`, `com.databricks.sdk.service.jobs.RunLifecycleStateV2State`, `com.databricks.sdk.service.jobs.RunStatus`, `com.databricks.sdk.service.jobs.TerminationCodeCode`, `com.databricks.sdk.service.jobs.TerminationDetails` and `com.databricks.sdk.service.jobs.TerminationTypeType` classes. * Added `status` field for `com.databricks.sdk.service.jobs.BaseRun`. * Added `status` field for `com.databricks.sdk.service.jobs.RepairHistoryItem`. * Added `status` field for `com.databricks.sdk.service.jobs.Run`. * Added `status` field for `com.databricks.sdk.service.jobs.RunTask`. * Added `maxProvisionedThroughput` and `minProvisionedThroughput` fields for `com.databricks.sdk.service.serving.ServedModelInput`. * Added `columnsToSync` field for `com.databricks.sdk.service.vectorsearch.DeltaSyncVectorIndexSpecRequest`. * Changed `workloadSize` field for `com.databricks.sdk.service.serving.ServedModelInput` to no longer be required. OpenAPI SHA: d05898328669a3f8ab0c2ecee37db2673d3ea3f7, Date: 2024-09-04
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Sep 17, 2025
…lsStrategy (#505) ## What changes are proposed in this pull request? - **WHAT** : Discovery URL is currently being honored only in the M2M flow. This PR makes changes to honor it for U2M and other flows as well. Discovery URL was added by me last year in SDK for M2M flow [Link](#336) - ~~I have also added a fallback to defaultOIDC flow to make this backward compatible too.~~ skipped the fallback in this PR, will raise in a followup if I get approval from the SDK team - **WHY** : A major customer ask is to extend discovery URL for U2M flow as well. ## How is this tested? Tested that discovery URL is being honored in U2M as well. Tested this using the OSS JDBC with the following URL 1. Success flow test : ``` String jdbcUrl = "jdbc:databricks://e2-dogfood.staging.cloud.databricks.com:443/default;transportMode=http;ssl=1;httpPath=/sql/1.0/warehouses/dd43ee29fedd958d;" + "AuthMech=11;Auth_Flow=2;LogLevel=6;UseThriftClient=0;EnableTokenCache=0;OIDCDiscoveryEndpoint=https://e2-dogfood.staging.cloud.databricks.com/oidc/.well-known/oauth-authorization-server"; ``` 2. Failure flow test : ``` String jdbcUrl = "jdbc:databricks://e2-dogfood.staging.cloud.databricks.com:443/default;transportMode=http;ssl=1;httpPath=/sql/1.0/warehouses/dd43ee29fedd958d;" + "AuthMech=11;Auth_Flow=2;LogLevel=6;UseThriftClient=0;EnableTokenCache=0;OIDCDiscoveryEndpoint=https://google.com"; ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Tests