You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convex-backend PR 187: Refactor S3 credential handling in aws_utils (#40594)
Refactor S3 credential handling in aws_utils to allow S3 credentials from sources other than environment variables by using the AWS default credential chain.
Preserved credential checking before first use to prevent logs from filling up.
Also added `aws-credential-types` and `tokio` to dependencies in Cargo.toml and aws_utils/Cargo.toml
This PR preserves the same S3 client environment variable credential checks while allowing credential sources from IAM roles which is useful for local debugging (`aws sso`) and self-hosting on AWS (EC2 IAM role attachment).
The AWS S3 Rust SDK uses this default credential chain: `env vars -> shared config/credentials (incl. SSO) -> web identity -> container creds -> EC2 IMDSv2`. The new code checks the credential sources and bails with an error if none are found.
Closes#185
----
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Co-authored-by: Heath Hopkins <heath.hopkins@emory.edu>
GitOrigin-RevId: 2aa20649ba78df338cfae387a99f3e581f1d8e72
0 commit comments