Skip to content

Conversation

@antonlin1
Copy link

@antonlin1 antonlin1 commented Feb 10, 2026

Summary

  • Add storage-credentials field support to the loadTable REST response, per the Iceberg REST spec
  • Implement longest-prefix matching to select the correct credential when multiple storage credentials are returned
  • Fall back to config dict when no storage-credentials are present or no prefix matches

Straight copy of #2600 in case that is abandoned PR

Test plan

  • test_storage_credentials_over_config — credentials with matching prefix override config
  • test_config_when_no_storage_credentials — falls back to config when no storage-credentials present
  • test_storage_credentials_no_prefix_match — falls back to config when prefix doesn't match
  • test_storage_credentials_longest_prefix_wins — longest matching prefix is selected

🤖 Generated with Claude Code

Per the Iceberg REST spec, the loadTable response can include a
storage-credentials field with prefix-scoped temporary credentials.
Clients must check storage-credentials before falling back to the
config dict. This adds longest-prefix matching for credential
selection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant