Skip to content

Conversation

@emmyzhou-db
Copy link
Contributor

@emmyzhou-db emmyzhou-db commented May 7, 2025

What changes are proposed in this pull request?

This PR adds support for GitHub OIDC (OpenID Connect) authentication in the Databricks SDK Java.

Key Changes

  • Added GithubIDTokenSource to retrieve JWT tokens from GitHub Actions environment
  • Introduced new TokenSourceCredentialsProvider as a generic provider for token-based authentication flows
  • Updated DefaultCredentialsProvider to support GitHub OIDC and restructured it to facilitate adding other identity providers
  • Added an example demonstrating GitHub OIDC authentication with GitHub Actions

How is this tested?

  • Added unit tests for GithubIDTokenSource and TokenSourceCredentialsProvider
  • Manually validated the authentication flow in a GitHub Actions workflow using the provided example

NO_CHANGELOG=true

@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 7, 2025 16:02 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 7, 2025 16:02 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 8, 2025 10:58 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 8, 2025 10:58 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 8, 2025 11:44 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 8, 2025 11:44 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 9, 2025 13:27 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 9, 2025 13:27 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db changed the title Add GithubIDTokenSource and TokenSourceCredentialsProvider Add GitHub OIDC authentication support May 9, 2025
Copy link
Contributor

@renaudhartert-db renaudhartert-db left a comment

Choose a reason for hiding this comment

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

LGTM overall, deferring approval to @parthban-db

@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 12, 2025 14:26 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db temporarily deployed to test-trigger-is May 12, 2025 14:26 — with GitHub Actions Inactive
@emmyzhou-db emmyzhou-db requested a review from parthban-db May 12, 2025 14:55
…ultCredentialsProvider.java

Co-authored-by: Renaud Hartert <renaud.hartert@databricks.com>
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 444
  • Commit SHA: e1816201ba9f669d8ae086362c7adcb40cd88b53

Checks will be approved automatically on success.

@parthban-db parthban-db added this pull request to the merge queue May 13, 2025
Merged via the queue into main with commit c092a76 May 13, 2025
15 checks passed
@parthban-db parthban-db deleted the emmyzhou-db/github-oidc branch May 13, 2025 09:32
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.

5 participants