Skip to content

Support S3 session_token #1133

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

Open
cfis opened this issue May 23, 2025 · 3 comments
Open

Support S3 session_token #1133

cfis opened this issue May 23, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@cfis
Copy link

cfis commented May 23, 2025

When 2FA is enabled on an Amazon account, S3 access requires having a session_token. DataFusion seems to support this:

https://github.com/apache/datafusion/blob/ce835da93eaeee4a5e447b2bc2fb88cf0fd04d2c/datafusion-cli/src/object_storage.rs#L215

However, that attribute is not exposed in the Python bindings. Any plans to add it? Or would a PR be accepted that adds it?

@cfis cfis added the enhancement New feature or request label May 23, 2025
@timsaucer
Copy link
Contributor

PRs are always welcome, especially for things like this that already exist on the rust side and only need exposure!

@kylebarron
Copy link
Contributor

As also mentioned in #899 (comment), I'd encourage the use of https://docs.rs/pyo3-object_store/, which supports all the underlying object_store configuration, not just session token.

I don't think I have time to make that PR though

@timsaucer
Copy link
Contributor

As also mentioned in #899 (comment), I'd encourage the use of https://docs.rs/pyo3-object_store/, which supports all the underlying object_store configuration, not just session token.

I don't think I have time to make that PR though

Wholeheartedly endorse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants