World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#11645] improvement(docs): Warn about credential leakage risk in bypass properties (#11712)
Yuhui4ada1e9b6644
diff --git a/docs/gravitino-server-config.md b/docs/gravitino-server-config.mdindex a2b8db5700..38910df37c 100644--- a/docs/gravitino-server-config.md+++ b/docs/gravitino-server-config.md@@ -392,6 +392,14 @@ There are three types of catalog properties:configurations for the catalog to work properly.2. **Properties with the `gravitino.bypass.` prefix**: These properties are not managed byGravitino and pass directly to the underlying system for advanced usage.++:::warning+Using `gravitino.bypass.` properties to pass credentials, tokens, or access keys can expose+sensitive values in plaintext, because these properties are not fully managed by Gravitino and may+be returned in plaintext via REST API responses. If an underlying system requires credentials to be+passed this way, restrict access to the related REST APIs.+:::+3. **Other properties**: Gravitino doesn't leverage these properties, just store them. Userscan use them for their own purposes.diff --git a/docs/lakehouse-iceberg-catalog.md b/docs/lakehouse-iceberg-catalog.mdindex b9c7a912e4..fdc3eca7f5 100644--- a/docs/lakehouse-iceberg-catalog.md+++ b/docs/lakehouse-iceberg-catalog.md@@ -161,6 +161,7 @@ Gravitino Iceberg REST service supports using static access-key-id and secret-ac| `oss-endpoint` | The endpoint of Aliyun OSS service. | (none) | No | 0.7.0-incubating |For other Iceberg OSS properties not managed by Gravitino like `client.security-token`, you could config it directly by `gravitino.bypass.client.security-token`.+See [Catalog Properties Configuration](./gravitino-server-config.md#catalog-properties-configuration) for credential leakage risks when passing credentials or security tokens through `gravitino.bypass.` properties.:::infoPlease set the `warehouse` parameter to `oss://{bucket_name}/${prefix_name}`. Additionally, download the [Gravitino Iceberg Aliyun bundle](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aliyun-bundle) and place it in the `catalogs/lakehouse-iceberg/libs/` directory.@@ -219,6 +220,7 @@ For other storages that are not managed by Gravitino directly, you can manage th| `io-impl` | The IO implementation for `FileIO` in Iceberg. Use the fully qualified class name to override the default implementation. | `org.apache.iceberg.io.ResolvingFileIO` | No | 0.6.0-incubating |To pass custom properties such as `security-token` to your custom `FileIO`, you can directly configure it by `gravitino.bypass.security-token`. `security-token` will be included in the properties when the initialize method of `FileIO` is invoked.+See [Catalog Properties Configuration](./gravitino-server-config.md#catalog-properties-configuration) for credential leakage risks when passing credentials or security tokens through `gravitino.bypass.` properties.:::infoPlease set the `warehouse` parameter to `{storage_prefix}://{bucket_name}/${prefix_name}`. Additionally, download corresponding jars in the `catalogs/lakehouse-iceberg/libs/` directory.