Repository navigation
chore: production deploy - #7885
Conversation
## TL;DR fixes `db pull` and `migration list` mixing up 8 and 14 digit migration versions when a local only migration sorts before them ## whats missing? both read the local and remote lists in text order but stepped through them by number, so `db pull` asked to revert and apply the same version and `migration list` showed it twice ## now improved by: both now sort the remote list the same way as the local one and step through them in that text order, like `db push`, so the database's own sort order no longer matters and versions that differ only in leading zeros no longer pair either ## ref: - closes: #7775 - missed in: #6225
This bumps realtime from v2.177.1-r0 to v2.177.2-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.177.2-r0 Planned after supabase/slim-services published v2.177.2-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Run title lint on pull_request with a concurrency group per PR. Only release-notes branches from this repository skip lint and test workflows. The v2.x maintenance branch needs the same changes.
This bumps storage from v1.98.8-r0 to v1.98.9-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.98.9-r0 Planned after supabase/slim-services published v1.98.9-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps realtime from v2.177.2-r0 to v2.177.3-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.177.3-r0 Planned after supabase/slim-services published v2.177.3-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps pgmeta from v1.0.0-r0 to v1.1.0-r0. https://github.com/supabase/slim-services/releases/tag/pgmeta-v1.1.0-r0 Planned after supabase/slim-services published v1.1.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…3178) (#7770) ## Why This Changes A successful API call is only part of a CLI command’s contract. A CI script can still break if the command renames a JSON field, prints progress to stdout, or reports success before required cleanup finishes. This PR introduces a shared executor for commands that return a single result. `supabase branches delete` is the first command to use it. Its flags, prompts, output formats, and exit codes are meant to stay the same. ## What the Executor Owns `branches delete` declares its result schema alongside its handler with `withManagedHandler({ output, handler })`. The handler still resolves the parent project, obtains consent, and deletes the branch. It returns `{ project_ref, message }` rather than writing the machine response itself. TypeScript checks the returned value against the schema; the output writer still adds target metadata and applies the framing for `json` or `stream-json`. The executor waits for required cleanup before writing success. Once it starts a terminal write, the outer CLI knows not to append a second response if that write fails. After parent resolution, the handler requests a cache fill for the **parent** ref, distinct from the deleted branch ref in the result. The executor attempts the fill and telemetry flush even if the command later fails or is interrupted. A failure in either optional step does not replace the command outcome. Other commands keep their existing execution path. ## Machine Output Across Migrations The temporary suite in `apps/cli/tests/migration-compat/` compares what a script actually receives, independently of the new result schema. Its `branches delete` baseline captures stdout, stderr, and exit codes from the pre-migration binary for successful deletes and HTTP 500 responses in both machine formats. For `stream-json`, event order and line boundaries matter; the timestamp must have the expected format, but its value can change between runs. For each subsequent migration, a local recorder builds a specified Git revision and captures the same scenario that CI will run against the current binary. CI only reads baselines, and the recorder refuses to overwrite them. The scenarios, recorder, and baselines live in one directory so they can be removed after the migrations without changing production code or permanent tests.
This bumps realtime from v2.177.3-r0 to v2.177.4-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.177.4-r0 Planned after supabase/slim-services published v2.177.4-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps postgres from 15.20.0.004-r0 to 15.20.0.005-r0. https://github.com/supabase/slim-services/releases/tag/postgres-15.20.0.005-r0 Planned after supabase/slim-services published 17.12.0.005-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps postgres from 17.12.0.002-r0 to 17.12.0.005-r0. https://github.com/supabase/slim-services/releases/tag/postgres-17.12.0.005-r0 Planned after supabase/slim-services published 17.12.0.005-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This adds postgres 17.11.0.024-orioledb-r0 as a new release line. https://github.com/supabase/slim-services/releases/tag/postgres-17.11.0.024-orioledb-r0 Planned after supabase/slim-services published 17.11.0.024-orioledb-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps realtime from v2.177.4-r0 to v2.177.5-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.177.5-r0 Planned after supabase/slim-services published v2.177.5-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Problem Studio is moving from Advisors to Issues Inbox, while the CLI still exposes `supabase db advisors`. CLI users also need remote health checks alongside security and performance findings. ## What this adds - **`supabase issues`** combines security, performance, and remote health checks, grouping affected resources under each issue. - **Readable terminal output** uses the shared CLI table renderer, wraps long titles, and falls back to stacked label/value fields in narrow terminals, matching `logs`. - **Machine output stays available** through `--output-format json` and `stream-json`, including affected resources, evidence, and remediation links. Detected coding agents retain the CLI's JSON default. - **Filtering and exit control** use `--type`, minimum `--severity`, and `--fail-on`. Defaults are `all`, `info`, and `none` respectively. - **Explicit coverage** distinguishes completed checks from unavailable checks. Empty filtered results do not imply unavailable checks passed; unavailable remote checks exit nonzero. - **Backwards compatibility:** `db advisors` retains its flags, defaults, output, and exit behavior, with an informational notice on stderr about planned future deprecation. Both commands reuse existing Advisors endpoints and check modules. - **CLI reference docs** cover the command, defaults, terminal output, and machine modes. Local and direct database targets keep SQL checks and report health as unavailable; explicitly requesting local health is rejected. Use `--output-format`, not the older `-o` flag. Issue IDs identify project-scoped checks, not persistent incidents; lifecycle actions and banned-IP signals are outside this PR. ## Command and flags reference ```sh supabase issues [--remote[=<ref|branch|url>] | --stack <name-or-id>] \ [--type all|security|performance|health] \ [--severity info|warning|critical] \ [--fail-on none|info|warning|critical] \ [--output-format text|json|stream-json] ``` ### Issues flags These are the check-selection, filtering, and exit-control flags exposed by the new command. | Flag | Accepted values | Default | Behavior | | --- | --- | --- | --- | | `--type <value>` | `all`, `security`, `performance`, `health` | `all` | Selects which checks run. Hosted health checks cover elevated log error rates for the Data API, Auth, Storage, and Edge Functions. | | `--severity <value>` | `info`, `warning`, `critical` | `info` | Minimum **grouped issue** severity to display: `info` includes everything, `warning` includes warning and critical issues, and `critical` includes only critical issues. A group's severity is its highest affected-resource severity; matching groups retain all affected resources and evidence. | | `--fail-on <value>` | `none`, `info`, `warning`, `critical` | `none` | Exit with status `1` when a **displayed** issue meets or exceeds this threshold. `none` disables failure based on findings; it does not suppress command errors or unavailable remote checks. | Severities map from the underlying Advisors levels: `INFO` → `info`, `WARN` → `warning`, `ERROR` → `critical`. `--severity` filters the results before `--fail-on` is evaluated. Neither flag changes which API checks are requested. ### Target selection The command reuses the existing CLI target flags; these are not new global flags. | Form | Target and behavior | | --- | --- | | No target flag | Inspect the local database. | | `--stack <name-or-id>` | With the experimental stack backend enabled, select a local stack by name, ID, or unique ID prefix. Defaults to `SUPABASE_STACK`, then the current project stack. | | `--remote` | Inspect the linked hosted project. | | `--remote=<project-ref>` | Inspect the specified hosted project. | | `--remote=<branch>` | Resolve and inspect the specified project branch. | | `--remote=<postgresql-url>` | Connect directly to that database for SQL checks. A direct database URL does not enable hosted health checks. | Use `=` when supplying a remote target, for example `--remote=erppftcfodkcyoftaqvb`, rather than `--remote erppftcfodkcyoftaqvb`. Local and direct-URL security/performance checks run in a transaction that is always rolled back. With those targets, `--type all` reports health as unavailable; explicit `--type health` fails with guidance to use a hosted project. The shared, hidden compatibility flags remain accepted but are deprecated for removal in CLI v4: `--local` (omit the target flag), `--linked` (use `--remote`), `--project-ref <ref>` (use `--remote=<ref>`), and `--db-url <url>` (use `--remote=<url>`). ### Shared output and execution flags These existing global flags apply to `issues`: | Flag | Values / default | Behavior | | --- | --- | --- | | `--output-format <value>` | `text`, `json`, `stream-json`; normally `text` | `text` prints a table or narrow-terminal stacked fields, followed by coverage. `json` includes full `issues` and `checks`. `stream-json` emits newline-delimited JSON events, with the structured result in the result event. | | `--agent <value>` | `auto`, `yes`, `no`; default `auto` | Controls the CLI's existing agent detection. Detected agents use JSON by default. Use `--agent no` to exercise normal human defaults; an explicit output format selects the requested format. | | `--profile <name>` | Existing CLI profile selection | Selects the profile used to connect to the Supabase API. | | `--workdir <path>` | Normally searches upward from the current directory | Uses the specified directory containing `supabase/` exactly, without ancestor search. This determines the local project context and linked project. | | `--debug` | Off unless enabled | Writes debug logs to stderr. | | `--help`, `-h` | No value | Shows command usage, flags, and conditional token permissions. | Other inherited global options remain listed in `supabase issues --help`; this PR does not change them. Although inherited help lists `--output` / `-o`, this command rejects that legacy output flag and directs callers to `--output-format`. ### Exit behavior | Condition | Result | | --- | --- | | Checks complete and no displayed issue reaches `--fail-on` | Exit `0`. Findings alone do not fail the default `--fail-on none` run. | | A displayed issue reaches the configured `--fail-on` threshold | Exit `1`. | | A hosted check is reported unavailable | Coverage includes the reason; exit `1`, even with `--fail-on none`. | | Local/direct-URL `--type all` cannot run health | Health is marked unavailable; this expected limitation alone does not force exit `1`. The findings threshold still applies. | | Invalid arguments, unsupported explicit health target, authentication, or execution failure | Nonzero exit; not a clean assessment. | For example, `--severity critical --fail-on warning` fails only if a critical issue is displayed. Warning issues have already been filtered out. An empty result means no issues match the filter, not that every check completed successfully. ### Examples ```sh supabase issues supabase issues --remote --type security --severity warning supabase issues --remote=erppftcfodkcyoftaqvb --type health --output-format json supabase issues --remote=erppftcfodkcyoftaqvb --output-format stream-json supabase issues --remote --severity info --fail-on warning supabase issues --remote --agent no --output-format text ``` For scoped access tokens, hosted checks require `advisors_read`. Project selection may additionally require `projects_read`; branch resolution may require `branching_development_read` or `branching_production_read`. `project_admin_read` is optional for this command, as reported by `--help`. ## Verification after merging develop The full E2E matrix ran on `afe18cdfa` with the compiled macOS CLI. On final head `cbfe5be78`, Issues registers permissions after all flags so permission discovery includes the stack selector on both backends. The rebuilt binary listed the selector and Advisors Read permission in help and returned six security warnings from Mockamaster. The stack routing regression test failed before the fix and passed afterward. | Target | Checks and observed result | | --- | --- | | Mockamaster on staging | All three checks completed and returned 11 grouped issues. Filtering for security warnings returned six groups and exit 1 with `--fail-on warning`. Filtering for critical issues returned zero and exit 0. Health, JSON, stream JSON, legacy Advisors and terminal layouts at 40, 80 and 120 columns also passed. | | Direct PostgreSQL URL | Two tables with RLS disabled appeared under one critical issue. The table showed two affected resources. JSON identified both tables, stream JSON emitted the structured result, and `--fail-on critical` exited 1. Legacy Advisors still returned its original `results` array. | | Named local stack | `issues --stack cli-2888-qa` selected the running native stack. The security result identified the seeded table. The empty database exited 0 with a findings threshold. With the seeded finding it exited 1. Local `--type all` reported health as unavailable, and explicit local health exited 1. | | Automated checks | 91 unit and docs tests, 57 Advisors and Issues integration tests, and 26 stack-routing tests passed. After correcting permission registration, 104 permission, docs and Issues tests and 83 integration tests passed. Binary build, type checking and changed-file formatting and lint passed. | [GitHub checks for this PR](https://github.com/supabase/cli/pull/7576/checks) ## Follow-up review QA · `b0e030d96` | Check | Observed result | | --- | --- | | Compiled CLI against PostgreSQL | Two outdated extensions (hstore and pg_trgm) had distinct extension identities. A foreign key referencing an auth unique constraint identified its owning table. The terminal counted all three overloaded functions, including two with identical bodies. The upstream mutable-search-path lint omits signatures and can supply the same cache key for identical bodies. | | Compiled CLI against a loopback Management API | An unknown performance severity marked performance unavailable. Security findings survived, health completed, and text, JSON and stream JSON exited 1. The integration tests also exercise unknown severities in security and health. | | Compiled CLI with a loopback telemetry receiver | A findings threshold emitted `IssuesFailOnError`. Incomplete remote coverage emitted `IssuesChecksUnavailableError`, including when the findings threshold was also met. Each run returned the structured findings and exited 1. | | Live Mockamaster on staging | 11 grouped issues, all three requested categories complete, and four affected function entries carrying source cache identities. | ## CLI team review verification · `43942d0e0` - Reproduced the reported 503 with the previous compiled binary. The updated binary preserves successful findings and ordered coverage, reports the failed category as unavailable and exits 1. Verified through a loopback HTTP API in text, JSON and stream JSON. HTTP 401 and 403 remain fatal authentication or permission errors. - Mockamaster returned 11 grouped issues with security, performance and health complete. The security, performance and health requests now run concurrently. The four health checks cover elevated log error rates for Data API, Auth, Storage and Edge Functions. - Two foreign keys on one fixture table produced two JSON findings with their original column metadata, remediation text and valid documentation URLs. The terminal table counted one affected resource. - Passed 156 focused unit tests and 66 Issues and legacy Advisors integration tests. The integration cases cover each category returning 503, out-of-order responses, and permission failures for every category. ## Earlier verification | Check | What was verified | Result | | --- | --- | --- | | Live Mockamaster regression | 24 cases covering Issues, legacy Advisors, validation, JSON/stream-JSON, severity filtering, and fail-on exits | Passed; 16 Issues cases, 4 legacy Advisors cases, and 4 validation/error cases | | Human-readable output | Actual compiled CLI at 80/120 columns; latest head at 40 columns | Tables and stacked fields render correctly; security warnings return 6 grouped issues and complete coverage, exit 0 | | Latest-head focused tests | 14 renderer/logs unit tests and 57 handler integration tests, retries disabled, shuffled seed 1113 | Passed | | Regression sensitivity | Deliberately removed stacked fallback, warning wrapping, and summary wrapping | Tests caught each mutation; restored source passed | | Static checks and build | Types, changed-file lint/formatting, compiled binary | Passed | | Latest-head CI | Code quality, unit/integration suites, CLI and stack E2E, macOS/Windows checks, PR lint, and JS/TS CodeQL | [Passed on `b2c21a6b7`](https://github.com/supabase/cli/actions/runs/43208914209) | Mockamaster has no critical, mixed-severity, or unavailable checks. Those cases are covered by fixtures, not claimed as live coverage. Conditional/draft CI jobs are skipped; the separate CodeQL comparison is neutral due to the base branch's obsolete Go configuration. <details> <summary>Earlier verification on head 681ec2d</summary> - 78 handler/integration tests and 41 renderer/logs unit tests passed with retries disabled and shuffled seed `1112`; types, changed-file lint/formatting, and binary build passed. - Tests caught deliberate mutations to text/machine routing, unavailable coverage, and 120-column width handling. Source was restored and clean tests passed. - All 34 full CI jobs passed, alongside PR lint and JS/TS CodeQL: [CI run](https://github.com/supabase/cli/actions/runs/43206082280). </details> ## How to test Using a build of this branch and an authenticated project: ```sh supabase issues --remote=<project-ref> --agent no supabase issues --remote=<project-ref> --agent no --type security --severity warning supabase issues --remote=<project-ref> --type health --output-format json supabase issues --remote=<project-ref> --output-format stream-json supabase issues --remote=<project-ref> --severity warning --fail-on warning supabase db advisors --remote=<project-ref> ``` Expect readable tables in a normal terminal and stacked fields at 40 columns. JSON modes retain full findings and coverage. `--fail-on warning` exits nonzero when matching warning-or-higher findings exist. The legacy command preserves its response and adds its informational future-deprecation notice on stderr. `--agent no` explicitly selects human defaults when testing from a coding-agent environment. ## Screenshots Actual compiled CLI against Mockamaster. The 80-column screenshot records head `681ec2d`; output at 80/120 columns was verified unchanged by the narrow-terminal follow-up. ### 80-column table  <details> <summary>Additional live screenshots: 120-column table, security warnings, and empty health results</summary> Captured from head `681ec2d` against Mockamaster in Jordi - Team, using the actual compiled CLI in a read-only localhost browser terminal. Output was not reconstructed or projected through jq, and no project resources changed. PTY width was set after browser initialization; the browser canvas may be wider than the configured PTY. ### Default issues, 120 columns All 11 grouped issues, complete security/performance/health coverage, exit 0.  ### Security warnings, 80 columns `--type security --severity warning`: six warning issues and 11 affected findings, wrapped titles, complete coverage, exit 0.  ### Empty health results, 120 columns `--type health`: no matching issues, complete health coverage, exit 0.  </details> ### 40-column stacked output Fresh run of `b2c21a6b7` against Mockamaster: six security-warning issues, complete security coverage, exit 0. Two screenshots show the beginning and end of the same run. The PTY is 40 columns; shared CLI update notices retain their existing behavior.   Linked issue: [CLI-2888](https://linear.app/supabase/issue/CLI-2888/introduce-cli-issues-naming-and-deprecate-advisors).
… its connection (#7773) ## TL;DR A stack call whose owner connection drops mid-request now says whether that owner is still alive and shows its log tail, so the next occurrence shows whether the owner crashed. - `apps/cli/src/commands/start/start.e2e.test.ts › supabase start › applies an edited auth.site_url after stop and start`: `start --runtime docker` failed with `Owner response unavailable; … TransportError … ECONNRESET`. The error doesn't say whether the owner process crashed (its stderr goes to `owner.log`) or closed the socket while still running. When a call fails with an RPC transport error other than a refused connection, the stack error now adds whether the called owner pid still holds the stack lease (or which owner holds it now) and the last lines of the owner log, the same tail the spawn path already reports on startup failure. Same symptom as the open `contract.native-tls` flake. ## ref spotted in: - https://github.com/supabase/cli/actions/runs/45228132156/job/137880078848 --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…7800) ## TL;DR Two flaky setups now spend their budgets where they should. Two stalls with no known cause now name the step that hung. - `start.slim-images.e2e.test.ts › supabase start slim images (e2e)`: the setup failed with `candidate budget exhausted (1ms share)`. A raw `docker pull` could spend the whole shared pull deadline on one stalled registry, leaving almost nothing for the registry fallback. The pull-ahead images now go through `ensureImage`, which splits the deadline across the registry candidates up front. - `serve.stack.e2e.test.ts › attaches and restores temporary overrides on the native Functions member`: after SIGINT the CLI reported exit 1 with empty stderr. The e2e harness turned a signal death into a bare exit 1, so a crash and a kill looked the same. `RunResult` now keeps the spawner's exit failure (the signal), and the interrupt and `requireCliSuccess` messages print it. This is a diagnostic only. - `Container.integration.test.ts › recognizes a cached pinned image without pulling`: the test hit its 120s timeout with no phase. As the first test in the file, it paid the cold `oven/bun` pull inside its own budget, while the runtime's own pull limit is five minutes. A `beforeAll` now prepares the image once, with a budget sized to that limit, so a stalled pull fails with the runtime's own diagnostic. - `Rest.integration.test.ts › routes native PostgREST to the owned database Unix socket`: the test normally takes a few seconds but hit the suite's 30s default. The vitest location points into the sibling test, so it gives no clue. The test now records its current phase and fails under the timeout with the phase that stalled. This is a diagnostic only. ## ref spotted in: - https://github.com/supabase/cli/actions/runs/45431590946/job/138578079663 - https://github.com/supabase/cli/actions/runs/45405584432/job/138485312220 - https://github.com/supabase/cli/actions/runs/45453205965/job/138655579804 - https://github.com/supabase/cli/actions/runs/45397651231/job/138457581491 - https://github.com/supabase/cli/actions/runs/45534442675/job/138937468550 --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…-3206) (#7784) ## TL;DR stops the Studio and pg-meta healthchecks leaving a leftover `node` process behind every time a probe times out after `supabase start` ## whats missing? both healthchecks run `node --eval` under `/bin/sh -c` with a 2s timeout, so a slow probe gets its `sh` killed and the orphaned `node` is handed to PID 1, the app server, which never collects it so each timed out probe leaves one more `<defunct>` process in the container for as long as it runs and a plain start already leaves one behind while Studio warms up ## now fixed by: prefixing both probes with `exec` so `sh` hands over to `node` and the timeout lands on `node` itself, keeping the shell form that works on Podman and Windows and the same exit codes for healthy and failing probes, and running stacks pick it up after `supabase stop` and `supabase start` ## ref: - closes #7776 - closes CLI-3206 - related: supabase/supabase#53512
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This bumps storage from v1.98.9-r0 to v1.99.0-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.99.0-r0 Planned after supabase/slim-services published v1.99.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary Approving the weekly `chore: production deploy` PR fast-forwards `main`, and the push to `main` publishes a stable release straight away. So one approval was all it took to ship stable, with no point to stop and check it was meant to go out. This adds a sign-off step for stable releases only, modelled on the `config-release` gate: - A new `Approve stable release` job in `release.yml` uses the `cli-stable-release` environment. Its required reviewers are the `cli` team and it can only deploy from `main`. `release` waits on it for stable, and it's skipped for beta, next, maintenance and dry runs. - The plan job fails a stable release if that environment has no required-reviewers rule, since GitHub would otherwise create a missing environment with no protection. - develop and next plans no longer wait on a `main` run that's parked at the sign-off, so a pending stable release doesn't hold up prereleases. - Rejecting the sign-off stops the release without firing the Slack failure alert. `main` stays ahead of the last stable tag and the next stable release picks those commits up. - The deploy PR body now says that publishing waits for the sign-off, and `release-process.md` covers the new step, including clearing a stale waiting run that's holding `main`'s concurrency slot. The `cli-stable-release` environment is already set up in repo settings.
## Summary After `supabase init`, the stack hint told users to set `SUPABASE_EXPERIMENTAL_STACK=1` before their next `supabase init`. It prints right after init has written `supabase/config.jsonc`, so people (and coding agents) rerun init in the same folder straight away and hit "config file exists". This changes the hint to give a command that works in that folder: ``` Try the new faster, lighter, parallel local stack. To use it in this project, run `SUPABASE_EXPERIMENTAL_STACK=1 supabase init --force` before you edit supabase/config.jsonc. Steps and limitations: https://supabase.com/docs/guides/local-development/running-multiple-local-projects ``` At that point `--force` only replaces the template init just wrote. The init exit code and the existing-config error are unchanged. It also adds `SUPABASE_EXPERIMENTAL_STACK` to the env_signals value keys, so telemetry records when the env var is set and to what (opt-in or opt-out). - `stack-nudge.ts`: new hint wording - `event-catalog.ts`: `SUPABASE_EXPERIMENTAL_STACK` in `EnvSignalValueKeys` - Tests: init integration test expects the new wording; `collectEnvSignals` unit test covers the new key ## Linked issue No issue, Supabase maintainer. - [x] The linked issue is open and carries the `open-for-contribution` label (or I'm a Supabase maintainer) ## Checklist - [x] PR title follows [Conventional Commits](https://www.conventionalcommits.org/) (`feat(scope):`, `fix(scope):`, `chore(scope):`, …) - [x] Tests added or updated - [x] `pnpm check:all` passes locally
This bumps storage from v1.99.0-r0 to v1.99.1-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.99.1-r0 Planned after supabase/slim-services published v1.99.1-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps storage from v1.99.1-r0 to v1.99.2-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.99.2-r0 Planned after supabase/slim-services published v1.99.2-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
## TL;DR stops imgproxy piling up a leftover process every time its healthcheck times out after `supabase start` ## whats missing? plain command healthchecks like `imgproxy health` run under `/bin/sh -c`, so a timeout kills only `sh` and hands the probe to imgproxy, which never collects it ## now fixed by: starting those probes with `exec`, so the timeout kills the probe itself and nothing is left behind ## ref: - closes #7807 - closes CLI-3229 - missed in: #5847
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This bumps storage from v1.99.2-r0 to v1.99.3-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.99.3-r0 Planned after supabase/slim-services published v1.99.3-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary This PR adds the `migrations` topic to `supabase skill display`, with a `migration` alias, and points the overview and the `db-query` topic at it. It is stacked on #7855; review only the last commit until that merges. For [CLI-3306](https://linear.app/supabase/issue/CLI-3306/add-migrations-skill-topic) ### `migrations` topic - **Workflow:** - Create a migration with `migration new`, apply it locally with `migration up` or `db reset`, compare with `migration list --remote`, and push. - When the user gave no ref, run bare `migration list --remote` once and read the resolved ref from its `Target:` line. Use `--remote="$PROJECT_REF"` from then on. - **Pushing to a hosted project:** the confirmation error names only the action and the target, so the agent must supply the rest. - Run `db push --dry-run` first, then show the user the pending files and their SQL, including seeds, roles, and vault secrets. - After approval, re-run with the approved ref and `--yes`. - Prefer `db push` over `migration up --remote`. - After a failed push, check which files were applied. A file with its own transaction control may be partly applied. - **Passwords:** which commands take `--password`, and when the temporary login role makes it unnecessary. - **Generating migrations:** `db diff -f` against the local database. `db diff --remote` is for review only, because a migration written from it is not recorded in the remote history. - **History drift:** what to do for each `db push` and `db pull` mismatch message. - `migration fetch` for remote-only versions. - `db push --include-all` only for files the user confirms were never applied. - `migration repair` only with explicit versions. - Never run the CLI's suggested repair commands as printed. They mark unpushed migrations as applied. - **Resetting:** what `--version` and `--last` do. `db reset --remote` only on the user's explicit request. - **Declarative schemas:** how to detect them, with a pointer to `db schema declarative sync`. ### Overview and `db-query` - The overview's Topics section and examples point to `skill display migrations`, and so does the `db-query` line about schema changes. - The overview now says to build the description of a hosted change from the command and its inputs, plus any details in the error, because the confirmation error usually carries none. - The overview says that database commands on a ref, branch, or bare `--remote` need no database password unless the CLI reports a login failure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
| const shape = describeFlagSchema(spec, parameter.schema); | ||
| if (parameterName === "dry_run") { | ||
| fail('unsupported in this runtime: server-side "dry_run" parameter'); | ||
| } else if (isSecretField(spec, parameter.schema)) { |
There was a problem hiding this comment.
🟡 Severity: MEDIUM
An OpenAPI query parameter named api_key, access_token, or password is accepted when its schema lacks explicit secret markers; unlike body fields, its name is not checked. The generated flag can then appear unredacted in --dry-run previews and consent details, exposing credentials in terminal or CI logs.
Helpful? Add 👍 / 👎
💡 Fix Suggestion
Suggestion: Also check the query parameter's name with the existing credentialLike helper, as is done for body fields. A query parameter named like api_key, access_token or password is then rejected as unsupported, even when its schema has no secret markers. Its value can't appear unmasked in --dry-run previews or consent details. Update the error message to say the parameter is secret or credential-like.
⚠️ Experimental Feature: This code suggestion is automatically generated. Please review carefully.
| } else if (isSecretField(spec, parameter.schema)) { | |
| } else if (credentialLike(parameterName) || isSecretField(spec, parameter.schema)) { |
This bumps realtime from v2.180.4-r0 to v2.180.5-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.180.5-r0 Planned after supabase/slim-services published v2.180.5-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary With experimental stack mode on, `supabase status` used to be a straight alias for `supabase stack status`, so it lost the linked project info that the legacy `status` shows. This makes stack-mode `status` its own command that prints the link state and then runs `stack status`. - Text output prints the `Linked Project:` / `Not linked.` block first, then the stack status. The block still prints when no stack exists, before the usual not-found error. - JSON output gets a `linked_project` field, and JSON/stream-json error output carries it too via the machine error context. - `--env` output is unchanged and matches `stack status --env`, so it's still safe to redirect into a `.env` file. - Invalid flag combinations (legacy `-o`, `--override-name` without `--env`) are rejected before anything is printed. - `supabase stack status` is unchanged and doesn't include `linked_project`. The link block describes the checkout (`--workdir`), not the stack picked with `--stack`. That's noted in `apps/cli/docs/stack-commands.md`. It also moves the lazy Management API client layer that `status` and `stack start` both built inline into `apps/cli/src/auth/lazy-platform-api-factory.layer.ts`.
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
… on a dry run (CLI-3321) (#7876) ## Summary `db push` and `db dump` resolve the hosted connection before they look at `--dry-run`. Under `--yes` or a shell `SUPABASE_YES`, a dry run could reach the temporary login role's retry and remove every network ban listed on the project, which a dry run should never do. It's easy to hit from CI and agents, where `SUPABASE_YES` is often exported for the whole job. `--dry-run` now takes priority over `--yes` for ban removal, and passing both behaves exactly like `--dry-run` on its own. If a dry run is blocked by a ban, it fails with `LinkedDbNetworkBannedError` and points at `supabase network-bans remove` instead of suggesting `--yes`, since re-running with `--yes` wouldn't change anything there. The connection resolver takes a `dryRun` input, so the precedence lives in one place rather than in each handler. ## Only removing bans that appear while connecting Even outside a dry run, `--yes` used to clear every listed ban, including ones that were on the project before the command ran and had nothing to do with it. Temp-role pooler connections now list the bans before minting the login role, and when the retry later finds bans, `--yes` only removes the ones that appeared since that first listing. - Bans that were already there are never removed. The error names them and points at `supabase network-bans remove` if they should be lifted. - If the first listing fails, nothing is removed, and the error says the CLI couldn't tell which bans are new. - Without `--yes`, the error still asks for `--yes`, but now names only the new bans. This adds one ban-list call to every temp-role pooler connection. The permission manifest and `command-target.md` are updated to match, and ADR 0033 notes the baseline listing.
This bumps realtime from v2.180.5-r0 to v2.181.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.181.0-r0 Planned after supabase/slim-services published v2.181.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Adds the `functions` topic to `supabase skill display`, covering Edge Functions for agents: - `functions new`, `serve`, `deploy`, and `download`, and which of them are local-only or hosted-only. - Running `functions serve` in the background, how to tell it is ready, and how to stop it cleanly. - The hosted approval flow for deploy, including showing the user the target and function names before the re-run. - Local env files versus hosted secrets, with `secrets set` covered only as far as functions need it. - Exact recovery steps for common failures. The overview links to the topic. This PR also replaces the "More topics" footer, which listed every other topic, with a short hand-picked "Related topics" list. Only `db-query` and `migrations` list related topics, each naming the other, and every topic other than the overview ends with a pointer to `supabase skill display` for the full list. The old footer grew with every topic added and pushed `migrations` toward the rendered size cap, so topic PRs could pass alone and fail once merged together. The earlier trims to `migrations.md` made for the cap are reverted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This bumps storage from v1.101.4-r0 to v1.101.5-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.101.5-r0 Planned after supabase/slim-services published v1.101.5-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps storage from v1.101.5-r0 to v1.103.0-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.103.0-r0 Planned after supabase/slim-services published v1.102.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Managed commands now report failures after required cleanup and before cache updates and telemetry. If a caller presses Ctrl-C during the analytics drain, the diagnostic remains visible and the process still exits with code 130. If writing the diagnostic fails, telemetry records the original command failure while the process returns the writer failure without retrying the diagnostic. Legacy commands and successful result delivery keep their existing behavior.
| if (state.draft) { | ||
| return "draft"; | ||
| } | ||
| if (approval?.state === "DISMISSED") { |
There was a problem hiding this comment.
🟡 Severity: MEDIUM
latestApproverReview includes CHANGES_REQUESTED, but this hold check recognizes only DISMISSED. A supabase-oss change request is therefore treated as needing a fresh approval, and the next sweep can approve and queue the PR despite that explicit review block.
Helpful? Add 👍 / 👎
💡 Fix Suggestion
Suggestion: Make holdReason also hold the PR when the latest supabase-oss review is CHANGES_REQUESTED, not only when it is DISMISSED. This stops the sweep from re-approving and enqueuing a PR that has an explicit change request. Use a distinct hold message for each state so the logs stay accurate.
⚠️ Experimental Feature: This code suggestion is automatically generated. Please review carefully.
| if (approval?.state === "DISMISSED") { | |
| if (approval?.state === "DISMISSED" || approval?.state === "CHANGES_REQUESTED") { | |
| return approval.state === "DISMISSED" ? "approval dismissed" : "changes requested"; |
Approving this PR fast-forwards
main. Publishing the stable release then waits for acliteam sign-off in the Release run.functions serveleaving the stack's network (fix(cli): stopfunctions serveleaving the stack's network #7874)db reset(CLI-3313) (fix(cli): keep the stack's network ondb reset(CLI-3313) #7866)db dumpdropping function privileges (CLI-3299) (fix(cli): stopdb dumpdropping function privileges (CLI-3299) #7858)objects_metadata_path(CLI-3150) (feat(cli): seed object metadata fromobjects_metadata_path(CLI-3150) #7859)