Skip to main content

Catalog detail

Select a catalog on Control Plane → Catalogs to open its page. The header shows the name, kind and counts for ENGINES and WORKSPACES, with CREATED and UPDATED times (and the WAREHOUSE id for an egret warehouse). Which tabs appear depends on the kind.

KindTabs
External catalog (Iceberg, Hive, JDBC, TPC-H and so on)Configuration, Engines, Workspaces
egret warehouseConfiguration, Engines, Workspaces, Roles & grants, Catalog Clients, Browse, Connect, Settings

Configuration​

The Configuration tab of the TPC-H catalog tpch_bench: Generated data with the Scale field, and the description

What every attached engine is told about this catalog. Saving re-applies it to each of them. Edit configuration opens the same fields as the create form. Below them the tab shows the result of egret's own checks (Nothing here fails the rules this build checks — but it checks only the rules it knows, and egret validates the whole configuration when you save.), the Description and Stored configuration (JSON).

For an egret warehouse the tab says egret manages this catalog's configuration with its warehouse — the catalog is the warehouse, and its storage is the warehouse's. There is nothing to edit.

Engines​

The Engines tab of tpch_bench: applied on the provisioned docs-trino, declared on the external trino-demo-ext

Attaching a catalog makes it a catalog on that engine. Trino applies it to the cluster and restarts the coordinator; StarRocks creates it on the FE in place.

Attach a catalog to an engine​

  1. Under Engine to attach, choose an engine (Select an engine).
  2. Optionally press Test to check the catalog first. For a catalog with a host, egret only checks that it can open a TCP connection, for example Reachability check — egret could not open a TCP connection to finance-db.internal:5432. Even a connection that had succeeded would not verify credentials, TLS or permissions. Once the catalog is attached to a provisioned Trino engine, Test runs a query there instead.
  3. Press Attach.

The table lists the engine with its status badge, its type, whether it is Primary, and the Apply and Applied states, with Retry and Detach. An external engine shows the state declared: egret recorded that the engine serves the catalog and applied nothing. A provisioned engine shows whether the apply succeeded (Applied).

note

Apply is this catalog's state on that engine, not the engine's own health. An engine that has since failed still reads applied here, because the catalog did apply before it broke.

Retry and Detach on a Trino engine rebuild every catalog that engine has, all at once. Either can be refused because a different catalog on the same engine has a stored configuration egret cannot parse, and the message names that other catalog. The engine's own Catalogs tab lists which.

With none attached the tab says This catalog is not attached to any engine, so nothing can query it yet.

Workspaces​

The Workspaces tab of demo_warehouse: Default is assigned

Tick the workspaces that should see the catalog and press Save assignments (Reset discards changes). A toast says Workspace assignments saved.

An assignment decides which catalogs a workspace sees in its engine view. It does not restrict what an engine will answer: a query naming this catalog directly is still served, and notebook warehouse selection ignores assignment entirely.

An egret warehouse is also visible to the workspace that owns it for as long as it has no assignments at all, and the first assignment replaces that fallback. Emptying the list does not hide such a catalog from its owner, and assigning it to one workspace takes it out of the owning workspace's view unless that workspace is on the list too.

Assigning a catalog to a workspace also writes a grant in the data-plane model: all members of the workspace can read it. It appears on Governance pages as Set by workspace assignment.

Roles & grants (warehouse)​

The catalog role engine, created with the engine, with its catalog-wide grant and one client

Catalog roles, keyed by consumer type: engine, notebook or external. Their grants gate reads and writes on the warehouse.

ControlDoes
Add roleA catalog role for a consumer type. A Name, a Consumer type (engine, notebook, external) and a Description.
Add grantOn a role: a Namespace (or All namespaces, or one of the warehouse's namespaces such as analytics), a Table (or All tables) and a Privilege, read or write. A write/manage privilege permits writes; any grant permits reads.

The table shows each role's Consumer, Grants (for example catalog · manage or analytics.orders · read) and the number of Clients. Provisioning an engine creates the role engine (Auto-created role for query engines) with a catalog-wide manage grant, and a client for the engine.

A grant on one table follows the table when it is renamed through the catalog, for example analytics.orders · read becomes analytics.orders_v2 · read, in the same or another namespace, at any namespace depth. egret moves it right after the catalog commits the rename, with no wait, because egret reads the role's grants on every request; the vended credentials follow with it. If the role already holds the same privilege on the new name, the two are merged. A client that then loads the old name gets 403, not 404, since no grant covers it and a refusal does not tell whether a table exists. A grant on a namespace or on the whole catalog stays where it is. A rename that changes only upper and lower case moves nothing, because grants already match both spellings. Recent changes on the Governance overview records each move, for example Catalog client engine-docs-trino moved catalog grant read of role analysts from analytics.orders to analytics.orders_v2 (table renamed), for a reader who also holds catalog_registry:read.

A recursive drop of a namespace deletes the table grants in it and in its child namespaces (… removed catalog grant read of role analysts on analytics.orders (namespace dropped)); namespace grants stay. A grant on a view (a table grant with the view's name) follows a view rename the same way. Grants that renames before this version left on old names, and grants on tables that were never created, are reported on the Governance overview as catalog grants on tables that do not exist. See Renames and drops.

What each operation needs​

egret checks every Iceberg request a Catalog Client sends against its role's grants before the catalog sees it. A grant on the catalog covers every namespace and table; a grant on a namespace covers the tables and views directly in it, not those in a child namespace (a grant on corp does not cover corp.fin.ledger); a grant on a table covers that table or view only. write and manage both permit writes.

OperationWhat the role needs
Load a table, view or namespaceAny grant covering it.
List namespaces, tables or viewsAny grant. The answer is cut to what the role can see: a namespace with a grant on it, above it or under it (a table grant shows its table's namespace and the ones above, not the namespaces beside it), and a table or view the role could load. A catalog grant lists everything. A page can come back short or empty while it still has a next-page-token; Iceberg clients follow the token.
Create a namespacewrite or manage on its parent namespace (a grant on exactly the parent, or on the catalog). A top-level namespace needs a catalog-level write or manage grant. A grant on the namespace itself does not create it.
Create a table or view, or stage a createwrite or manage on the catalog, or on the namespace it is created in. A grant on a table name never creates that table.
Commit to one table (POST …/namespaces/{ns}/tables/{t})write or manage covering the table the commit changes: the table named by the body's identifier when it has one, otherwise the table in the path. A view commit is decided on the view in its path.
Commit to several tables (POST …/transactions/commit)write or manage covering every table in the commit. One table that is not covered refuses the whole commit, and nothing is committed.
Rename a table or viewOn the source, what a drop needs: write or manage covering the source table or view. On the destination, what a create needs: write or manage on the catalog, or on the destination namespace. A grant on the destination table name is not enough.
Drop a table or viewwrite or manage covering it.
Drop a namespace recursively (with everything in it)write or manage on the catalog. A namespace grant still drops an empty namespace, or the namespace's tables one by one.
Remote S3 request signing (…/aws/s3/sign)Not used by egret: refused with 403 whatever the grants. Clients read and write table files with vended credentials.

An engine's client holds catalog · manage, so it can do all of these. For example, a role with write on the namespace sales and on the namespace stage can rename sales.orders to stage.orders; a role with write on the table sales.orders and a grant on the table stage.orders cannot, because the destination needs a namespace grant.

Names match the way the catalog resolves them. The catalog treats table and namespace names case-insensitively (and also equates width forms and invisible characters, but not accents), so a grant does too: a grant on sales.Secret covers sales.secret and SALES.SECRET, but not sales.secrét. Two grants that differ only in case are the same grant.

Refusals. egret answers in the Iceberg REST error format, {"error": {"message", "type", "code"}}, so a client such as PyIceberg raises a typed error (ForbiddenError for a 403). A refusal names the side that failed and repeats only the names the client sent, so it does not tell whether a table exists:

CodeWhenExample message
403The grant does not cover the operationrole 'etl' may not rename sales.orders: renaming needs write on the source, as dropping it would
403A rename destination without a namespace grantrole 'etl' may not rename into stage.orders: renaming needs write on namespace stage, as creating a table there would
403A multi-table commit with an uncovered tablerole 'etl' may not commit to sales.orders: a multi-table commit needs write on every table it changes, as updating it alone would; nothing was committed
403A namespace create without write on its parentrole 'etl' may not create namespace stage.child: it needs write on namespace stage, its parent, or for a top-level namespace … a top-level namespace needs a catalog-level write or manage grant
403A recursive namespace drop without a catalog grantrole 'etl' may not drop namespace corp recursively: a recursive drop deletes every child namespace and table, so it needs a catalog-level write or manage grant
400A rename, commit or namespace create body egret cannot readmalformed rename request: …, malformed multi-table commit: …, malformed table commit: …, malformed namespace create: …
408A request body that has not fully arrived 30 seconds after the request, however slowly it trickles inthe body of the rename request did not arrive within 30 s; nothing was changed
413A rename or namespace create body over 1 MiB, or a commit body over 16 MiBthe body of a rename request is larger than 1048576 bytes

Storage credentials follow the grant​

When a client loads a table, the catalog hands it short-lived S3 credentials scoped to that table's location, so it can read the table's files without static object-store keys. What those credentials allow depends on the role's grant on the table:

The role's grant covering the tableVended credentials
read (on the catalog, the namespace or the table)Read-only: s3:GetObject and s3:GetObjectVersion on the table's location. The client can scan the table but cannot write, overwrite or delete any of its files.
write or manageRead, write and delete on the table's location.
NoneNo credentials: the load itself is refused with 403.

The same rule applies with the X-Iceberg-Access-Delegation: vended-credentials header, without the header, and on GET …/tables/{t}/credentials. Only X-Iceberg-Access-Delegation: client-managed asks for no credentials. A role with several grants gets the widest one that covers the table: read on the namespace sales plus write on sales.orders vends read-write-delete on sales.orders and read-only on every other table in sales. Creating or staging a table (which needs write on the namespace) vends read-write-delete on the new table's location. A view load vends read-only credentials on the view's metadata location.

An engine or client with only read grants can therefore read but not write. Its writes fail at the object store with access denied when it uploads the first data file, before anything reaches the catalog. PyIceberg, for example, raises OSError: … AWS Error ACCESS_DENIED during CreateMultipartUpload operation: Access Denied on an append. Engines provisioned by egret hold catalog · manage and write as before.

The credentials stay valid for 15 minutes, set by the configuration key catalog.sts_token_validity_seconds (default 900, from 900 to 43200). egret writes the lifetime into every S3 warehouse when it creates it, and into the existing ones each time it starts. The catalog reuses one key for every caller with the same permission on the same table, for at most half its lifetime, so a key is handed out with at least about 7.5 minutes left. Revoking or narrowing a grant stops new credentials at once, but does not cancel the ones already handed out: they keep working for up to 15 minutes (KI-315). Trino loads fresh credentials with each table load, and was checked to keep reading and writing past the lifetime; StarRocks was not checked.

Catalog Clients (warehouse)​

Machine credentials (client id + secret) an engine or notebook uses to authenticate.

  1. Press Add client. The dialog says Issue machine credentials bound to a catalog role.
  2. Type a Name, choose the Role (for example engine (engine)) and the Workspace.
  3. Press Create client. Note the client id and secret that egret shows; the list afterwards shows only the Client ID.

The list shows Name, Consumer, Role, Client ID and Revoke. A provisioned engine has its own client, for example engine-docs-trino with the role engine; revoking it cuts the engine off from the warehouse.

Browse (warehouse)​

Browsing the analytics namespace of demo_warehouse: the sessions table with its columns

A tree of Namespaces (with a count) and a Recycle bin for dropped tables, with a search field (Search tables & views…). Select a table to see its Format version, Columns, Snapshots, Updated time and Location, with the tabs Schema, Properties and Snapshots. Each table and column has a tag control, which assigns a classification tag.

A dropped table keeps its classifications in the Recycle bin, and Undrop brings it back classified. The catalog does not rename another table onto the name of a table in the Recycle bin; for a classified table egret refuses that rename at once and says so. A classified table or column renamed through the catalog is held until the engines serve its classifications under the new name. See Renames and drops.

Connect (warehouse)​

The Connect tab of demo_warehouse with the REST catalog URI and the PyIceberg snippet

egret exposes this warehouse as an Iceberg REST catalog. Point any Iceberg-compatible engine at it using a Catalog Client's credentials. The tab shows the CATALOG URI, WAREHOUSE and OAUTH TOKEN URL, and ready-made snippets for PyIceberg, Trino and StarRocks. Replace the <CLIENT_ID>:<CLIENT_SECRET> placeholders with a client's values, and the example table demo_ns.events with one of yours. If the engine runs in Docker, use the egret host reachable from that container instead of the public address. On the demo stack the snippet's s3.endpoint is http://rustfs:9000, an address that resolves only inside the Docker network. The snippets ask egret to vend short-lived, table-scoped S3 credentials, so no static object-store keys are needed. A client whose role holds only read grants gets read-only credentials; see Storage credentials follow the grant.

Settings (warehouse)​

The Settings tab of demo_warehouse: status, retention, format version, storage connection and two scheduled background tasks

Edit changes the editable settings.

SettingMeaning
StatusWhether the catalog is active and serving reads and writes.
Soft-delete retentionHow long dropped tables stay recoverable before they are purged. Minimum about 7 days. Default 7 days.
Format versionWhich Iceberg table format versions clients may create. Default Allow v1 and v2.
Storage connectionThe connection this warehouse's data lives on. Its S3 key is managed there.

Background tasks lists the catalog's garbage-collection queues (tabular expiry, purge and task-log cleanup) that reclaim storage from dropped tables, with the Queue, Entity and Status (for example tabular_expiration of a dropped table, SCHEDULED).

Limits and known issues​

  • A catalog test before attaching checks only that the host answers on its port; a TPC-H catalog has no host to check.
  • Attach and detach on Trino restart the coordinator.
  • Vended credentials outlive a revoked or narrowed grant by up to 15 minutes, and callers with the same permission on a table share one key (KI-315).
  • Two warehouses that share a location can let a namespace writer in one of them obtain read-write credentials on a table of the other. egret refuses a new warehouse that overlaps an existing one, but cannot tell that two host names, or a host name and an IP address, are the same store (KI-316). Give each warehouse its own bucket or key prefix.
  • Adding or deleting a grant here records no entry in the Governance overview's Recent changes; only the moves and removals that renames and namespace drops make do.

Further reading​