You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "diqiu50 (via GitHub)" <gi...@apache.org> on 2026/06/12 09:15:06 UTC
[PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
diqiu50 opened a new pull request, #11628:
URL: https://github.com/apache/gravitino/pull/11628
### What changes were proposed in this pull request?
For a REST backend, the Flink Iceberg connector builds a native Iceberg `RESTCatalog` that connects directly to the Iceberg REST service, bypassing the Gravitino server's auth proxy. This propagates the Gravitino client's auth config (OAuth2 / Basic) to the REST client's `rest.auth.*` properties, unless the user set them explicitly.
`GravitinoCatalogManager` now strips auth keys from a copy instead of the shared client config, keeping them available for the REST backend.
### Why are the changes needed?
The connector failed with `NotAuthorizedException` against an auth-enabled IRC because the REST client carried no credentials.
Fix: #11601
### Does this PR introduce _any_ user-facing change?
No. Auth is propagated transparently; no manual IRC auth config needed.
### How was this patch tested?
Added `TestGravitinoIcebergCatalogFactory` covering the auth property mapping and injection guards.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3412089526
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
@@ -122,9 +139,78 @@ private Map<String, String> toIcebergCatalogOptions(Map<String, String> catalogO
&& !icebergCatalogOptions.containsKey(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE)) {
icebergCatalogOptions.put(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE, catalogBackend);
}
+ injectRestAuth(
Review Comment:
It's better not to change the parameter value in the method.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3412944197
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
@@ -122,9 +139,78 @@ private Map<String, String> toIcebergCatalogOptions(Map<String, String> catalogO
&& !icebergCatalogOptions.containsKey(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE)) {
icebergCatalogOptions.put(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE, catalogBackend);
}
+ injectRestAuth(
+ icebergCatalogOptions,
+ catalogBackend,
+ GravitinoCatalogManager.get().getGravitinoClientConfig());
// The outer Flink factory is `gravitino-iceberg`, but the nested Iceberg factory still expects
// `catalog-type=iceberg` when building the native Iceberg catalog instance.
icebergCatalogOptions.put(CommonCatalogOptions.CATALOG_TYPE.key(), "iceberg");
return icebergCatalogOptions;
}
+
+ /**
+ * Propagates the Gravitino client's authentication to the Iceberg REST catalog options. A REST
+ * backend connects directly to the Iceberg REST service, bypassing the Gravitino server's auth
+ * proxy, so the REST client needs its own credentials. Does nothing for non-REST backends, or
+ * when the user has already configured REST auth explicitly.
+ *
+ * @param icebergCatalogOptions the Iceberg catalog options to inject auth into
+ * @param catalogBackend the Gravitino Iceberg catalog backend (e.g. {@code rest}, {@code hive})
+ * @param gravitinoClientConfig the Gravitino client config carrying the authentication entries
+ */
+ @VisibleForTesting
+ static void injectRestAuth(
Review Comment:
Fixed
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3402124771
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/catalog/GravitinoCatalogManager.java:
##########
@@ -152,6 +153,17 @@ public void close() {
}
}
+ /**
+ * Get the Gravitino client config, including the authentication entries. This is used to
+ * propagate authentication to the Iceberg REST catalog backend, which connects directly to the
+ * Iceberg REST service and therefore needs its own credentials.
+ *
+ * @return The Gravitino client config
+ */
+ public Map<String, String> getGravitinoClientConfig() {
+ return gravitinoClientConfig;
+ }
Review Comment:
getGravitinoClientConfig() returns the internal mutable gravitinoClientConfig map directly. Callers can accidentally mutate it (including auth entries), causing hard-to-debug behavior differences later in the connector. Return a defensive copy instead.
##########
flink-connector/flink-common/src/test/java/org/apache/gravitino/flink/connector/iceberg/TestGravitinoIcebergCatalogFactory.java:
##########
@@ -0,0 +1,194 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.flink.connector.iceberg;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import com.google.common.collect.ImmutableMap;
+import java.util.HashMap;
+import java.util.Map;
+import org.apache.gravitino.flink.connector.store.GravitinoCatalogStoreFactoryOptions;
+import org.apache.iceberg.rest.auth.AuthProperties;
+import org.apache.iceberg.rest.auth.OAuth2Properties;
+import org.junit.jupiter.api.Test;
+
+class TestGravitinoIcebergCatalogFactory {
+
+ @Test
+ void testToRestAuthPropertiesOAuth2() {
+ Map<String, String> clientConfig =
+ ImmutableMap.of(
+ GravitinoCatalogStoreFactoryOptions.AUTH_TYPE,
+ GravitinoCatalogStoreFactoryOptions.OAUTH2,
+ GravitinoCatalogStoreFactoryOptions.OAUTH2_SERVER_URI, "http://oauth-server",
+ GravitinoCatalogStoreFactoryOptions.OAUTH2_TOKEN_PATH, "/token",
+ GravitinoCatalogStoreFactoryOptions.OAUTH2_CREDENTIAL, "client:secret",
+ GravitinoCatalogStoreFactoryOptions.OAUTH2_SCOPE, "catalog");
Review Comment:
This new test file appears not to be formatted with the repository’s Spotless google-java-format settings (e.g., the extra continuation indentation in the ImmutableMap.of(...) argument list). This will likely fail `spotlessCheck`; please run Spotless/google-java-format on the whole file to normalize indentation and line breaks consistently.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#issuecomment-4690237980
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|67.01% **`-0.23%`**|:green_circle:|
|:-|:-|:-:|
|Files changed|13.46%|:red_circle:|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|46.82%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|3.66%|:red_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|10.4%|:red_circle:|
|catalog-fileset|80.23%|:green_circle:|
|catalog-glue|66.91%|:green_circle:|
|catalog-hive|79.44%|:green_circle:|
|catalog-jdbc-clickhouse|80.02%|:green_circle:|
|catalog-jdbc-common|44.22%|:green_circle:|
|catalog-jdbc-doris|80.28%|:green_circle:|
|catalog-jdbc-hologres|54.03%|:green_circle:|
|catalog-jdbc-mysql|79.23%|:green_circle:|
|catalog-jdbc-oceanbase|78.38%|:green_circle:|
|catalog-jdbc-postgresql|82.29%|:green_circle:|
|catalog-jdbc-starrocks|78.51%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|58.53%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.94%|:green_circle:|
|catalog-lakehouse-paimon|80.02%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.51%|:green_circle:|
|client-java|78.01%|:green_circle:|
|common|50.17%|:green_circle:|
|core|82.38%|:green_circle:|
|filesystem-hadoop3|77.27%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|46.53% **`-1.92%`**|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-common|10.88%|:red_circle:|
|hive-metastore-common|53.77%|:green_circle:|
|iceberg-common|58.15%|:green_circle:|
|iceberg-rest-server|73.92%|:green_circle:|
|idp-basic|86.18%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|66.17%|:green_circle:|
|lance-common|20.79% **`-6.34%`**|:red_circle:|
|lance-rest-server|60.54%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|82.95%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|85.73%|:green_circle:|
|server-common|73.79%|:green_circle:|
|spark|28.57%|:red_circle:|
|spark-common|41.66%|:green_circle:|
|trino-connector|40.13%|:green_circle:|
<details>
<summary>Files</summary>
|Module|File|Coverage||
|:-|:-|:-|:-:|
|flink-common|[GravitinoIcebergCatalogFactory.java](https://github.com/diqiu50/gravitino/blob/1dde9957086b1d4719086790553bf2dc0e409dd5/flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java)|50.0%|:red_circle:|
||[GravitinoCatalogManager.java](https://github.com/diqiu50/gravitino/blob/1dde9957086b1d4719086790553bf2dc0e409dd5/flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/catalog/GravitinoCatalogManager.java)|19.47%|:red_circle:|
|lance-common|[GravitinoLanceNameSpaceOperations.java](https://github.com/diqiu50/gravitino/blob/1dde9957086b1d4719086790553bf2dc0e409dd5/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/GravitinoLanceNameSpaceOperations.java)|0.0%|:red_circle:|
</details>
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3412582647
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
@@ -122,9 +139,78 @@ private Map<String, String> toIcebergCatalogOptions(Map<String, String> catalogO
&& !icebergCatalogOptions.containsKey(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE)) {
icebergCatalogOptions.put(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE, catalogBackend);
}
+ injectRestAuth(
+ icebergCatalogOptions,
+ catalogBackend,
+ GravitinoCatalogManager.get().getGravitinoClientConfig());
// The outer Flink factory is `gravitino-iceberg`, but the nested Iceberg factory still expects
// `catalog-type=iceberg` when building the native Iceberg catalog instance.
icebergCatalogOptions.put(CommonCatalogOptions.CATALOG_TYPE.key(), "iceberg");
return icebergCatalogOptions;
}
+
+ /**
+ * Propagates the Gravitino client's authentication to the Iceberg REST catalog options. A REST
+ * backend connects directly to the Iceberg REST service, bypassing the Gravitino server's auth
+ * proxy, so the REST client needs its own credentials. Does nothing for non-REST backends, or
+ * when the user has already configured REST auth explicitly.
+ *
+ * @param icebergCatalogOptions the Iceberg catalog options to inject auth into
+ * @param catalogBackend the Gravitino Iceberg catalog backend (e.g. {@code rest}, {@code hive})
+ * @param gravitinoClientConfig the Gravitino client config carrying the authentication entries
+ */
+ @VisibleForTesting
+ static void injectRestAuth(
Review Comment:
make it `static` for test only? If so, the permission amplification is too severe.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3412589671
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
Review Comment:
Can you use IT to cover the scenario described in the issue?
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3403611019
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/catalog/GravitinoCatalogManager.java:
##########
@@ -152,6 +153,17 @@ public void close() {
}
}
+ /**
+ * Get the Gravitino client config, including the authentication entries. This is used to
+ * propagate authentication to the Iceberg REST catalog backend, which connects directly to the
+ * Iceberg REST service and therefore needs its own credentials.
+ *
+ * @return The Gravitino client config
+ */
+ public Map<String, String> getGravitinoClientConfig() {
+ return gravitinoClientConfig;
+ }
Review Comment:
Not a issue
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 closed pull request #11628: [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend
URL: https://github.com/apache/gravitino/pull/11628
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3411916490
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
@@ -122,9 +139,78 @@ private Map<String, String> toIcebergCatalogOptions(Map<String, String> catalogO
&& !icebergCatalogOptions.containsKey(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE)) {
icebergCatalogOptions.put(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE, catalogBackend);
}
+ injectRestAuth(
+ icebergCatalogOptions,
+ catalogBackend,
+ GravitinoCatalogManager.get().getGravitinoClientConfig());
// The outer Flink factory is `gravitino-iceberg`, but the nested Iceberg factory still expects
// `catalog-type=iceberg` when building the native Iceberg catalog instance.
icebergCatalogOptions.put(CommonCatalogOptions.CATALOG_TYPE.key(), "iceberg");
return icebergCatalogOptions;
}
+
+ /**
+ * Propagates the Gravitino client's authentication to the Iceberg REST catalog options. A REST
+ * backend connects directly to the Iceberg REST service, bypassing the Gravitino server's auth
+ * proxy, so the REST client needs its own credentials. Does nothing for non-REST backends, or
+ * when the user has already configured REST auth explicitly.
+ *
+ * @param icebergCatalogOptions the Iceberg catalog options to inject auth into
+ * @param catalogBackend the Gravitino Iceberg catalog backend (e.g. {@code rest}, {@code hive})
+ * @param gravitinoClientConfig the Gravitino client config carrying the authentication entries
+ */
+ @VisibleForTesting
+ static void injectRestAuth(
+ Map<String, String> icebergCatalogOptions,
+ String catalogBackend,
+ Map<String, String> gravitinoClientConfig) {
+ if (IcebergPropertiesConstants.ICEBERG_CATALOG_BACKEND_REST.equalsIgnoreCase(catalogBackend)
+ && !icebergCatalogOptions.containsKey(AuthProperties.AUTH_TYPE)) {
+ icebergCatalogOptions.putAll(toRestAuthProperties(gravitinoClientConfig));
+ }
Review Comment:
injectRestAuth() uses putAll(), which will overwrite any user-provided REST auth properties other than `rest.auth.type` (e.g. a user may set `rest.auth.basic.username` / `rest.auth.oauth2.credential` but omit `rest.auth.type`). This contradicts the intent of not overriding explicit REST auth settings and can lead to surprising behavior.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3412744664
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
@@ -122,9 +139,78 @@ private Map<String, String> toIcebergCatalogOptions(Map<String, String> catalogO
&& !icebergCatalogOptions.containsKey(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE)) {
icebergCatalogOptions.put(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE, catalogBackend);
}
+ injectRestAuth(
Review Comment:
fixed
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3412766184
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
@@ -122,9 +139,78 @@ private Map<String, String> toIcebergCatalogOptions(Map<String, String> catalogO
&& !icebergCatalogOptions.containsKey(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE)) {
icebergCatalogOptions.put(IcebergPropertiesConstants.ICEBERG_CATALOG_TYPE, catalogBackend);
}
+ injectRestAuth(
+ icebergCatalogOptions,
+ catalogBackend,
+ GravitinoCatalogManager.get().getGravitinoClientConfig());
// The outer Flink factory is `gravitino-iceberg`, but the nested Iceberg factory still expects
// `catalog-type=iceberg` when building the native Iceberg catalog instance.
icebergCatalogOptions.put(CommonCatalogOptions.CATALOG_TYPE.key(), "iceberg");
return icebergCatalogOptions;
}
+
+ /**
+ * Propagates the Gravitino client's authentication to the Iceberg REST catalog options. A REST
+ * backend connects directly to the Iceberg REST service, bypassing the Gravitino server's auth
+ * proxy, so the REST client needs its own credentials. Does nothing for non-REST backends, or
+ * when the user has already configured REST auth explicitly.
+ *
+ * @param icebergCatalogOptions the Iceberg catalog options to inject auth into
+ * @param catalogBackend the Gravitino Iceberg catalog backend (e.g. {@code rest}, {@code hive})
+ * @param gravitinoClientConfig the Gravitino client config carrying the authentication entries
+ */
+ @VisibleForTesting
+ static void injectRestAuth(
+ Map<String, String> icebergCatalogOptions,
+ String catalogBackend,
+ Map<String, String> gravitinoClientConfig) {
+ if (IcebergPropertiesConstants.ICEBERG_CATALOG_BACKEND_REST.equalsIgnoreCase(catalogBackend)
+ && !icebergCatalogOptions.containsKey(AuthProperties.AUTH_TYPE)) {
+ icebergCatalogOptions.putAll(toRestAuthProperties(gravitinoClientConfig));
+ }
Review Comment:
Not a issue
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #11628:
URL: https://github.com/apache/gravitino/pull/11628#discussion_r3412951241
##########
flink-connector/flink-common/src/main/java/org/apache/gravitino/flink/connector/iceberg/GravitinoIcebergCatalogFactory.java:
##########
Review Comment:
OAuth is relatively complex to set up, so it wasn’t included. Here we only verify that the configuration is handled correctly.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11601] fix(flink-connector): Propagate auth to Iceberg REST catalog backend [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades merged PR #11628:
URL: https://github.com/apache/gravitino/pull/11628
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org