Repository navigation
docs: vended credentials follow catalog grants (platform #760) - #45
Merged
Merged
Conversation
A read grant now vends read-only storage credentials, and write or manage read-write-delete. Document the rule on the catalog detail page, the behaviour change for engines and clients with only read grants, the access-denied symptom of a read-only write, and an upgrade note. Close KI-311 and add KI-315 (credential lifetime and shared keys) and KI-316 (cross-warehouse register on overlapping storage). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Platform docs for egret-data/platform#760 (merge
2d2c3f35, "vended credentials follow catalog grants"). The S3 credentials egret's Iceberg catalog vends on a table load now follow the Catalog Client's grant: areadgrant (table, namespace or catalog) vends read-only credentials (s3:GetObject,s3:GetObjectVersionon the table's location), andwriteormanagevends read-write-delete, with or without the delegation header and on…/credentials. This PR documents the rule, the behaviour change (an engine or client with onlyreadgrants can read but no longer write; egret-provisioned Trino and StarRocks holdcatalog · manageand are unaffected), the symptom a read-only client now sees when it writes, and an upgrade note. It closes KI-311 and adds KI-315 and KI-316.Changes
control-plane/catalogs/catalog-detail.md): a new subsection under What each operation needs, Storage credentials follow the grant (#storage-credentials-follow-the-grant):/credentials; onlyclient-managedasks for none; a mixed role (namespace read plus write on one table) gets read-write-delete on that table only; create/stage-create vend read-write-delete on the new location; a view load is read-only;ACCESS_DENIED during CreateMultipartUpload, quoted from the live check); provisioned engines holdcatalog · manage;read; nothing was committed), and a paragraph under Credentials vending fails.enginerole (catalog · manage), and its limits note that an existingenginerole is reused without checking its grants, so a narrowed one makes the engine read-only. Register an external engine says the Catalog Client's role decides whether the engine can write./credentials, view loads read-only; measured in the live check.openapi.jsonat2d2c3f35withscripts/gen-api-reference.mjs. No diff (#760 has no API shape change), so nothing is committed. (Platform main's currentopenapi.jsondiffers only in the workflow page, from #761; that belongs in #761's docs.)Screenshots
None changed: #760 has no UI change. No re-shoot.
Notes
read-only client was already refused commits with 403. What it loses is writing and deleting the table's files directly; its writes now fail at the object store instead of at the commit. The pages say so.enginerole (attach_to_engine(…, None)in every caller), so "an engine attached with a read-only role" means a self-run engine configured with a read-only client, or anenginerole an administrator narrowed.crates/egret-catalog-engine/src/authorizer.rs,mount.rs,warehouse.rsandcrates/egret-engine-mgmt/src/{catalog_apply,engines}.rsat2d2c3f35/main, the spec (D1–D4, C1–C14, §10, §11) and the live-check evidence.i18n/vimirror.npm run typecheckandnpm run buildpass locally (en and vi locales; no broken links or anchors reported).Checklist
2d2c3f35npm run typecheckandnpm run buildpass🤖 Generated with Claude Code