Skip to content

Conversation

@talatuyarer
Copy link
Contributor

This will close this bug: #550

cc @flyrain

Copy link
Contributor

@adnanhemani adnanhemani left a comment

Choose a reason for hiding this comment

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

Looks great, @talatuyarer!! Thank you for this :) One small nit - not a requirement before merging (we can refactor after), but if you are making any changes, would be nice to take care of this in the same go.

.generateAccessToken(
Mockito.argThat(
request ->
request.getName().equals("projects/-/serviceAccounts/" + serviceAccount)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Would recommend moving these variables out to the main class as public variables and then referencing them here from there so that we don't have magic variables and it will be cleaner to maintain if there are any changes in the future!

Copy link
Contributor

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, @talatuyarer !

* is configured, it impersonates that account first.
*/
private GoogleCredentials getBaseCredentials() {
if (config().getGcpServiceAccount() != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting that this config value was defined before, but not used 🤔

Does anyone have insight into why it was this way?

Technically, now that GcpServiceAccount config values start affecting Polaris behaviour, this could be a breaking change in existing deployments that may have (possibly accidental and/or incorrect) values in that config property.

I do believe that such a situation is unlikely, so it should be fine to proceed with this PR. However, it probably deserves mentioning as a Change in CHANGELOG.md

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is in the CLI doc for a while, https://polaris.apache.org/in-dev/unreleased/command-line-interface/#catalogs

      --service-account  (Only for GCS) The service account to use when connecting to GCS

Agreed with @dimas-b, not particularly a big concern, but +1 on adding this to the CHANGELOG.md.

Copy link
Contributor

@flyrain flyrain left a comment

Choose a reason for hiding this comment

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

Thanks a lot for working on it, @talatuyarer! Looks great to me overall. I think it's ready once we add an item in changelog.

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Dec 11, 2025
Copy link
Contributor

@adnanhemani adnanhemani left a comment

Choose a reason for hiding this comment

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

LGTM!

@flyrain flyrain merged commit fe5b2e5 into apache:main Dec 11, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Dec 11, 2025
@flyrain
Copy link
Contributor

flyrain commented Dec 11, 2025

Thanks a lot for adding this, @talatuyarer! Thanks @dimas-b @adnanhemani for the review!

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.

4 participants