[KYUUBI #7740][AUTHZ] Authorize Iceberg metadata and changelog tables as the data table - #7741
Open
j1wonpark wants to merge 1 commit into
Open
[KYUUBI #7740][AUTHZ] Authorize Iceberg metadata and changelog tables as the data table#7741j1wonpark wants to merge 1 commit into
j1wonpark wants to merge 1 commit into
Conversation
…tables as the data table Since apache#5248 the scan of an Iceberg metadata table (`t.history`, `t.files`, ...) or `t.changes` produces no privilege object: its 4-part `Table.name()` makes `StringTableExtractor` throw `MatchError`, which is swallowed, so the read is never checked. Map such tables to the data table they are derived from. Signed-off-by: Jiwon Park <jiwonpark@apache.org>
j1wonpark
force-pushed
the
KYUUBI-7740
branch
from
September 13, 2026 00:10
e51f252 to
e97ca30
Compare
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.
Why are the changes needed?
Closes #7740. Also closes #3924.
Since #5248 (1.9.0), a scan of an Iceberg metadata table (
t.history,t.files, ...) ort.changesproduces no privilege object: the 4-partTable.name()makesStringTableExtractorthrowMatchError, whichCommandSpec.tablesswallows, so the read is never checked.t.filesandt.changesexpose column values.This maps such tables to the data table they are derived from (
BaseMetadataTable.table(),SparkChangelogTable.icebergTable), sot.historyrequiresselectondb/t/<its columns>, the same wayVERSION AS OFis already checked. The name is not split becausecat.a.b.cis ambiguous with a nested namespace.Two consequences worth noting:
tdenies its metadata tables. Bounds, partition values and change rows can reveal restricted columns, so this is the safe outcome.tnow applies to its metadata tables and fails analysis there, since the filter references data columns. Also deny-safe.The existing
CALL rollback_*tests readt.snapshotsoutsidedoAsand passed only because of this gap; they now run asadmin.How was this patch tested?
New test in
IcebergCatalogRangerSparkExtensionSuitecoveringhistory,snapshots,files,manifests,partitions,refsandchanges: a user with no policy is denied ondb/t/..., a user withselecton the table reads them. Fails before the fix. Full suite passes locally.Was this patch assisted by generative AI tooling?
Assisted-by: Claude Opus 5