Skip to content

S3Loader: support S3-compatible endpoints (endpoint_url) for MinIO/R2/LocalStack #851

Closed

Description

@AmitoVrito

Summary

S3Loader (src/synapsekit/loaders/s3.py) had no endpoint_url parameter, so it could only talk to real AWS S3 — not S3-compatible stores (MinIO, Cloudflare R2, DigitalOcean Spaces, LocalStack). This also made it untestable without live AWS. Found while adding real testcontainers loader coverage (epic #829).

Change (additive, non-breaking)

  • Add an optional endpoint_url: str | None = None parameter.
  • When set, pass it to the boto3 client and enable path-style addressing (Config(s3={"addressing_style": "path"})), which S3-compatible endpoints addressed by host:port require.

Test

Real MinIO (minio/minio) testcontainer: list + download + text extraction into Documents, prefix filter, extension filter, max_files, sync load(), async contract. Runs in the CI integration job.

Part of epic #829.

Activity

  1. added this to the v2.0.1 milestone on Jul 21, 2026
  2. added
    enhancement
    v2.0.1
    on Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv2.0.1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions