Fix CORS headers, JSONB query format, and S3 path-style addressing

↗ view on GitHub · Osama Ata · 2026-05-04 · baa2a5bb

- kong.yml: add full set of PostgREST headers (Accept-Profile,
  Content-Profile, Prefer, Range, etc.) to CORS allowed list
- access.ts, projects.ts: fix shared_with containment query to use
  JSON.stringify([email]) instead of [email] - avoids Postgres array
  syntax {..} which is invalid for JSONB cs. operator
- storage.ts: add forcePathStyle: true to S3Client so MinIO URLs use
  path-style (http://minio:9000/bucket) instead of virtual-hosted style
  (http://bucket.minio:9000) which fails DNS resolution

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Repository osama-ata/mikeoss
Author Osama Ata <me@osamata.com>
Authored
Parents 55aebbdd
Stats 4 files changed , +12 , -5
Part of Self-hosted Docker stack with Supabase + MinIO

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-baa2a5bb.md from inside the repo you want the change in.

⬇ Download capture-commit-baa2a5bb.md