fix(supabase): keep sandbox secrets off command lines and DEV out of reach

Security gate findings on db-sandbox.sh: containers get secrets from 600 env files, psql and the CLI read PGPASSWORD (no password in --db-url), an incomplete secrets file stops the script before any CLI call, the state folder is refused inside the repository.
This commit is contained in:
bchanot committed 2026-10-25 21:27:29 +01:00
1 parent f8bd1b6861
commit a945e79131
2 files changed
+43 -20

No files matched your search

+5 -2
View File
@@ -330,8 +330,11 @@ ports on 127.0.0.1 only and distinct from DEV (db 57432, auth 57999, rest
no volume, so `down` removes the containers and the network by their literal
names and can never reach a `supabase_*_faunosteo` volume. The password, JWT
secret and keys are generated at each `up` into a 600 file under
`~/.cache/faunosteo-db-sandbox` (`FAUNOSTEO_SANDBOX_DIR`), outside the
repository, deleted by `down`, never printed. Works with rootless Docker.
`~/.cache/faunosteo-db-sandbox` (`FAUNOSTEO_SANDBOX_DIR`, refused inside the
repository), with 600 env files that hand them to the containers; deleted by
`down`, never printed, never on a command line (the CLI and psql read
`PGPASSWORD` from the environment). An incomplete secrets file stops the
script before any CLI call. Works with rootless Docker.
| Command | What it does |
|---|---|