Skip to content

Conversation

silverjam
Copy link
Contributor

@silverjam silverjam commented Jun 25, 2025

We'd like to be able to run back-ups from EKS pods that use role based authentication to our S3 buckets. To support this, it seems qdrant must use the AmazonS3Builder::from_env method to populate the builder with information from the environment per this feature request from the object-store library.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

@@ -60,8 +61,13 @@ impl SnapshotStorageManager {
Ok(SnapshotStorageManager::LocalFS(SnapshotStorageLocalFS))
}
SnapshotsStorageConfig::S3 => {
let mut builder = AmazonS3Builder::new();
if let Some(s3_config) = &snapshots_config.s3_config {
let builder = if let Some(s3_config) = &snapshots_config.s3_config {
Copy link
Contributor Author

@silverjam silverjam Jun 25, 2025

Choose a reason for hiding this comment

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

Possibly could just replace AmazonS3Builder::new with AmazonS3Builder::from_env method, but not sure if there are cases where this would not be desirable behavior.

Copy link
Member

Choose a reason for hiding this comment

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

I cannot think of a case where we would not want to source details from the environment. Let's remove with_env from our config, and always use from_env.

If this ever becomes an issue in the future, we can always add the config option back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks!

@silverjam
Copy link
Contributor Author

I ran cargo test --workspace and it looks like everything is passing.

@silverjam silverjam changed the title fix: enable pod role based auth for s3 snapshots Enable pod role based auth for s3 snapshots Jun 25, 2025
Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

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

Happy to merge after we resolve this.

Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

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

Thanks! 😄

@timvisee timvisee merged commit 64f9cd8 into qdrant:dev Jun 26, 2025
18 checks passed
@silverjam
Copy link
Contributor Author

For posterity: we tested this internally and it definitely works for our use case, thank you for the quick turnaround.

@timvisee
Copy link
Member

timvisee commented Jun 27, 2025

Awesome. Thanks for giving it a shot! And thanks for the straight-to-the-point PR.

@timvisee
Copy link
Member

timvisee commented Jul 18, 2025

Good news! We've just released Qdrant 1.15. It includes this change.

@silverjam
Copy link
Contributor Author

Wonderful, thank you!

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.

2 participants