mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-28 07:41:23 +00:00
feat: S3-compatible object storage backend
BACKEND_STORAGE_DRIVER=s3 swaps LocalStore for a stdlib-only SigV4 implementation — PutObject/GetObject/DeleteObject/CopyObject/ListObjectsV2 against any S3-compatible API (AWS, MinIO, Garage, R2). Storage becomes a Store interface; storage_path records s3://bucket/key. Content-Length is resolved by seeking or temp-file spooling — chunked uploads are rejected by real S3 servers. Bucket auto-created on startup. Verified live against zenko/cloudserver: bucket, put, get, copy, delete. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
f747b33b46
commit
3aca5bd1e0
11 files changed
+810
-17
No files matched your search
+8
-8
@@ -360,14 +360,14 @@ Ordered loosely by leverage. None committed; each gets scoped when picked.
|
||||
- **Phase 9 — Functions** — user code on schedule/event/HTTP triggers.
|
||||
Deno or Bun isolates in a sidecar; secrets via env, payload via stdin.
|
||||
The job runner already supplies the scheduling half.
|
||||
- **Phase 10 — Storage backends** — S3-compatible object storage behind
|
||||
the existing bucket abstraction (deferred from Phase 6), plus
|
||||
presigned-URL uploads for large files.
|
||||
- **HA mode** — leader-elected scheduler + distributed locks so two
|
||||
backend replicas don't double-fire jobs; Postgres advisory locks are
|
||||
enough at this scale.
|
||||
- **Email surface** — transactional templates + send log in the
|
||||
dashboard, backed by the auth service's existing SMTP/Resend wiring.
|
||||
- **Phase 10 — Storage backends** — ✅ S3-compatible object storage shipped:
|
||||
`BACKEND_STORAGE_DRIVER=s3` + `S3_*` env vars, stdlib SigV4, verified
|
||||
against a real S3 server. Presigned-URL uploads for large files remain a
|
||||
candidate.
|
||||
- **HA mode** — ✅ shipped: PostgreSQL advisory-lock leadership for the
|
||||
scheduler and alert evaluator; failover verified with two replicas.
|
||||
- **Email surface** — ✅ shipped: templated sends + `core.email_log` +
|
||||
dashboard card; more templates land as new flows need them.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user