Skip to content

[Server] Reuse table credential authorization for Iceberg reads after migration #2024

Open

Description

@timothyw553

Is your feature request related to a problem? Please describe.

PR #2015 uses VEND_TABLE_CREDENTIAL with operation=READ to decide whether Iceberg loadTable includes credentials. loadCredentials still uses VEND_ICEBERG_TABLE_CREDENTIAL. This policy repeats the read checks and falls back to GET_TABLE when the migration flag is disabled. The repeated checks could drift over time.

Describe the solution you would like

After the server.authorization.strict-privilege-checks migration flag is removed, use VEND_TABLE_CREDENTIAL for loadCredentials with operation fixed to READ by the server. Keep loadTable on GET_TABLE and use the shared read check to decide whether to include credentials.

The intended behavior, in pseudocode:

Native/Delta credentials:
    require VEND_TABLE_CREDENTIAL(request.operation)

Iceberg loadTable:
    require GET_TABLE
    if allowed(VEND_TABLE_CREDENTIAL(READ)):
        return metadata + credential config + refresh endpoint
    return metadata

Iceberg loadCredentials:
    require VEND_TABLE_CREDENTIAL(READ)
    return credentials

Supply READ as a fixed server value for the loadCredentials authorization check, as loadTable already does. Request values must not override it. Native and Delta requests must keep using their requested operation.

Delete VEND_ICEBERG_TABLE_CREDENTIAL and its repeated read checks. Preserve all three read requirements: catalog OWNER or USE_CATALOG, schema OWNER or USE_SCHEMA, and table OWNER or SELECT.

If the credential read check fails, loadTable must still return metadata when GET_TABLE passes. Omit credential config and the refresh endpoint. loadCredentials must return 403 when the read check fails.

Additional context

Related PRs: #2015 and #2023.

Keep tests for metadata-only responses, allowed credentials, denied loadCredentials, and ETag changes after a read grant. Verify that native and Delta READ and READ_WRITE decisions stay unchanged. Test that request values cannot replace the fixed Iceberg operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions