Repository navigation
chore: production deploy - #7771
Conversation
supabase-cli-releaser
Bot
commented
Nov 24, 2026
- chore(api): sync Management API OpenAPI spec (chore(api): sync Management API OpenAPI spec #7754)
- feat(cli): nudge legacy start and init users toward the new local stack (feat(cli): nudge legacy start and init users toward the new local stack #7649)
- fix(cli): point to stacks left on other branches (CLI-2980) (fix(cli): point to stacks left on other branches (CLI-2980) #7670)
- chore(stack): bump realtime to v2.174.6-r0 (chore(stack): bump realtime to v2.174.6-r0 #7757)
- chore(stack): bump storage to v1.98.6-r0 (chore(stack): bump storage to v1.98.6-r0 #7758)
- feat(cli): write supabase/config.jsonc on init (CLI-2868) (feat(cli): write supabase/config.jsonc on init (CLI-2868) #7756)
- fix(cli): drop the entitlements lookup from sso commands (fix(cli): drop the entitlements lookup from sso commands #7707)
- chore(stack): bump storage to v1.98.7-r0 (chore(stack): bump storage to v1.98.7-r0 #7761)
- chore(docs): publish the CLI sidebar with the command spec (chore(docs): publish the CLI sidebar with the command spec #7745)
- chore(stack): bump realtime to v2.175.0-r0 (chore(stack): bump realtime to v2.175.0-r0 #7762)
- chore(stack): bump edge-runtime to v1.79.4-r0 (chore(stack): bump edge-runtime to v1.79.4-r0 #7769)
- chore(stack): bump realtime to v2.177.0-r0 (chore(stack): bump realtime to v2.177.0-r0 #7764)
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>
…ck (#7649) ## Summary **TL;DR:** `supabase start` on the legacy backend and `supabase init` without the stack opt-in now point users to the experimental local stack (faster, lighter, one project per worktree). Coding agents get one extra line asking them to offer the switch to their user rather than act on it. This drives adoption and feedback for the new stack without changing any command result. **Before:** nothing tells legacy users that the new stack exists. **After:** ```mermaid flowchart LR A["legacy start healthy<br/>or init done"] --> B{"TTY or<br/>coding agent?"} B -- no --> E[no nudge] B -- yes --> C{"start: shown<br/>in last 7 days?"} C -- yes --> E C -- no --> D["output.info nudge<br/>+ agent ask line if agent"] ``` ### What changed - New `command-internal/stack-nudge.ts` holds the messages, the audience check and the throttle. - `start` (fresh start only, never on the already-running path) emits: ``` Try the new local stack: faster, lighter, and one project per worktree in parallel. To switch: remove the fixed ports from supabase/config.toml, then add `stack = true` under `[experimental]`. Steps and limitations: https://supabase.com/docs/guides/local-development/running-multiple-local-projects ``` It shows at most once per 7 days, tracked best-effort in `$SUPABASE_HOME/stack-nudge.json`. Read and write failures never fail `start`. - `init` without the opt-in suggests `SUPABASE_EXPERIMENTAL_STACK=1 supabase init`. With the opt-in, it confirms the stack is enabled and links to the CLI issues page for feedback. - When the CLI detects a coding agent (`--agent yes` or an auto-detected AI tool), it adds one line: "Coding agents: offer this switch to the user and ask before changing …". Without it, agents in real-CLI runs only mentioned the stack; with it, they offered the switch and asked before editing config. - The nudge goes through `output.info`, not raw stderr. Agents run the CLI in JSON mode by default, so a text-only nudge would never reach them. The `start` JSON payload is unchanged; text and json render the line on stderr, and stream-json emits a `log` event. - Interactive-terminal detection uses stdout's TTY state, matching `Output.interactive`. Non-TTY, non-agent runs (CI, pipes) see nothing. - `apps/cli/docs/supabase-home.md` documents the `stack-nudge.json` state file. ### Agent-driven runs We drove fresh coding agents through the flow with a neutral task ("spin up my local Supabase and give me the `.env` values"), never mentioning the new stack, to see whether the nudge reaches them and what they do with it. | Setup | Nudge version | Agent reply | |---|---|---| | Stub CLI replaying `start` text | Benefits + link | Mentioned the new stack in passing | | Real CLI (Docker) | Text-only gate | No nudge at all: the CLI switches agents to JSON output, so the text-only gate hid it. This led to the `output.info` channel | | Real CLI | Benefits + link via `output.info` | Mentioned it in one line | | Real CLI | + exact switch steps | Repeated the steps; did not offer (also with no "don't edit" restriction) | | Real CLI | + agent-only ask line | Offered: "Want me to switch it?", and left `config.toml` untouched | Each row is a single run, so this shows direction rather than a rate. The `init` agent line has not had a real agent run. ### Reviewer notes - Plain-text guidance addressed to agents is new for this CLI. The closest precedent is the `login` Claude Code hint tag. - No new telemetry event. ## Linked issue Supabase maintainer change; no linked issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## TL;DR names a project's stacks on other branches when `stack status` finds none or `stack start` creates one, and points port conflicts at the holder ## whats broken? after `git init`, `stack status` could not find the old stack although `stack list` still showed it. starting again while the old one ran hit a port conflict whose advice targeted the wrong stack ## now fixed by: when no stack matches, `stack status` suggests `--stack <short id>` for this project's stacks with the same name on other branches, and `stack start` prints the same list before it creates a stack. port conflicts now say `supabase stack stop --stack <id>` for the holder. existing users see the extra start line only when such stacks exist ## ref: - closes: #7568
This bumps realtime from v2.174.5-r0 to v2.174.6-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.174.6-r0 Planned after supabase/slim-services published v2.174.6-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.98.5-r0 to v1.98.6-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.98.6-r0 Planned after supabase/slim-services published v1.98.6-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 `supabase init` now creates `supabase/config.jsonc` for new projects instead of `supabase/config.toml`. It starts with a `$schema` line pointing at the hosted config schema, so editors pick up completion and validation straight away, and it keeps every commented-out option the TOML template had. The init template is now maintained as JSONC. Tests that need it as TOML convert it with the same converter `supabase config convert` uses, and a drift test checks it still converts to clean TOML. `config.toml` stays fully supported. A few other bits that come with it: - `init` still treats an existing `config.json`, `config.jsonc` or `config.toml` as the project's config and won't write a second one - `init --force` writes a fresh `config.jsonc` and removes any `config.json` or `config.toml`, so the loader reads the new file - if `.vscode/settings.json` already exists, `init` adds `https://supabase.com/schemas/` to `json.schemaDownload.trustedDomains`, the same as `config convert` does, so VS Code loads the schema without a warning. It never creates `.vscode/` for this, and if the file can't be edited without losing its comments it's left alone with a warning. It only does this in text output, where the edit is reported - the `init`, `start` and `stop` docs and the local stack nudge now name `config.jsonc` ## Release notes New projects created with `supabase init` get `supabase/config.jsonc` instead of `supabase/config.toml`. Existing projects aren't touched, and the CLI and Branching read either format. If you have tools, scripts or CI that only look for `supabase/config.toml`, they should also look for `supabase/config.jsonc` and `supabase/config.json`. To keep using TOML, run `supabase config convert --to toml` after `supabase init`. ## Linked issue Closes CLI-2868
The `sso list`, `add`, `update` and `remove` commands looked up the organization's entitlements after any 4xx to decide whether to print an upgrade hint. The SSO provider routes had no plan gate when that was written, so the lookup added two requests and printed the hint on unrelated failures. The Management API now answers provider create and update with the `entitlement_required` error for organizations without SAML (rolling out), and the shared output and telemetry paths already handle that error, so I deleted the lookup. It was the last one in the CLI. **Changed:** - **No upgrade hint on unrelated SSO errors**: the four commands make no extra requests after a 4xx. The hint, the JSON `error.entitlement` and `cli_upgrade_suggested` come only from a response that carries the `entitlement_required` error, and only such a failure classifies as `plan_limit`. - **404s report the API error**: `sso list` and `sso add` reported every 404 as "SAML 2.0 support is not enabled". A 404 there means the project was not found, so they now surface the API's message and classify the failure as invalid input. I removed the `SsoListSamlDisabledError` and `SsoAddSamlDisabledError` classes, so their tags leave the error-tag snapshot. - **Also removed**: I deleted `suggestUpgrade` and its permission block, the `upgradeSuggested` option of `statusCodeActionability` and the `saml_disabled` fingerprint suffix, which only these commands used. **Note:** this supersedes #7471, which kept the lookup helper for `sso add`. Against an API without the gate, `sso add` for an organization without SAML succeeds and prints no hint, as it does today. ## Linear - fixes GROWTH-1460
This bumps storage from v1.98.6-r0 to v1.98.7-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.98.7-r0 Planned after supabase/slim-services published v1.98.7-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>
Generate the CLI sidebar in the docs publisher and include it with the command spec in the same stable release PR. A sidebar-only change can open a release PR. Local previews write both files, and the release PR no longer asks maintainers to copy the sidebar by hand. The one-time sidebar catch-up and redirect are in supabase/supabase#53749. [CLI-3175](https://linear.app/supabase/issue/CLI-3175)
This bumps realtime from v2.174.6-r0 to v2.175.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.175.0-r0 Planned after supabase/slim-services published v2.175.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>
This bumps edge-runtime from v1.79.3-r0 to v1.79.4-r0. https://github.com/supabase/slim-services/releases/tag/edge-runtime-v1.79.4-r0 Planned after supabase/slim-services published v1.79.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 realtime from v2.175.0-r0 to v2.177.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.177.0-r0 Planned after supabase/slim-services published v2.177.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>
This bumps realtime from v2.177.0-r0 to v2.177.1-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.177.1-r0 Planned after supabase/slim-services published v2.177.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>
| if (options.withIntellijSettings) { | ||
| yield* writeIntelliJConfig(options.cwd); | ||
| } | ||
| yield* trustSchemaDomainAfterInit(options.cwd); |
There was a problem hiding this comment.
⚪ Severity: LOW
On supabase init in a cloned project, an attacker-controlled .vscode/settings.json symlink is followed by this call into trustSupabaseSchemaDomain, which writes the schema-trust setting through it. This lets a repository modify a file outside the requested workdir, including the user's global VS Code settings.
Helpful? Add 👍 / 👎
💡 Fix Suggestion
Suggestion: The symlink check has to go inside trustSupabaseSchemaDomain, around lines 122-158. The call at line 358 only invokes that function. Before reading or writing .vscode/settings.json, call fs.readLink(settingsPath) or fs.stat/lstat. If the path is a symlink, skip the update or return an error. Do the same for the .vscode directory, and check that the resolved real path stays inside cwd. This matches how config.jsonc and ensureGitignore already handle symlinks.
There was a problem hiding this comment.
Confirmed. With .vscode/settings.json symlinked to a JSON file outside the checkout, text-mode supabase init rewrote the target and added json.schemaDownload.trustedDomains. trustSupabaseSchemaDomain is not new, but config convert used to be its only caller; this release runs it on every text-mode init, with no flag. The impact is limited to that one fixed key. It can still break a strict consumer: pointed at another checkout's supabase/config.jsonc, it makes supabase config validate fail with an unknown key. Not a blocker. Follow-up: skip the edit when .vscode or settings.json is a symlink (lstat), or resolve the real path and require it to stay inside the project.
…7759) ## TL;DR `supabase start --runtime native` works again in rootless podman and distrobox containers that share the host's `/tmp` ## whats missing? inside those containers host root is unmapped, so `/tmp` shows up as uid 65534 and the native stack only trusted a `/tmp` owned by uid 0, failing every start with `/tmp belongs to uid 65534, not the current user` ## now fixed by: inside a user namespace the native stack also trusts a `/tmp` owned by 65534, the overflow uid it shows for host root, while a 65534 owned `/tmp` outside one and any `/tmp/supabase-<uid>` that is not ours and private are still refused ## ref: - closes: #7755 - missed in: #7036
This bumps edge-runtime from v1.79.4-r0 to v1.79.5-r0. https://github.com/supabase/slim-services/releases/tag/edge-runtime-v1.79.5-r0 Planned after supabase/slim-services published v1.79.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 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 postgres from 15.20.0.002-r0 to 15.20.0.004-r0. https://github.com/supabase/slim-services/releases/tag/postgres-15.20.0.004-r0 Planned after supabase/slim-services published 17.11.0.023-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 adds postgres 17.11.0.023-orioledb-r0 as a new release line. https://github.com/supabase/slim-services/releases/tag/postgres-17.11.0.023-orioledb-r0 Planned after supabase/slim-services published 17.11.0.023-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 storage from v1.98.7-r0 to v1.98.8-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.98.8-r0 Planned after supabase/slim-services published v1.98.8-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 v0.100.1-r0 to v1.0.0-r0. https://github.com/supabase/slim-services/releases/tag/pgmeta-v1.0.0-r0 Planned after supabase/slim-services published v1.0.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>
jgoux
left a comment
There was a problem hiding this comment.
This will ship as v3.4.0 (2 feat, 3 fix, no breaking titles). All checks are green on ac6b3b6b6, including Check deploy, and the develop Release and live e2e runs on this head succeeded. No changed path is on the release-infra backport list, so nothing needs cherry-picking to v2.x. The Dockerfile image pins match packages/stack.
The inline comments are non-blocking follow-ups. One more nit comes from init now writing config.jsonc:
apps/cli/docs/supabase-home.mdstill names onlyconfig.tomlandconfig.json, in both the project tree and the discovery paragraph.DEFAULT_CONFIG_FILEinapps/cli/src/command-internal/config-advice.tsis documented as whereinitwrites, but still points atsupabase/config.toml. Fallback messages, such as theconfig pushnotes, therefore name a fileinitno longer creates.
The PR description lists 12 of the 20 commits. It is missing #7759 (start the native stack in rootless containers) and the later chore bumps.
|
|
||
| yield* fs.makeDirectory(supabaseDir, { recursive: true, mode: INIT_DIR_MODE }); | ||
| // Replaces a symlinked config.jsonc instead of writing through to its target. | ||
| yield* fs.remove(configJsoncPath, { force: true }); |
There was a problem hiding this comment.
init --force now unlinks config.jsonc before writing its replacement. If the write fails (ENOSPC) or the process is interrupted, an existing JSONC project is left with no config. The base kept config.jsonc until the TOML write succeeded. Low risk, since it needs a failure during an explicit reset. Follow-up: write a temporary sibling and rename it over the destination. That still replaces a symlink rather than writing through it, the same as the write-then-rename in stack-nudge.ts.
|
|
||
| const startStackNudgeMessage = (configFile: ConfigFileRef): string => | ||
| `Try the new local stack: faster, lighter, and one project per worktree in parallel. | ||
| To switch: run \`supabase stop\`, remove the fixed ports from ${configFile.path}, then set ${configSetting(configFile.format, "experimental", "stack", "true")}. |
There was a problem hiding this comment.
The nudge tells the user to run supabase stop before anything checks whether the project can run on the new stack. An OrioleDB project with experimental.s3_* set is rejected at the next start (unsupportedConfigPaths in stack-config.ts), so following these steps stops a working stack. The error names the setting, and turning experimental.stack back off recovers it, so this is minor. Follow-up: skip the nudge for configs the stack rejects, or point at the limitations before the stop step.