Skip to content

feat: vend credentials when loading a tabular #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

gruuya
Copy link
Contributor

@gruuya gruuya commented Jun 4, 2025

When loading a table/view make sure to pass the vended-credentials header, so that the catalog server returns proper options for accessing the object store. Note that this is also the default in pyiceberg https://github.com/apache/iceberg-python/blob/a67c5592f3243d255519581fedfcc5d93274b9c8/pyiceberg/catalog/rest/__init__.py#L463

In addition parse a couple more options, such as s3.endpoint when creating the object store.

Comment on lines 625 to 629
// Enrich credentials with other options that might only be found in the config (e.g.
// a custom endpoint)
let mut options = (&credentials[0].config).clone();
options.extend(config.clone());
options
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the particular case of Lakekeeper, response.storage_credentials[0].config contains only AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN.

OTOH, response.config contains those as well, but then in addition it also has things like CLIENT_REGION, AWS_REGION, AWS_ENDPOINT, etc.

@gruuya gruuya force-pushed the load-tabular-vended-creds branch from c98267d to 9c86504 Compare June 4, 2025 09:16
@gruuya
Copy link
Contributor Author

gruuya commented Jun 5, 2025

Closing in favor of #188, which also adds parsing for GCS options and some tests too.

@gruuya gruuya closed this Jun 5, 2025
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