Load MINIO_SECURE from env and replace adapter asserts with explicit errors.
Code Quality Pipeline / code-quality (pull_request) Successful in 32s
PR Title Check / check-title (pull_request) Successful in 6s
Test Python Package / test (pull_request) Successful in 57s

Default TLS to enabled for production MinIO setups while keeping local and integration tests on plain HTTP via explicit secure=false configuration.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Brian Bjarke Jensen
2026-07-06 20:45:37 +02:00
co-authored by Cursor
parent 7991dabdbc
commit 3aa91280ec
8 changed files with 76 additions and 11 deletions
+2
View File
@@ -42,6 +42,7 @@ Requires Redis with the RedisJSON module (e.g. redis-stack).
| `MINIO_ACCESS_KEY` | Access key |
| `MINIO_SECRET_KEY` | Secret key |
| `MINIO_BUCKET` | Bucket name (created on connect if missing) |
| `MINIO_SECURE` | Use HTTPS (`true`/`false`; default: `true`) |
Copy [`.env.example`](.env.example) to `.env` for local development. `RedisConfig.from_env()` and `MinioConfig.from_env()` load `.env` automatically when resolving configuration from the environment.
@@ -59,6 +60,7 @@ minio = MinioAdapter(
access_key="minioadmin",
secret_key="minioadmin",
bucket="my-bucket",
secure=False,
)
)
```