You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "davidchaava (via GitHub)" <gi...@apache.org> on 2026/07/28 15:19:22 UTC

[PR] Add GCP external catalog authentication support to the CLI [polaris]

davidchaava opened a new pull request, #5178:
URL: https://github.com/apache/polaris/pull/5178

   ## Summary
   
   Adds GCP authentication support when creating external catalogs through the Polaris CLI.
   
   Polaris supports GCP authentication parameters for external catalogs, but the CLI did not expose a way to select this authentication type. This is needed for BigLake Iceberg REST catalog federation, where Polaris uses server-side Google credentials and the created catalog should be configured with `authenticationType: GCP`.
   
   ## Changes
   
   - Adds `gcp` as a supported external catalog authentication type in the CLI.
   - Maps the CLI value to GCP authentication parameters for external catalog creation.
   - Adds test coverage for the CLI parsing and catalog creation path.
   
   ## Validation
   
   - `./gradlew format compileAll`
   - `./gradlew check`
   - Manually validated by creating an external catalog with GCP authentication and verifying that Polaris can list namespaces through a BigLake-backed catalog.
   
   Fixes #5177


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "davidchaava (via GitHub)" <gi...@apache.org>.
davidchaava commented on code in PR #5178:
URL: https://github.com/apache/polaris/pull/5178#discussion_r3675735775


##########
client/python/apache_polaris/cli/command/catalogs.py:
##########
@@ -181,6 +182,8 @@ def validate(self) -> None:
                             f"Missing required argument for authentication type 'BEARER':"
                             f" {Argument.to_flag_name(Arguments.CATALOG_BEARER_TOKEN)}"
                         )
+                elif self.catalog_authentication_type == AuthenticationType.GCP.value:

Review Comment:
   Thank you. No, this entry is not part of this PR either. After rebasing onto the current main branch, it comes from main and is no longer included in this PR's diff. The only changelog entry introduced by this PR is the GCP CLI authentication entry.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "davidchaava (via GitHub)" <gi...@apache.org>.
davidchaava commented on code in PR #5178:
URL: https://github.com/apache/polaris/pull/5178#discussion_r3675735775


##########
client/python/apache_polaris/cli/command/catalogs.py:
##########
@@ -181,6 +182,8 @@ def validate(self) -> None:
                             f"Missing required argument for authentication type 'BEARER':"
                             f" {Argument.to_flag_name(Arguments.CATALOG_BEARER_TOKEN)}"
                         )
+                elif self.catalog_authentication_type == AuthenticationType.GCP.value:

Review Comment:
   Thank you for the suggestion. Addressed in the updated commit: I removed the no-op GCP validation branch. GCP now falls through, consistent with IMPLICIT, while validation remains only for authentication types that require additional arguments.



##########
CHANGELOG.md:
##########
@@ -132,6 +132,11 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti
 - Added support for `register table` overwrite semantics in the Iceberg REST catalog flow (`overwrite=true`) for internal Polaris catalogs. With overwrite enabled, existing table pointers can be updated to a new metadata location while preserving default behavior for `overwrite=false`.
 - Added `REGISTER_TABLE_OVERWRITE` authorization operation mapped to `TABLE_FULL_METADATA` for deterministic overwrite authorization.
 - Added Polaris Spark 4.0 client.
+- Added `maintenance` support in Helm chart.
+- Python CLI: added `--catalog-url` to specify a custom base URL for the Iceberg REST Catalog (IRC) API. Allows use with deployments that map a path (e.g. `/server1`) directly to the catalog root instead of the standard `/api/catalog`. See #4927.
+- Python CLI: added `gcp` as an external catalog authentication type for Iceberg REST federation, enabling CLI creation of GCP-authenticated catalogs such as BigLake without passing Google credential secrets through command-line flags.
+
+- Added an OpenTelemetry event listener for emitting Polaris audit events as OpenTelemetry log records.

Review Comment:
   Thank you. No, this entry is not part of this PR either. After rebasing onto the current main branch, it comes from main and is no longer included in this PR's diff. The only changelog entry introduced by this PR is the GCP CLI authentication entry.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "MonkeyCanCode (via GitHub)" <gi...@apache.org>.
MonkeyCanCode merged PR #5178:
URL: https://github.com/apache/polaris/pull/5178


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on code in PR #5178:
URL: https://github.com/apache/polaris/pull/5178#discussion_r3669830147


##########
CHANGELOG.md:
##########
@@ -132,6 +132,11 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti
 - Added support for `register table` overwrite semantics in the Iceberg REST catalog flow (`overwrite=true`) for internal Polaris catalogs. With overwrite enabled, existing table pointers can be updated to a new metadata location while preserving default behavior for `overwrite=false`.
 - Added `REGISTER_TABLE_OVERWRITE` authorization operation mapped to `TABLE_FULL_METADATA` for deterministic overwrite authorization.
 - Added Polaris Spark 4.0 client.
+- Added `maintenance` support in Helm chart.

Review Comment:
   Is this added by this PR?



##########
client/python/apache_polaris/cli/command/catalogs.py:
##########
@@ -181,6 +182,8 @@ def validate(self) -> None:
                             f"Missing required argument for authentication type 'BEARER':"
                             f" {Argument.to_flag_name(Arguments.CATALOG_BEARER_TOKEN)}"
                         )
+                elif self.catalog_authentication_type == AuthenticationType.GCP.value:

Review Comment:
   Minor: this `elif ... GCP: pass` is a no-op. `validate()` has no branch for `IMPLICIT` either and it validates fine by just falling through, so this branch can be deleted, keeping validate() to the types that actually need checks.



##########
CHANGELOG.md:
##########
@@ -132,6 +132,11 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti
 - Added support for `register table` overwrite semantics in the Iceberg REST catalog flow (`overwrite=true`) for internal Polaris catalogs. With overwrite enabled, existing table pointers can be updated to a new metadata location while preserving default behavior for `overwrite=false`.
 - Added `REGISTER_TABLE_OVERWRITE` authorization operation mapped to `TABLE_FULL_METADATA` for deterministic overwrite authorization.
 - Added Polaris Spark 4.0 client.
+- Added `maintenance` support in Helm chart.
+- Python CLI: added `--catalog-url` to specify a custom base URL for the Iceberg REST Catalog (IRC) API. Allows use with deployments that map a path (e.g. `/server1`) directly to the catalog root instead of the standard `/api/catalog`. See #4927.
+- Python CLI: added `gcp` as an external catalog authentication type for Iceberg REST federation, enabling CLI creation of GCP-authenticated catalogs such as BigLake without passing Google credential secrets through command-line flags.
+
+- Added an OpenTelemetry event listener for emitting Polaris audit events as OpenTelemetry log records.

Review Comment:
   Same question here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "MonkeyCanCode (via GitHub)" <gi...@apache.org>.
MonkeyCanCode commented on PR #5178:
URL: https://github.com/apache/polaris/pull/5178#issuecomment-5113799499

   > Hi Polaris maintainers,
   > 
   > The PR is ready for review, but CI checks have not started yet. Could someone please approve the workflow run when available?
   > 
   > Thanks.
   
   Hello @davidchaava ,
   
   Please rebase as your current PR has changes that are not related to this PR.
   
   Thanks,
   Yong


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "davidchaava (via GitHub)" <gi...@apache.org>.
davidchaava commented on code in PR #5178:
URL: https://github.com/apache/polaris/pull/5178#discussion_r3675743731


##########
CHANGELOG.md:
##########
@@ -132,6 +132,11 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti
 - Added support for `register table` overwrite semantics in the Iceberg REST catalog flow (`overwrite=true`) for internal Polaris catalogs. With overwrite enabled, existing table pointers can be updated to a new metadata location while preserving default behavior for `overwrite=false`.
 - Added `REGISTER_TABLE_OVERWRITE` authorization operation mapped to `TABLE_FULL_METADATA` for deterministic overwrite authorization.
 - Added Polaris Spark 4.0 client.
+- Added `maintenance` support in Helm chart.
+- Python CLI: added `--catalog-url` to specify a custom base URL for the Iceberg REST Catalog (IRC) API. Allows use with deployments that map a path (e.g. `/server1`) directly to the catalog root instead of the standard `/api/catalog`. See #4927.
+- Python CLI: added `gcp` as an external catalog authentication type for Iceberg REST federation, enabling CLI creation of GCP-authenticated catalogs such as BigLake without passing Google credential secrets through command-line flags.
+
+- Added an OpenTelemetry event listener for emitting Polaris audit events as OpenTelemetry log records.

Review Comment:
   Thank you for the suggestion. Addressed in the updated commit: I removed the no-op GCP validation branch. GCP now falls through, consistent with IMPLICIT, while validation remains only for authentication types that require additional arguments.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "davidchaava (via GitHub)" <gi...@apache.org>.
davidchaava commented on PR #5178:
URL: https://github.com/apache/polaris/pull/5178#issuecomment-5107072813

   Hi Polaris maintainers,
   
   The PR is ready for review, but CI checks have not started yet. Could someone please approve the workflow run when available?
   
   Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "MonkeyCanCode (via GitHub)" <gi...@apache.org>.
MonkeyCanCode commented on PR #5178:
URL: https://github.com/apache/polaris/pull/5178#issuecomment-5125315255

   LGTM. Thanks @davidchaava .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add GCP external catalog authentication support to the CLI [polaris]

Posted by "davidchaava (via GitHub)" <gi...@apache.org>.
davidchaava commented on code in PR #5178:
URL: https://github.com/apache/polaris/pull/5178#discussion_r3675732320


##########
CHANGELOG.md:
##########
@@ -132,6 +132,11 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti
 - Added support for `register table` overwrite semantics in the Iceberg REST catalog flow (`overwrite=true`) for internal Polaris catalogs. With overwrite enabled, existing table pointers can be updated to a new metadata location while preserving default behavior for `overwrite=false`.
 - Added `REGISTER_TABLE_OVERWRITE` authorization operation mapped to `TABLE_FULL_METADATA` for deterministic overwrite authorization.
 - Added Polaris Spark 4.0 client.
+- Added `maintenance` support in Helm chart.

Review Comment:
   Thank you for catching this. No, this entry is not part of this PR. I have rebased the branch onto the current main branch, and this entry now comes from main rather than from this change. The only changelog entry added by this PR is the one for GCP external-catalog authentication support in the CLI.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org