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

feat: support for databricks oauth #286

Merged
merged 3 commits into from
Feb 25, 2025
Merged

feat: support for databricks oauth #286

merged 3 commits into from
Feb 25, 2025

Conversation

shekhar-rudder
Copy link
Member

@shekhar-rudder shekhar-rudder commented Feb 21, 2025

Description

This PR enhances Databricks authentication by adding support for OAuth authorization alongside the existing PAT-based method.

  • Additionally, a new GitHub secret environment variable, DATABRICKS_OAUTH_TEST_ENVIRONMENT_CREDENTIALS, has been added for integration testing.

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

strings.ToLower,
integrationtest.Options{
LegacySupport: true,
SpecialCharactersInQuotedTable: "_A",
Copy link
Member

Choose a reason for hiding this comment

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

What's this use for? It's different from what is being used for with information schema suite.

Suggested change
SpecialCharactersInQuotedTable: "_A",
SpecialCharactersInQuotedTable: "_A",

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure. I copied it as it is from an existing test

@@ -49,6 +49,31 @@ func TestDatabricksDB(t *testing.T) {
)
})

t.Run("with oauth", func(t *testing.T) {
oauthConfigJSON, ok := os.LookupEnv("DATABRICKS_OAUTH_TEST_ENVIRONMENT_CREDENTIALS")
Copy link
Member

Choose a reason for hiding this comment

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

Are these credentials store somewhere in notion? DATABRICKS_OAUTH_TEST_ENVIRONMENT_CREDENTIALS

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I had created it yesterday for the POC. Added the same in Github.

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.57%. Comparing base (1ba5420) to head (c64eba0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
+ Coverage   85.56%   85.57%   +0.01%     
==========================================
  Files          88       88              
  Lines        4579     4583       +4     
==========================================
+ Hits         3918     3922       +4     
  Misses        502      502              
  Partials      159      159              

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

@atzoum atzoum merged commit 4df34db into main Feb 25, 2025
22 checks passed
@atzoum atzoum deleted the war-335-databricks-oauth branch February 25, 2025 07:46
shekhar-rudder pushed a commit that referenced this pull request Feb 27, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.18.0](v1.17.0...v1.18.0)
(2025-02-25)


### Features

* support for databricks oauth
([#286](#286))
([4df34db](4df34db))


### Miscellaneous

* **deps:** bump github.com/aws/aws-sdk-go-v2/config from 1.29.4 to
1.29.7 ([#287](#287))
([5c3cbb3](5c3cbb3))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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