Commit graph

6 commits

Author SHA1 Message Date
c849e253f9
Drop the bingo photo migration from minio-init
All checks were successful
Deploy storage stack / deploy (push) Successful in 18s
All photos are in datacenterbingo-photos and both apps use it, so stop
mirroring from asxpio-invoices/bingo/ and take away the bingo user's
read access there.

Assisted-by: Claude:opus-5
2026-10-12 04:25:20 +04:00
63283b1c47
minio-init: check the bingo prefix without grep
All checks were successful
Deploy storage stack / deploy (push) Successful in 21s
The minio/mc image has no grep, so the emptiness check always failed and
the photos were never mirrored into datacenterbingo-photos.

Assisted-by: Claude:opus-5
2026-10-12 04:15:58 +04:00
61e93b64c8
Give the bingo photos their own bucket
All checks were successful
Deploy storage stack / deploy (push) Successful in 20s
The datacenter bingo photos sat under bingo/ in asxpio-invoices, next to
the invoice PDFs, guarded only by a prefix policy. Move them to a
datacenterbingo-photos bucket: asxpio's user gets read-write for the
admin's uploads, the bingo user read-only on the whole bucket.

Existing objects are mirrored over with their keys unchanged, so the
database rows stay valid. Both users keep their old access until the
apps are switched and the old prefix is removed.

Assisted-by: Claude:opus-5
2026-10-12 04:07:41 +04:00
b6bcc9f882
Provision read-only credentials for datacenterbingo
All checks were successful
Deploy storage stack / deploy (push) Successful in 19s
The public bingo site is moving out of the asxpio container and only
needs to read the bingo tables and the bingo/ photos. Give it a role
limited to SELECT on those two tables (with read-only transactions by
default) and a MinIO user limited to GetObject under
asxpio-invoices/bingo/, instead of reusing asxpio's read-write
credentials.

Both steps are skipped while the BINGO_* secrets are unset, so this
deploys safely before they exist. Tables missing on a fresh install
are granted on the next deploy.

Assisted-by: Claude:opus-5
2026-10-12 03:47:57 +04:00
459ee15f00
postgres-init: enable citext extension on asxpio db
All checks were successful
Deploy storage stack / deploy (push) Successful in 14s
Needed for case-insensitive email columns in the asxpio users table.
Runs as the Postgres superuser inside the init container; idempotent.
2026-05-26 19:07:16 +03:00
479e3d5cf9
Initial commit
All checks were successful
Deploy storage stack / deploy (push) Successful in 24s
2026-05-26 17:13:14 +03:00