Skip to content
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

[Bug] Load the proper AWS credential for glue/dynamodb catalog #892

Closed
kevinjqliu opened this issue Jul 4, 2024 · 4 comments · Fixed by #922
Closed

[Bug] Load the proper AWS credential for glue/dynamodb catalog #892

kevinjqliu opened this issue Jul 4, 2024 · 4 comments · Fixed by #922
Labels
good first issue Good for newcomers

Comments

@kevinjqliu
Copy link
Contributor

Apache Iceberg version

None

Please describe the bug 🐞

s3.access-key-id and s3.secret-access-key are the pyiceberg way to pass AWS credentials as properties to the catalog.
However, in the glue and dynamodb catalog, aws_access_key_id and aws_secret_access_key is expected
https://github.com/search?q=repo%3Aapache%2Ficeberg-python+aws_secret_access_key+path%3A.py+-path%3Atests&type=code

Also see #515 (comment)

We should standardize on a using s3.access-key-id and s3.secret-access-key for glue/dynamodb catalog. And perhaps also fall back to aws_access_key_id/aws_secret_access_key

@jayceslesar
Copy link
Contributor

seems like a misnomer for dynamo/glue to expect something called s3.some-aws-access-key?

@kevinjqliu
Copy link
Contributor Author

Another consideration is that there can be 2 separate s3 credentials. One to pass to glue/dynamo. Another for the catalog itself.

@jayceslesar
Copy link
Contributor

maybe its fine to just break compatibility leading up to 1.0.0? What does the java iceberg do when looking for s3 credentials?

@HonahX
Copy link
Contributor

HonahX commented Jul 13, 2024

Hi @kevinjqliu @jayceslesar. Thanks for the issue and valuable discussion. I would like to give a try with my proposal in #570 (comment). Draft PR: #922. Please let me know what you think! Thanks in advance!

What does the java iceberg do when looking for s3 credentials?

Java implementation supports s3.access-key-id and other s3.* properties to config S3FileIO, but it does not support config glue/dynamodb by explicitly passing the credentials. Instead, it allows user to specify a custom credential provider implementation.

@HonahX HonahX added this to the PyIceberg 0.7.0 release milestone Jul 14, 2024
@HonahX HonahX linked a pull request Jul 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants