World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#15318] docs(tms): Document manual ircAuth credential vending (#15319)
MaSai548537d16c06
diff --git a/docs/table-maintenance-service/optimizer-configuration.md b/docs/table-maintenance-service/optimizer-configuration.mdindex b83cc14c77..e14e3ce883 100644--- a/docs/table-maintenance-service/optimizer-configuration.md+++ b/docs/table-maintenance-service/optimizer-configuration.md@@ -152,6 +152,20 @@ map the IRC authenticator to Iceberg `rest.auth.type` as below. Iceberg also def| `google` | Not supported yet | Iceberg Google REST auth; not a Gravitino IRC authenticator || *(Kerberos)* | Not supported yet | Documented: IRC does not support Kerberos |+`rest.auth.*` only authenticates to Iceberg REST. For object-store tables when IRC withholds+static keys (for example `s3-token`), also set vended credentials under this prefix yourself —+TMS does not inject the header:++```properties+gravitino.maintenance.ircAuth.header.X-Iceberg-Access-Delegation = vended-credentials+```++That becomes `spark.sql.catalog.<catalog>.header.X-Iceberg-Access-Delegation=vended-credentials`+in `spark_conf`. The same short key may also sit in policy `jobOptions`. See+[Secured Gravitino and Iceberg REST](./optimizer.md#secured-gravitino-and-iceberg-rest-object-storage)+and+[Requesting vended credentials](../security/credential-vending.md#requesting-vended-credentials).+**1. `none`** — IRC `simple` / no REST auth (default if the prefix is omitted):```properties@@ -234,11 +248,16 @@ Use CLI conf when the optimizer process talks to a secured server; use short nam`updater_options` when the update-stats Spark job (or `submit-update-stats-job` `runJob`) mustauthenticate. They are two surfaces for the same fields, not two auth systems.-Iceberg REST catalog authentication is separate: set `rest.auth.*` in `spark-conf` for any built-in+Iceberg REST catalog authentication is separate: set `rest.auth.*` in `spark_conf` for any built-injob that talks to a secured IRC (including update-stats). Expire-snapshots and rewrite-data-filesdo not read these Gravitino client auth fields. For Iceberg REST on object storage, set`warehouse_location` to the catalog name and put vended credentials (plus IRC `rest.auth.*` when-required) in `spark_conf`. See+required) in `spark_conf`. In-process TMS uses server+`gravitino.maintenance.ircAuth.*` for the same catalog keys; the CLI /+`gravitino.optimizer.jobSubmitterConfig` path puts the equivalent entries inside `spark_conf`+JSON instead. See+[Iceberg REST / Spark auth](./optimizer-configuration.md#iceberg-rest-spark-auth-gravitinomaintenanceircauth-arbitrary-passthrough)+and[Secured Gravitino and Iceberg REST](./optimizer.md#secured-gravitino-and-iceberg-rest-object-storage).Passwords and OAuth credentials in `updater_options` (and secrets in `spark_conf`) travel withdiff --git a/docs/table-maintenance-service/optimizer-troubleshooting.md b/docs/table-maintenance-service/optimizer-troubleshooting.mdindex fbd9db49b7..18a85af300 100644--- a/docs/table-maintenance-service/optimizer-troubleshooting.md+++ b/docs/table-maintenance-service/optimizer-troubleshooting.md@@ -83,9 +83,13 @@ default provides the Iceberg runtime, list it in `spark_conf` as well.**`The provided credentials did not support` or Iceberg `Not authorized`** — a secured Gravitinoendpoint needs the optimizer Gravitino client auth (`none` / `simple` / `basic` / `oauth`) in CLIconf and/or short names in `updater_options`. A secured Iceberg REST catalog needs `rest.auth.*` in-`spark-conf` for any built-in job that reads the table. Object-store writes also need-`spark.sql.catalog.<cat>.header.X-Iceberg-Access-Delegation=vended-credentials`. See-[Gravitino client auth](./optimizer-configuration.md#gravitino-client-auth-cli-and-update-stats) and+`spark_conf` for any built-in job that reads the table. Object-store access also needs+`header.X-Iceberg-Access-Delegation=vended-credentials` under+`gravitino.maintenance.ircAuth.*`, policy `jobOptions`, or `spark_conf` when IRC withholds static+keys; TMS does not add it automatically. See+[Iceberg REST / Spark auth](./optimizer-configuration.md#iceberg-rest-spark-auth-gravitinomaintenanceircauth-arbitrary-passthrough),+[Gravitino client auth](./optimizer-configuration.md#gravitino-client-auth-cli-and-update-stats),+[Credential vending](../security/credential-vending.md#requesting-vended-credentials), and[Secured Gravitino and Iceberg REST](./optimizer.md#secured-gravitino-and-iceberg-rest-object-storage).**`NoSuchWarehouse` on Iceberg REST** — `warehouse_location` was set to an `s3://` (or similar)diff --git a/docs/table-maintenance-service/optimizer.md b/docs/table-maintenance-service/optimizer.mdindex e39c03bbf7..7054b2ac44 100644--- a/docs/table-maintenance-service/optimizer.md+++ b/docs/table-maintenance-service/optimizer.md@@ -122,11 +122,13 @@ plus Iceberg REST on object storage), also set:3. **Object-store data plane** — Spark must reach table storage through Iceberg REST. On objectstorage that usually means enabling Iceberg vended credentials- (`spark.sql.catalog.<catalog>.header.X-Iceberg-Access-Delegation=vended-credentials`) and- configuring IRC `rest.auth.*` for your catalog's auth mode in `spark_conf` (or the matching- `gravitino.maintenance.ircAuth.*` cluster settings for the in-process service). Do not copy- local `file:///` samples as-is. See- [Configuration](./optimizer-configuration.md) (IRC / `spark-conf` auth) and+ (`spark.sql.catalog.<catalog>.header.X-Iceberg-Access-Delegation=vended-credentials`, or+ `gravitino.maintenance.ircAuth.header.X-Iceberg-Access-Delegation=vended-credentials` for+ in-process TMS) and configuring IRC `rest.auth.*` for your catalog's auth mode in+ `spark_conf` (or the matching `gravitino.maintenance.ircAuth.*` cluster settings). Do not+ copy local `file:///` samples as-is. See+ [Iceberg REST / Spark auth](./optimizer-configuration.md#iceberg-rest-spark-auth-gravitinomaintenanceircauth-arbitrary-passthrough),+ [Credential vending](../security/credential-vending.md#requesting-vended-credentials), and[Troubleshooting](./optimizer-troubleshooting.md#job-execution-failures).### Demo environment