-
Notifications
You must be signed in to change notification settings - Fork 878
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
AWS Profile credentials no longer working in object_store 0.6.1 #4556
Comments
First-party AWS profile support was removed as part of #4238 and released as part of 0.6.0. Downstreams wishing to provide AWS profile support will need to hook up their chosen AWS SDK as a credential provider, providing full support for all the various authentication options AWS CLIs provide is out of scope for this crate, and was causing friction as we never replicated the CLI behaviour consistently. An example of doing this can be found in datafusion-cli - https://github.com/apache/arrow-datafusion/blob/main/datafusion-cli/src/object_storage.rs. Further reasoning behind this decision can be found on #4137 and #2178 |
Ouch, okay. Going to pin object_store to 0.5.6 for now and determine the right path forward. |
Feel free to let me know if you get stuck and I can try to help out, the datafusion-cli may be a good starting point. Alternatively you may consider using something like aws-vault, as an added bonus this will avoid caching temporary credentials on disk in plain text |
aws-vault was a nice suggestion, certainly makes this easier. I'm unblocked for now. We're consuming this via delta-rs so it wasn't immediately apparent how I adapt the datafusion-cli logic there. |
This issue took me a very long time to track down. If the |
Describe the bug
I am bringing in object_store via delta-rs. I bumped from delta-rs v0.12.0 (object_store v0.5.6) to delta-rs v0.13.0 (object_store v0.6.1) and now profile credentials no longer work.
To Reproduce
Given:
With the following code unchanged between delta-rs / object_store versions:
The following is then received:
Expected behavior
The table is opened and read to be used.
Additional context
Here is the abbreviated output from the previous version of delta-rs/object_store:
If I eval my SSO session credentials into environment variables then this works just fine on 0.6.1, but that's a pretty big regression.
The text was updated successfully, but these errors were encountered: