Phase 9, part 5: file storage, a folder or an S3 bucket

internal/storage keeps files that must outlast the app's disk (exports,
uploads) behind one interface: a folder (<data>/files) or an S3-compatible
bucket (minio-go, path-style, for Garage). Names that would reach outside
the store are refused. An S3 store is checked at start; supermarket config
checks the storage and Postgres for real. The same tests run on a folder
and on Garage (SUPERMARKET_TEST_S3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 07:42:11 -07:00
co-authored by Claude Opus 5.5
parent c76a7791ee
commit d2f1658708
13 changed files with 718 additions and 8 deletions
+5
View File
@@ -800,3 +800,8 @@ Throughout, also notice:
key, mail, an https:// address). With them all set, it says the
server edition isn't built yet. `supermarket config` never shows a
password or the key.
- [ ] `supermarket config` also checks the file storage ("writable"), and on
the other editions that Postgres can be reached. With a wrong S3 key or
Postgres password, it says which and why.
- [ ] After the update to schema 30, Settings → Backups shows the "before
schema 30" backup, and `~/.local/share/supermarket/files` exists, empty.