Skip to content

Adding support for IAP (identity-aware proxy) in the JDBC driver.#27

Open
MitchellGale wants to merge 3 commits intolookerfrom
mitchellgale/iapUpdates
Open

Adding support for IAP (identity-aware proxy) in the JDBC driver.#27
MitchellGale wants to merge 3 commits intolookerfrom
mitchellgale/iapUpdates

Conversation

@MitchellGale
Copy link
Copy Markdown

@MitchellGale MitchellGale commented Mar 20, 2026

Adding support for iap_client_id and iap_service_account_email string fields in JDBC connections to allow connection through an Identity-Aware Proxy (IAP) enabled Looker instance through the Kotlin SDK.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces support for connecting to Looker instances through an Identity-Aware Proxy (IAP) in the JDBC driver. It achieves this by adding necessary Google-related dependencies, defining new connection properties for IAP client ID and service account email, and modifying the HTTP request handling to include IAP tokens for proxy authorization.

Highlights

  • Dependency Updates: New dependencies were added to build.gradle.kts to support Google HTTP client, Gson, IAM credentials, and Google Auth library, essential for IAP integration.
  • New Connection Properties: Two new connection properties, iap_client_id and iap_service_account_email, were introduced in BuiltInConnectionProperty.java to configure Identity-Aware Proxy (IAP).
  • IAP Token Handling: The LookerRemoteMeta class was updated to fetch an IAP token and include it as a Proxy-Authorization header in HTTP requests.
  • SDK Factory Configuration: LookerSdkFactory was modified to process and pass the new IAP connection properties to the underlying API configuration and refactored the property serialization logic.
  • Test File Addition: An empty test file, LookerSdkFactoryTest.java, was added, likely as a placeholder for future IAP-related tests.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for Identity-Aware Proxy (IAP) in the JDBC driver, which is a valuable enhancement. The changes introduce new dependencies, connection properties, and logic to handle IAP authentication. The implementation is mostly solid, but I've identified a few areas for improvement. Specifically, there are some redundant dependencies in the Gradle build file that should be cleaned up, a duplicated block of code that needs to be removed, and an empty test file that should be populated with tests for the new functionality.

@MitchellGale
Copy link
Copy Markdown
Author

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for Identity-Aware Proxy (IAP) in the JDBC driver, allowing connections to IAP-enabled Looker instances. Key changes include adding new connection properties for IAP client ID and service account email, updating the LookerRemoteMeta to include the Proxy-Authorization header, and modifying the LookerSdkFactory to pass IAP-related properties to the Looker SDK. A new test case has also been added to verify the SDK's initialization with IAP properties. Overall, the changes are well-aligned with the stated objective. However, there is a potential issue in how connection properties are handled in LookerSdkFactory that could lead to unintended behavior.

@MitchellGale MitchellGale force-pushed the mitchellgale/iapUpdates branch from bf0d455 to cfb85db Compare March 20, 2026 18:48
Copy link
Copy Markdown

@olivrlee olivrlee left a comment

Choose a reason for hiding this comment

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

Overall looks good, could you address the CI build errors? Looks like it failed to compile `Execution failed for task ':core:compileJava'

@MitchellGale
Copy link
Copy Markdown
Author

Overall looks good, could you address the CI build errors? Looks like it failed to compile `Execution failed for task ':core:compileJava'

Thanks! I need to provide the new Kotlin SDK build after this PR is merged/released looker-open-source/sdk-codegen#1672

I have a dependency there so this won't be able to be able to pass/be merged until after that. But testing locally with a local build it worked as expected.

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.

2 participants