fix(supabase): refuse bad sandbox arguments before starting anything
pnpm db:sandbox up with an unknown mode or a missing or malformed upgrade version started four containers and wrote the secrets before refusing. The mode and the version (fourteen digits) are now checked first.
This commit is contained in:
1 parent
5bc6631b6e
commit
57922e0902
2 files changed
+11
-3
No files matched your search
@@ -334,7 +334,9 @@ secret and keys are generated at each `up` into a 600 file under
|
||||
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.
|
||||
script before any CLI call, and a wrong `up` mode or version (fourteen
|
||||
digits) is refused before any container or secret exists. Works with rootless
|
||||
Docker.
|
||||
|
||||
| Command | What it does |
|
||||
|---|---|
|
||||
|
||||
Reference in new issue
Block a user