Skip to content

chore: production deploy - #6514

Merged
supabase-cli-releaser[bot] merged 198 commits into
mainfrom
develop
Sep 25, 2026
Merged

supabase-cli-releaser[bot] merged 198 commits into
mainfrom
develop

Conversation

@supabase-cli-releaser

Copy link
Copy Markdown
Contributor

Coly010 and others added 9 commits September 7, 2026 17:03
)

## What kind of change does this PR introduce?

Tooling/chore — adds commitlint, tied to a fixed scope list.

## What is the current behavior?

There is no commitlint or commitizen setup. PR titles must follow
conventional-commits format (checked in CI by
`amannn/action-semantic-pull-request`), but scopes are unrestricted free
text, enforced only by human review.

## What is the new behavior?

- Adds `commitlint.config.js` with a `scope-enum` rule: one scope per
real turbo/pnpm workspace project (`api`, `cli`, `cli-e2e`, `cli-go`,
`cli-test-helpers`, `config`, `docs`, `process-compose`, `stack` —
verified against `pnpm -r list`) plus escape scopes for changes that
don't map to a single project (`ci`, `repo`, `misc`, `release`). The 8
per-platform `packages/cli-{platform}` binary-wrapper packages are
folded into `cli`. `release` isn't a turbo project (`tools/release` has
no `package.json`) but is kept as an escape scope because
`propose-release-notes.ts` genuinely commits with that scope.
- Adds a local `commit-msg` git hook via husky that runs commitlint on
every commit. CI checkouts skip installing this hook (`HUSKY=0` in the
shared setup action) so bot-authored commits are never gated by it —
scope enforcement for those stays on the PR-title CI check.
- Mirrors the same scope list into the
`amannn/action-semantic-pull-request` step in `lint-pull-request.yml`,
so PR titles are held to the same list in CI.
- Updates `.github/dependabot.yml`: the `npm` and `docker` ecosystems
previously auto-generated scopes (`deps`/`deps-dev`/`docker`) that
aren't in the new fixed list, which would have started failing their own
PR-title check — both remapped to `misc`. The `gomod` ecosystem had no
`commit-message` config at all, so it fell back to a repository-detected
scope also outside the allowlist — mapped to `chore(cli-go): ` since
that's precisely the project those updates belong to. `github-actions`
(already `ci`) is untouched.
- Documents the local commit-msg hook in `CONTRIBUTING.md`, and adds one
clarifying sentence to `AGENTS.md` pointing at `commitlint.config.js` as
the source of truth for allowed scopes.

No commitizen/interactive prompt added — commitlint validates whatever
message is typed.
…2285) (#6497)

## Summary

An explicit `--workdir`/`SUPABASE_WORKDIR` could silently let
`loadCliConfig`/`findCliProjectRoot` climb ancestor directories to find
`supabase/config.{toml,json}` — so `--workdir ./sub` where
`sub/supabase/` doesn't exist could silently load, or **push**, an
unrelated parent project's config instead of failing. A defaulted
(unset) workdir still climbs exactly as before.

Linear:
[CLI-2285](https://linear.app/supabase/issue/CLI-2285/explicit-workdir-must-not-climb-to-a-parent-project-config-diffpush).

## What changed

- `LegacyCliSettings` gains `explicitWorkdir: boolean`; a new
`legacyShouldSearchAncestors(cliSettings)` helper
(`command-internal/legacy-workdir-search.ts`) gates the ancestor search
at every affected call site: `config diff/push/pull`, `gen types`, `seed
buckets`, `storage ls/mv/rm/cp`, `functions new`, `experimental
workers`, and `functions serve/deploy`.
- `packages/config`'s `findCliProjectRoot` gains an optional
`FindCliProjectPathsOptions` parameter (additive), matching
`findCliProjectPaths`'s existing `search: false` support.
- `config diff/push/pull`, `gen types`, `storage`, and `seed buckets`
now hard-fail with a clear error instead of silently falling back to
embedded defaults (or an unrelated ancestor's config) when an explicit
workdir has no project.
- The same commands now validate the workdir is an existing directory up
front (reusing the existing `start`/`stop`/`status` pattern), so a
typo'd path fails with "no such directory" instead of a confusing "file
not found".
- The missing-project message
(`command-internal/legacy-workdir-project.ts`) no longer suggests
`supabase init` for an explicit workdir — which could scaffold a fresh
config at the wrong path, leading to a subsequent `push` overwriting the
real project — and instead names the resolved path, suggesting an
ancestor's path when one genuinely has a project.
- `gen types` no longer leaks a raw `CliConfigParseError` tag as its
error message on a malformed config.
- `experimental workers new` gained the same workdir-existence guard
`functions new` already had, closing an identical
scaffold-at-a-nonexistent-path gap.

## Follow-ups filed separately (explicitly out of scope here)

- `secrets set` ignores `--workdir` entirely (loads from
`runtimeInfo.cwd`).
- Extending the explicit-workdir hard-fail policy to the
`db`/`migration` TOML-only loaders.
- `--debug` workdir logging, `--workdir` help-text tightening, and a
couple of smaller consistency nits (error-code unification across the
`config` family, `workers push`'s hardcoded error paths).
….4 in /apps/cli-go in the go-minor group across 1 directory (#6504)

Bumps the go-minor group with 1 update in the /apps/cli-go directory:
[github.com/posthog/posthog-go](https://github.com/posthog/posthog-go).

Updates `github.com/posthog/posthog-go` from 1.24.3 to 1.24.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/posthog/posthog-go/releases">github.com/posthog/posthog-go's
releases</a>.</em></p>
<blockquote>
<h2>1.24.4</h2>
<h2>Unreleased</h2>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/PostHog/posthog-go/blob/main/CHANGELOG.md">github.com/posthog/posthog-go's
changelog</a>.</em></p>
<blockquote>
<h2>1.24.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>c3270b6: Align local feature flag property matching with the flags
service, including boolean-array precedence, canonical JSON
stringification, and operator-specific case folding.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/PostHog/posthog-go/commit/0216c2384b67ef39914e20fd0065c57243fb42d2"><code>0216c23</code></a>
chore: release v1.24.4 [version bump] [skip ci]</li>
<li><a
href="https://github.com/PostHog/posthog-go/commit/c3270b6bd8138865c0f0d0a57affaceb7a2bb6cb"><code>c3270b6</code></a>
fix(flags): align local exact matching with the flags service (<a
href="https://redirect.github.com/posthog/posthog-go/issues/300">#300</a>)</li>
<li><a
href="https://github.com/PostHog/posthog-go/commit/d5152ea6c4155c781cbdc0512eb99b60977fe90e"><code>d5152ea</code></a>
chore(deps): bump the github-actions group with 2 updates (<a
href="https://redirect.github.com/posthog/posthog-go/issues/304">#304</a>)</li>
<li><a
href="https://github.com/PostHog/posthog-go/commit/518931f315c1ff5bb2786d4b53b0c9fc316a1d1b"><code>518931f</code></a>
chore(deps-dev): bump <code>@​changesets/cli</code> from 3.0.0 to 3.0.1
in the release-tool...</li>
<li>See full diff in <a
href="https://github.com/posthog/posthog-go/compare/v1.24.3...v1.24.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/posthog/posthog-go&package-manager=go_modules&previous-version=1.24.3&new-version=1.24.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…sumer (CLI-2339) (#6498)

## Summary

CLI-2320 confined
`auth.email.template.*.content_path`/`auth.email.notification.*.content_path`
resolution to the project root, but only inside `config push`'s own
content loader. This
centralizes that containment into the shared resolver
`legacyResolveEmailTemplateContentPath`
(`legacy-config-validate.ts`), so it now protects every consumer, with
no flag and no opt-out:
`config push`, `start` (an eager pre-Docker validation pass covering
every configured template
plus every enabled notification — the same set Kong's mount builder
consumes), and the shared
config-validation path reached by
`db`/`migration`/`status`/`stop`/`functions deploy`/`functions
serve`/`functions download`/`gen types`/`inspect`/`bootstrap`.

Linear: CLI-2339 (follow-up from CLI-2320's own PR review, #6489).

While extending the check's reach, two bugs surfaced and are fixed in
the same change:

- The canonicalization helper treated any `realpath` failure as "this
path doesn't exist yet" and
fell back to lexical resolution — which also covers a dangling symlink,
an `EACCES`-blocked
target, or a symlink loop, all of which exist on disk but couldn't be
canonicalized. That let an
in-root symlink pointing outside the project root bypass containment
silently, most seriously for
`start`'s Kong mount (a root-privileged, `rw` Docker bind mount). Fixed
by distinguishing
"genuinely absent" from "exists but uncanonicalizable" and following a
symlink to its real target
before checking it. The ancestor walk was also rewritten iteratively to
remove a stack-depth
  limit on deeply nested missing paths.
- `start`'s Kong mount resolved and validated a path early, then
independently re-derived and used
a second, unresolved path much later when building the Docker bind mount
— a check/use gap and
duplicated resolution logic. The validated, read-verified path is now
threaded straight through
  to the bind-mount builder instead of being re-derived.

The rejection message now includes the declared `content_path` value and
the project root (not the
fully symlink-dereferenced target, to avoid echoing back where an
escaping symlink actually
points).

## What changed

- `legacy-config-validate.ts` — `legacyResolveEmailTemplateContentPath`
now canonicalizes and
containment-checks its result before returning; new
`canonicalPathForContainment`/
  `canonicalizeExistingPath`/`isPathContainedInRoot` helpers.
- `push.auth-email-content.ts` — deleted its local, now-redundant
containment helpers; both
  template and notification loading route through the shared resolver.
- `start.handler.ts`/`kong.service.ts` —
`resolveKongEmailTemplateMounts` resolves, containment-
checks, and read-verifies every Kong-mounted template/notification once,
early, before any
Docker work; `LegacyKongEmailTemplateMount` carries the resolved path,
and
`legacyBuildKongEmailTemplateBind` is now a pure formatter with no
resolution logic of its own.
- `SIDE_EFFECTS.md` updates across `start`, `status`, `stop`, `db diff`,
`migration squash`,
`functions deploy/serve/download`, and one line in
`apps/cli/AGENTS.md`'s "config validation has
  one home" section.

Follow-ups filed for the adjacent untrusted-path fields this ticket
didn't touch (CLI-2344), and a
message-polish gap where an `EACCES` behind a followed symlink surfaces
a raw filesystem error
instead of the usual containment message (CLI-2345) — in both cases the
path is still rejected,
just with a less specific error.
## TL;DR

Adds live e2e coverage for `branches get`, `branches update` and
`branches disable`

## whats introduced?

- `branches get`: creates a branch, fetches it by name and asserts the
pretty connection table renders
- `branches update`: creates a branch, renames it with `--name --output
json`, asserts the confirmation and payload, then proves the new name
resolves through `branches get`
- `branches disable`: creates and deletes a branch so branching is
enabled with no preview branches left, disables preview branching for
the project and asserts the confirmation on stdout

## ref:

- closes: CLI-2327
- passed here: https://github.com/supabase/cli/actions/runs/34112181467
## TL;DR
fixes `supabase sso update --log-level error <id>` failing with 
`accepts 1 arg(s), received 2` by registering the built-in `--log-level`
as value taking in the raw argv scanners..

## whats biting the user?
`--log-level` shows up in every command's help and the parser accepts
it, but the raw argv scanners did not know it consumes a value
so `error` was counted as an extra positional and the command refused to
run. A typed `--log-level` also killed shell completion for the rest of
the line.

## now fixed by:
- registering `log-level` in `PERSISTENT_VALUE_FLAG_NAMES` and
`globalFlagsWithValues`, so positional counting consumes its value like
every other global
- registering the built-in flags where output format and shell
completion resolve, so `--version` output and tab completion keep
working around them

also added regression tests for the issue's exact spelling plus the
pre-path, inline, completion, and version spellings

## ref: 
- closes CLI-2329
- closes #6482
## Summary

Rewrites `@supabase/stack` around one managed-only runtime shared by
strict native and container execution modes. The package owns durable
configuration and secrets, sticky ports, artifact preparation, lifecycle
arbitration, per-service eager or lazy activation, service migrations,
ingress, retained and live logs, and exact resource cleanup.

A stopped stack has no resident supervisor or runtime resources: status
and retained logs come from durable state, while a later start creates a
fresh owner and performs clean recovery. PostgreSQL 17 is the only eager
service by default; other enabled services activate through stack
ingress, and callers can configure eager activation. Dependency-ready
workloads start concurrently. Docker-compatible engines, including
Podman, share the same container path.

Enabled lazy services prepare their artifacts in the background after
startup by default. `preparation: "on-demand"` retains full lazy
downloading, while explicit `prepare()` remains available in either
mode. Foreground activation prepares its dependency closure concurrently
and shares in-flight downloads with background preparation. All selected
workload downloads can run concurrently. Native archives are streamed to
disk while hashing, verified before extraction, and decompressed without
retaining whole archives in memory. Runtime cleanup cancels unfinished
transfers and retains completed cache entries. Status exposes artifact
preparation separately from service readiness, and explicit preparation
reports progress through `onProgress`.

Edge Functions are served through the stack-owned Edge Runtime for
package consumers. The package runs independently of the CLI and accepts
normalized `StackConfig` values without reading `config.toml`. All CLI
integration, including `supabase functions serve` and lifecycle commands
under `experimental start`, belongs to M5 in separate PRs. Existing CLI
Functions behavior is preserved. The deleted `next` CLI was a disposable
proving ground and is not part of this PR.

Service preparation now lives in the published runtime artifacts:
PostgreSQL owns first boot and bundled migrations, service helpers own
migration and Pooler tenant provisioning, and Node services expose
public launchers shared with their images. The stack supplies instance
settings and sequences those commands. Default images use the configured
slim-services tags or digests, including the artifacts from
[slim-services #299](supabase/slim-services#299)
and the BEAM versions republished after [slim-services
#302](supabase/slim-services#302). Native
downloads are checked against the checksum published with the same
release. BEAM launchers own the shared runtime defaults in native and
container modes; Vector configuration and Edge Functions bootstrap
remain stack-owned.

Unix control sockets bind inside owner-private directories. Container
mount paths preserve CSV special characters, and default state paths use
the user home directory when `HOME` is absent.

Obsolete process-compose integration and superseded runtime helpers are
removed.

Supersedes #6385
)

## TL;DR
adds live e2e coverage for `network-restrictions get` and `update`,
covering the command family

## whats introduced?
- `network-restrictions get`: reads the target project's restrictions
and proves the json payload carries `entitlement`, `config` and `status`
- `network-restrictions update`: captures the current allowlist,
replaces it with documentation ranges, proves the replacement in its own
output and through get, then restore
s...
## ref:
- closes: CLI-2288
- tested here: https://github.com/supabase/cli/actions/runs/33969368307
Bumps the actions-major group with 2 updates:
[docker/setup-qemu-action](https://github.com/docker/setup-qemu-action)
and
[linear/linear-release-action](https://github.com/linear/linear-release-action).

Updates `docker/setup-qemu-action` from 4.2.0 to 4.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/docker/setup-qemu-action/releases">docker/setup-qemu-action's
releases</a>.</em></p>
<blockquote>
<h2>v4.3.0</h2>
<ul>
<li>Bump <code>@​docker/actions-toolkit</code> from 0.92.0 to 0.96.0 in
<a
href="https://redirect.github.com/docker/setup-qemu-action/pull/336">docker/setup-qemu-action#336</a></li>
<li>Bump <code>@​sigstore/verify</code> from 3.1.0 to 3.1.1 in <a
href="https://redirect.github.com/docker/setup-qemu-action/pull/316">docker/setup-qemu-action#316</a></li>
<li>Bump brace-expansion from 1.1.15 to 1.1.18 in <a
href="https://redirect.github.com/docker/setup-qemu-action/pull/332">docker/setup-qemu-action#332</a></li>
<li>Bump js-yaml from 4.2.0 to 4.3.1 in <a
href="https://redirect.github.com/docker/setup-qemu-action/pull/334">docker/setup-qemu-action#334</a></li>
<li>Bump postcss from 8.5.10 to 8.5.25 in <a
href="https://redirect.github.com/docker/setup-qemu-action/pull/331">docker/setup-qemu-action#331</a></li>
<li>Bump sigstore from 4.1.0 to 4.1.1 in <a
href="https://redirect.github.com/docker/setup-qemu-action/pull/317">docker/setup-qemu-action#317</a></li>
<li>Bump undici from 6.27.0 to 6.28.0 in <a
href="https://redirect.github.com/docker/setup-qemu-action/pull/333">docker/setup-qemu-action#333</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/docker/setup-qemu-action/compare/v4.2.0...v4.3.0">https://github.com/docker/setup-qemu-action/compare/v4.2.0...v4.3.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/1f40c72289eff860ee54a304f1438e3cff362e0a"><code>1f40c72</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/setup-qemu-action/issues/336">#336</a>
from docker/dependabot/npm_and_yarn/docker/actions-to...</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/932216e29e2417c3aa0bc5aec3c57089030cef2c"><code>932216e</code></a>
[dependabot skip] chore: update generated content</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/a39e895360e601ae54e9ac97b8ea3b99e5f40491"><code>a39e895</code></a>
build(deps): bump <code>@​docker/actions-toolkit</code> from 0.92.0 to
0.96.0</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/a98ae9ffe777adf16ca44873bab9926427b262fa"><code>a98ae9f</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/setup-qemu-action/issues/333">#333</a>
from docker/dependabot/npm_and_yarn/undici-6.28.0</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/8ebc9d118344dda0af3e25d2a7330010dd33e951"><code>8ebc9d1</code></a>
[dependabot skip] chore: update generated content</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/c41e3fcbc0d6742101e0310c3b008ac3b16a9529"><code>c41e3fc</code></a>
build(deps): bump undici from 6.27.0 to 6.28.0</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/5fc60dfac60f723a3386e73530ff8067f2848f60"><code>5fc60df</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/setup-qemu-action/issues/332">#332</a>
from docker/dependabot/npm_and_yarn/brace-expansion-1...</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/a26e892bb646b50218299a9b391e7a4b0322d96a"><code>a26e892</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/setup-qemu-action/issues/328">#328</a>
from docker/dependabot/github_actions/actions/checkou...</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/aa6d04232374700651c6e7be400e859600041423"><code>aa6d042</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/setup-qemu-action/issues/324">#324</a>
from docker/dependabot/github_actions/actions/setup-n...</li>
<li><a
href="https://github.com/docker/setup-qemu-action/commit/d381ce5c16de15c000da8929fd1fc6e8fdef19e1"><code>d381ce5</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/setup-qemu-action/issues/317">#317</a>
from docker/dependabot/npm_and_yarn/sigstore-4.1.1</li>
<li>Additional commits viewable in <a
href="https://github.com/docker/setup-qemu-action/compare/96fe6ef7f33517b61c61be40b68a1882f3264fb8...1f40c72289eff860ee54a304f1438e3cff362e0a">compare
view</a></li>
</ul>
</details>
<br />

Updates `linear/linear-release-action` from 0.17.1 to 0.17.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/linear/linear-release-action/releases">linear/linear-release-action's
releases</a>.</em></p>
<blockquote>
<h2>v0.17.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Release v0.17.2 by <a
href="https://github.com/axelniklasson"><code>@​axelniklasson</code></a>
in <a
href="https://redirect.github.com/linear/linear-release-action/pull/67">linear/linear-release-action#67</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/linear/linear-release-action/compare/v0.17.1...v0.17.2">https://github.com/linear/linear-release-action/compare/v0.17.1...v0.17.2</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/linear/linear-release-action/commit/53ad0f863963e7f8e270fba18426bbb55ef55384"><code>53ad0f8</code></a>
Release v0.17.2 (<a
href="https://redirect.github.com/linear/linear-release-action/issues/67">#67</a>)</li>
<li>See full diff in <a
href="https://github.com/linear/linear-release-action/compare/3f31fcf14c110cc53579fcc3575a26d469c413b4...53ad0f863963e7f8e270fba18426bbb55ef55384">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@supabase-cli-releaser
supabase-cli-releaser Bot requested a review from a team as a code owner September 8, 2026 02:24
@supabase-cli-releaser supabase-cli-releaser Bot added the do not merge Approve to apply; do not merge. label Sep 8, 2026
Comment thread packages/stack/src/gateway/gateway.integration.test.ts Fixed
Comment thread packages/stack/src/runtime/native-runtime.integration.test.ts Fixed
Coly010 and others added 18 commits September 8, 2026 11:59
…stat throws (CLI-2345) (#6518)

## What kind of change does this PR introduce?

Bug fix.

## What is the current behavior?

`canonicalizeExistingPath` in
`apps/cli/src/command-internal/legacy-config-validate.ts` follows an
in-root symlink one hop by hand (via `readlinkSync`) when `realpathSync`
fails, so a `content_path` containment check can catch a
dangling/looping/unsearchable-target symlink escaping the project root.
When the symlink's target sits one hop inside a directory that's
unsearchable (`EACCES`, e.g. `chmod 000`), the fallback `lstatSync(path,
{ throwIfNoEntry: false })` call itself throws — `throwIfNoEntry: false`
only suppresses `ENOENT`, not `EACCES` — and that throw was unguarded,
escaping as a raw filesystem `Error` instead of the polished
`LegacyConfigValidateError` ("resolves outside the project root") every
other containment-rejection case produces.

Not a security regression — the path was still rejected in every tested
environment — it was a message-polish gap.

Code review while fixing this surfaced the identical bug in
`legacyIsExistingFile` (the `"notification"` email-content section's
twin resolution path, via `statSync`), which had the same unguarded
`throwIfNoEntry: false` gap.

Fixes CLI-2345.

## What is the new behavior?

- `canonicalizeExistingPath`'s `lstatSync` fallback is now guarded: any
non-`ENOENT` throw there returns the path as-is (same fallback already
used for a non-symlink entry or too-deep symlink chain), so the caller's
containment check still runs and rejects normally.
- `legacyIsExistingFile` is guarded the same way: an unstattable dirent
is treated as present, so the declared path keeps winning over the
legacy `supabase/`-relative fallback and the real cause surfaces instead
of a raw fs error or a silent retarget.
- Updated the `canonicalizeExistingPath` JSDoc to accurately describe
what this guard does and doesn't guarantee (the lexical comparison isn't
fully fail-closed on its own; every caller's own read of the resolved
file's bytes is the actual backstop).
- Tightened the existing EACCES regression test to assert the specific
error/message, parametrized the three symlink-containment tests across
both `template`/`notification` sections, and added a permission-free
`ENAMETOOLONG` regression test so this code path stays covered in
environments where `chmod 000` isn't enforced (root, some containers,
Windows).
…he slim-services feed (#6521)

## Summary

Dependabot's docker updates on
`apps/cli-go/pkg/config/templates/Dockerfile` have been landing red —
see #6502 (realtime) and #6503 (postgres). Two independent causes, plus
the automation the second one leaves behind.

**1. A unit test asserted the exact current pins while reading them from
the live manifest.**

`slim-images.unit.test.ts` had a `maps current docker.io pins onto the
published slim tags` case that fed `dockerfileServiceImageRaw(alias)` in
and asserted a spelled-out version for `pg`, `supavisor`, `realtime`,
and `storage`. Any bump of those four failed the unit suite by
construction.

The assertions that must track the manifest — which slim repository each
alias maps to — already live in the `it.each` above and slice the tag
off before comparing, so they stay. Live-tag validation also survives
more strongly elsewhere: `start.slim-images.e2e.test.ts` translates the
current manifest pins and actually pulls them, so an unpublished
translated tag fails CI on the registry rather than on a hand-typed
string. The version-bearing block only encoded the per-service
tag-prefix scheme, so it is replaced with fixed pins covering the same
scheme, plus the uppercase-`V` normalization arm in `slimTagForService`
that had no coverage.

**2. `sync-stack-service-versions.yml` targeted files that no longer
exist.**

It ran `pnpm sync:versions` in `packages/stack` and committed
`packages/stack/src/ServiceCatalog.ts`. #6440 deleted both the script
and that file, so the workflow would have hard-failed on the next
dependabot Dockerfile PR. It survived #6502/#6503 only because those
were opened about two hours before #6440 merged.

**3. The stack's pins now ride the feed that can actually maintain
them.**

Deleting that workflow leaves `WorkloadCatalog.ts` —
`ServiceCatalog.ts`'s replacement — with no automation, so this adds it.
The catalog pins each workload to an exact slim-services artifact
release: a version **plus its `ghcr.io/supabase/cli` image digest**, per
ADR 0017, which makes the artifact release the boundary for service
startup defaults. Dependabot owns the Dockerfile and structurally cannot
own this table — it resolves registry tags and never produces a
`sha256:` digest, which is why repointing the old workflow was not an
option.

slim-services already sends this repo a `mirror-slim-image`
`repository_dispatch` per release carrying `service`/`version`/`digest`,
to drive the ECR mirror. `sync-stack-workload-catalog.yml` subscribes to
that same dispatch and opens a PR pinning the release. It is
deliberately a separate workflow from `mirror-slim-image.yml`: that
mirror runs against the sender's 15-minute verification poll, and a
catalog PR must never delay it or turn its run red.

## Reviewer notes

Only two source values change per release. `artifactFor` derives
`releaseTag`, `assetName`, and every download URL from `service` +
`version`, and `releases` is derived from `defaultVersion` plus the
container image, so rewriting the `native(...)` positional version and
image is the whole change.

**postgres is the one service carrying two supported release lines**
(17.x and 15.x via `additionalReleases`), so the plan picks its target
by release line — a 15.x release moves the additional entry and can
never overwrite the 17.x default. That is the main correctness risk here
and it has a dedicated test. A release on a line the catalog does not
carry, a service it does not model, and a re-dispatch of an
already-pinned release are all successful no-ops, so the sender's retry
path does not open duplicate PRs.

The dispatch payload arrives with whatever authority holds the dispatch
token, so `sync-workload-catalog.ts` revalidates
`service`/`version`/`digest` against the same patterns
`mirror-slim-image.yml` uses rather than trusting the workflow. Those
patterns are what stop a version or digest breaking out of the
TypeScript string literals it writes into.

`planCatalogUpdate` is pure and covered by 21 `bun:test` cases in
`.github/scripts/`, which `github-scripts-ci.yml` already tests and
type-checks. One of them sweeps every service the real catalog models,
so a newly modelled workload is covered without editing a fixture list.

`WorkloadCatalog.ts` also gains a provenance comment: it and the
Dockerfile list overlapping service versions and are meant to diverge,
so the next reader needs to know not to "reconcile" them.

## Linked issue

No Linear ticket — repository maintenance prompted by the two failing
dependabot PRs above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01PWXmTVTiQCwuyjZ8Mfw9NL

---------

Co-authored-by: Claude <noreply@anthropic.com>
…#6519)

## Summary

The `Codegen` check fetched the live staging spec on every pull request
and diffed the result against the committed `pkg/api`. That conflated
two questions: whether the pull request left generated code
inconsistent, and whether staging had drifted ahead of the repository.
The second dominated, so a spec change turned every open pull request
touching `apps/cli-go` red at once — none of which the authors caused or
could fix — and it made all of those runs depend on staging being
reachable.

This pins the spec instead:

- `apps/cli-go/api/v1-openapi.yaml` is a committed snapshot of the
staging spec, and `go generate` reads it instead of
`https://api.supabase.green/api/v1-yaml`. The per-PR `Codegen` check is
now hermetic: it fails only when `pkg/api` no longer matches the
snapshot it was generated from, and it reproduces offline.
- The API Sync workflow becomes the sole reader of the live spec. It
refreshes the snapshot and regenerates the client together in one pull
request, so upstream drift produces that one pull request instead of a
failure on every open one. Its diff now shows the upstream API change
rather than only generated Go.
- Its change detection covers the snapshot as well as `pkg/api`, so an
upstream edit that codegen ignores (a description, an example) is
committed rather than refetched and discarded on every run.
- `api/README.md` is rewritten. It still documented the pre-URL
`beta.yaml` flow, and its links to the generated files were broken
relative paths.

This restores the model `packages/api` already uses, where `pnpm
generate` runs only in the sync workflow and per-PR drift is checked
against the committed `openapi.json`.

## Drift the snapshot exposed

Seeding the snapshot was expected to regenerate `pkg/api`
byte-identically. It did not: staging had drifted ahead of the committed
client, which is exactly the accumulation the old check could never
land. Two changes came in, and they are worth a look:

- `StorageConfigResponseOutput.MigrationVersion` is now
`nullable.Nullable[string]`. Assigning it to the `string` field
`storage.TargetMigration` no longer compiles, so
`FromRemoteStorageConfig` unwraps it with the same `Get()` guard
`FromRemoteAuthConfig` already uses. Behavior change worth noting: when
the platform omits the field, the local value is left untouched rather
than overwritten with `""`, consistent with the surrounding intent that
unset config should not change platform defaults.
- Several `UpdateCustomHostnameResponseOutput` result fields became
optional pointers. Nothing outside `pkg/api` consumes that type, so no
call sites needed changes.

## Generated-file marking

Committing a 468 KB spec snapshot raised the question of generated-file
marking, and `.gitattributes` carried no `linguist-*` entries at all, so
the repository's roughly 3.5 MB of generated output was skewing GitHub's
language statistics and expanding in diffs. All of it is now marked
`linguist-generated`: the Go client and spec snapshot,
`packages/api/src/generated/`, the docs config schemas, and the
lockfiles.

`turbo.json`'s `generate` outputs and the `go generate` directives are
the source of truth for that list, so only generated files are marked.
Hand-written codegen inputs (`pkg/api/*.cfg.yaml`, `api/overlay.yaml`)
are untouched, as are large but authored files such as the integration
test suites. The attribute is GitHub-only — git, CI, and local diffs
behave identically, and the files are collapsed behind a click rather
than hidden, so the sync PR's spec diff and lockfile changes remain
reviewable.

## Linked issue

N/A — CI reliability change, no linked issue.

## Checklist

- [x] The PR title follows [Conventional
Commits](https://www.conventionalcommits.org/).

## Reviewer notes

One open decision: the snapshot's file name. `v1-openapi.yaml` matches
the `/api/v1-yaml` endpoint; `beta.yaml` was the name before codegen
moved to the live URL, if continuity is preferred.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01TKDPB9bwSx5WM7juDAM7CT

---------

Co-authored-by: Claude <noreply@anthropic.com>
## Summary

#6465 removed the `next/` shell and #6486 flattened `legacy/` into
`src/`, but the two-shell world lived on in the names: every exported
symbol in the CLI tree still carried the mandatory
`Legacy`/`legacy`/`LEGACY` prefix, 368 files were named `legacy-*.ts`,
`apps/cli/AGENTS.md` still told agents the prefix was required, and the
harness, build, and release tooling still selected a "shell". This PR
removes the concept end to end so `src/` reads as the one CLI it is.

### The rename (`bad664be1`)

- ~3,050 identifiers lose the prefix (`LegacyBranchesCreateFlags` →
`BranchesCreateFlags`, `legacyRoot` → `rootCommand`, …), together with
their `Data.TaggedError` tags, `Effect.fn` span names
(`legacy.branches.create` → `branches.create`), and service tags
(`supabase/legacy/*` → `supabase/cli/*`).
- 368 files are renamed (`legacy-foo.ts` → `foo.ts`);
`src/shared/legacy/*` moves into `src/command-internal/`;
`tests/helpers/legacy-mocks.ts` becomes `command-mocks.ts` because
`mocks.ts` already existed.
- Where a CLI-tree service collides with a same-named `src/shared/`
service, the CLI-tree one is qualified with `Command` rather than
getting a new shell prefix: `CommandSettings` (was `LegacyCliSettings`),
`CommandCredentials`, `CommandPlatformApi`. AGENTS.md documents this and
marks the pairs as slated to consolidate. Other clash-driven names:
`withCommandTelemetry` (vs shared `withCommandInstrumentation`),
`AccessTokenRequiredError`, `ProjectRefNotLinkedError`,
`GoOutputFormat`.
- Wrappers and aliases that existed only to satisfy the prefix rule are
deleted instead of renamed (`functions serve` re-exports,
`usesSlimRuntime`, the `formatDebugId` alias).
- Three variable shadows the rename would have introduced silently
(`lang`, `globalFlagValues`, `resolved`) were caught with an oxlint
`no-shadow` before/after diff and renamed.

Genuine product concepts keep the word: `--legacy-bundle`, legacy API
keys and signing keys, the pre-profile keyring account fallback, the
pre-consent `telemetry.json` format, the migra "legacy engine" vs the
pg-delta "next" engine, and the pg-delta legacy-tree export.

### The rule and the framing (`442bc60b1`)

- `apps/cli/AGENTS.md`: the "Mandatory `Legacy`/`legacy` prefix on all
exports" section is replaced by a short "Naming" section; the header
note now says the prefix and both shell trees are gone; the `next/`
dual-write and "legacy-only" guidance is removed.
- README, CONTRIBUTING, the lint config comment, `packages/config/docs`,
`SIDE_EFFECTS.md` files and ~300 code comments drop "legacy
shell"/"legacy command" wording.

### The remaining shell plumbing (`994f75685`)

- Compiled binary is `dist/supabase` (was `dist/supabase-legacy`).
- `@supabase/cli-test-helpers`: `createHarness(options)` — the
`CLITarget`/`CLI_HARNESS_TARGET` axis (`ts-legacy`/`ts-next`) is gone
from the harness, `apps/cli-e2e`, `test.yml`, and the `live-e2e.yml`
matrix. The harness always uses the profile-file path, which is the one
the CLI actually reads.
- `runSupabase`/`spawnSupabase` drop the `entrypoint: "legacy"` option
(111 call sites).
- `scripts/build.ts` drops `--shell`; the `shell` input is removed from
`build-cli-artifacts`, `release-shared`, `release`,
`release-smoke-test`, and `publish-preview-cli-packages`, and the
artifact cache keys drop the shell segment on both the producer and
consumer side.
- `pnpm cli-release` drops `--legacy|--next`. It was also still
compiling `src/<shell>/main.ts`, a path that stopped existing in #6486,
so the local release ring works again.
- `pnpm dev:legacy` → `pnpm dev`, `pnpm build:legacy` → `pnpm
build:binary`.
- `docs/platform-command-generation.md` (a `next/`-only feature) is
deleted; the `next/`-only rows are dropped from `go-cli-divergences.md`;
"`undefined` in `next`"-style comments in `shared/` are reworded to
describe library callers.

## Reviewer notes

- **User-visible:** `--output-format json` error `code` values are the
tagged-error tags, so they lose the `Legacy` prefix (e.g.
`LegacyPlatformAuthRequiredError` → `AccessTokenRequiredError`). Span
names lose `legacy.` and service tags move, but neither leaves the
machine.
- The `Command*` qualifier for the three shared/CLI service pairs is the
one naming judgment call worth a look; each is a single-token rename if
a different name is preferred.
- `@supabase/cli-go#lint:check` fails on this branch exactly as it does
on `develop` under a current local golangci-lint (gosec G115/G118); no
Go source is touched here.
`supabase experimental stack start` creates or resumes a managed stack
for the current project and branch, with named-stack and explicit-ID
targeting, Docker/native selection, and eager activation or background
artifact preparation.

Translate project configuration at the CLI boundary and embed the
supervisor and native-process dispatch in the compiled binary. The stack
package owns lifecycle and persistent state, and resolves PostgreSQL
major versions through its release catalog.

---------

Co-authored-by: Colum Ferry <cferry09@gmail.com>
…plates with 5 updates (#6533)

Bumps the docker-minor group in /apps/cli-go/pkg/config/templates with 5
updates:

| Package | From | To |
| --- | --- | --- |
| supabase/studio | `2026.08.24-sha-8ec45b2` | `2026.09.07-sha-7996410`
|
| supabase/edge-runtime | `v1.74.3` | `v1.76.2` |
| supabase/realtime | `v2.130.0` | `v2.134.12` |
| supabase/storage-api | `v1.72.1` | `v1.74.1` |
| supabase/logflare | `1.50.6` | `1.50.11` |

Updates `supabase/studio` from 2026.08.24-sha-8ec45b2 to
2026.09.07-sha-7996410

Updates `supabase/edge-runtime` from v1.74.3 to v1.76.2

Updates `supabase/realtime` from v2.130.0 to v2.134.12

Updates `supabase/storage-api` from v1.72.1 to v1.74.1

Updates `supabase/logflare` from 1.50.6 to 1.50.11


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dates (#6532)

Bumps the go-minor group with 2 updates in the /apps/cli-go directory:
[golang.org/x/mod](https://github.com/golang/mod) and
[golang.org/x/oauth2](https://github.com/golang/oauth2).
Bumps the go-minor group with 1 update in the /apps/cli-go/pkg
directory: [golang.org/x/mod](https://github.com/golang/mod).

Updates `golang.org/x/mod` from 0.40.0 to 0.41.0
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/golang/mod/commit/d0a27b2d4a48460806692bf5c87fc157c3c65292"><code>d0a27b2</code></a>
modfile: fix Cleanup and DropTool documentation</li>
<li><a
href="https://github.com/golang/mod/commit/d12008c62d74c94d91b58e8bc6c3eb168eda8381"><code>d12008c</code></a>
all: upgrade go directive to at least 1.26.0 [generated]</li>
<li>See full diff in <a
href="https://github.com/golang/mod/compare/v0.40.0...v0.41.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `golang.org/x/oauth2` from 0.36.0 to 0.37.0
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/golang/oauth2/commit/c624b89dadc3221560b7345c090bbe69e90808ee"><code>c624b89</code></a>
google: change the snake case endpoint to kebab-case</li>
<li><a
href="https://github.com/golang/oauth2/commit/09a82f63d4c718720369edfee3c7d0ff953c0b6f"><code>09a82f6</code></a>
all: upgrade go directive to at least 1.26.0 [generated]</li>
<li>See full diff in <a
href="https://github.com/golang/oauth2/compare/v0.36.0...v0.37.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `golang.org/x/mod` from 0.40.0 to 0.41.0
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/golang/mod/commit/d0a27b2d4a48460806692bf5c87fc157c3c65292"><code>d0a27b2</code></a>
modfile: fix Cleanup and DropTool documentation</li>
<li><a
href="https://github.com/golang/mod/commit/d12008c62d74c94d91b58e8bc6c3eb168eda8381"><code>d12008c</code></a>
all: upgrade go directive to at least 1.26.0 [generated]</li>
<li>See full diff in <a
href="https://github.com/golang/mod/compare/v0.40.0...v0.41.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…pps/cli-go/pkg/config/templates (#6534)

Bumps supabase/postgres from 17.6.1.167 to 17.6.1.169.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=supabase/postgres&package-manager=docker&previous-version=17.6.1.167&new-version=17.6.1.169)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Port allocation could change an existing automatic assignment when an
earlier listener was enabled, or let a fresh candidate collide with an
exact or retained private assignment. Validate all retained and exact
claims first, then acquire public listeners and temporary private
reservations inside one registry transaction. Commit assignments once
acquisition succeeds and let scopes release unsuccessful attempts,
removing the probe/replan/rollback path.

Use a shared, randomized port pool with bounded retries for occupied or
inaccessible candidates. Allocate native listener resources separately
for each Effect evaluation, avoid duplicate internal API listeners when
a public wildcard already covers the address, and preflight only private
bindings still requested by the candidate plan. Document the reservation
guarantees and add a focused Bun CI matrix for macOS, Linux, and
Windows.
## TL;DR

fixes `supabase start` and `functions serve` dying since 2.116.0 with

```
failed to copy edge runtime main service into container: destination "supabase_edge_runtime_<id>:/" must be a directory
```

on projects whose functions import local workspace packages through
import map directory mappings

- the trigger is #6273 moving the bootstrap onto docker create + cp +
start: the daemon refuses to resolve the copy target when a file bind is
nested inside a read only parent bind
- the overlapping binds themselves are much older, the import walker
adds a file bind per imported module while import map target enumeration
adds the package directory that already contains them, harmless until a
cp step landed between create and start

so now the mount list is pruned before `docker create`, a bind is
dropped only when another bind of the same mode already supplies the
same content at the same container path, so the container sees the same
files at the same paths and the cp delivery from #6273 stays intact...

## ref:
- closes: supabase/supabase#50088
- extends: #6273

---------

Co-authored-by: Colum Ferry <cferry09@gmail.com>
Derive stack identity from the canonical project root, Git branch
context, and stack name.

Supported parallel-stack use cases:

- **A worktree per LLM chat session:** each distinct worktree directory
gets a separate stack, including worktrees on the same branch or
detached commit.
- **Branch-specific stacks in one clone:** switching from `main` to
`feat-a` selects a separate stack; switching back to `main` selects its
previous stack.
- **Multiple Supabase projects in a monorepo:** each project has its own
project-root directory and therefore its own stack.
- **Named stacks for one project:** different names create separate
stacks within the same project and branch context, for both Git and
non-Git projects.

Repeated calls with the same canonical project root, branch context, and
name select the same stack. An omitted name is `default`.

Remove the redundant repository and checkout identity fields, common Git
directory resolution, and ordinary-folder identity module. Moving a
project selects a new stack. The unreleased private state uses the new
hash directly without migration or legacy-hash support.
<!--
Before opening this PR, confirm the linked issue is open and carries the
`open-for-contribution` label. PRs from external contributors that don't
follow
the workflow in CONTRIBUTING.md are closed automatically.
@supabase members working from Linear tickets are exempt.
-->

## Summary

pnpm/pnpm#14557 is resolved so we no longer
need the workaround in `.gitattributes` that i added in
#6461 (but I kept it just in case
and updated the comment accordingly). this pnpm bump should also speed
up dependency resolution/installation.
…el (#6524)

<!--
Before opening this PR, confirm the linked issue is open and carries the
`open-for-contribution` label. PRs from external contributors that don't
follow
the workflow in CONTRIBUTING.md are closed automatically.
@supabase members working from Linear tickets are exempt.
-->

## Summary

- Gate `pkg.pr.new` preview CLI package publishes behind the
`run-preview-packages` label (re-publish on push while labeled; remove
label to cancel).
- Stop publishing on every ready `develop` PR and remove preview from
the `run-ci` suite so large binaries are only uploaded when someone
needs a shareable install.
- Document the opt-in in `MAINTAINERS.md` and sync related workflow
comments.

## Linked issue

No linked GitHub issue (maintainer follow-up from Slack).

- [x] The linked issue is **open** and carries the
`open-for-contribution` label (or I'm a Supabase maintainer).

## Checklist

- [x] The PR title follows [Conventional
Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`).
- [x] Tests added or updated for the change.
- [x] From the repository root, `pnpm check:all` passes; relevant
package tests pass for every touched workspace, and `pnpm types:check`
passes for each touched TypeScript workspace (or workspace declaring
it).
## What kind of change does this PR introduce?

CI reliability fix.

## What is the current behavior?

AI Review's Codex jobs (`codex-review`, `adjudicate`) intermittently
hang and get killed on job timeout, discarding a completed review. Most
recently: [run
34323125644](https://github.com/supabase/cli/actions/runs/34323125644)
on #6535 died at ~55 minutes against a 45-minute timeout.

This is a regression. #6380 deliberately pinned `openai/codex-action` to
v1.11 because v1.12 had a confirmed hang bug (openai/codex-action#150).
#6484 — a Dependabot `actions-major` group bump bundling 6 unrelated
action updates — silently reverted that pin back to v1.12; the
workflow's own comments (still saying "pinned to v1.11, NOT v1.12") went
stale rather than catching the drift, since nothing diffed them against
the actual `uses:` line.

Checking upstream today turned up two separate, still-open v1.12
regressions, both matching this workflow's exact config
(`safety-strategy: drop-sudo`, `sandbox: read-only`,
`output-schema-file`):
- openai/codex-action#151 — the v1.12 wrapper waits on the child
process's `close` event with inherited stdio; a lingering descendant
keeps the step alive forever after Codex has already written its output
and finished.
- openai/codex-action#160 — v1.12's `drop-sudo` rewrite chmods
root-owned `/run` service sockets, breaking `systemd-resolved` on the
GitHub-hosted runner itself, which kills the job 52-65 minutes in
regardless of the job's own timeout — matching our job's 55-minute death
exactly.

Neither has a released fix. Both are action-level bugs independent of
the pinned Codex CLI version (reproduced across CLI versions
0.147.0-0.150.1 in the upstream threads). This is not a diff-size or
token-limit problem: #6535's diff was only ~2200 lines, and v1.11 has
cleanly handled 130k-270k-token diffs in under 15 minutes per the
upstream reports and our own prior testing.

## What is the new behavior?

- Re-pin `openai/codex-action` to v1.11
(`52fe01ec70a42f454c9d2ebd47598f9fd6893d56`) in both Codex jobs —
verified it's a safe drop-in, since v1.11's `action.yml` supports every
input this workflow uses.
- Refresh the stale inline comments to cite the actual issues (#151,
#160) instead of just the original #150.
- Add `openai/codex-action` to `.github/dependabot.yml`'s `ignore` list
(no `update-types` restriction, so it blocks all automated bumps) so a
grouped bump can't silently regress this pin again. Any future bump now
requires a deliberate PR that checks the upstream changelog/issue
tracker first.
….1 in /apps/cli-go in the go-minor group across 1 directory (#6539)

Bumps the go-minor group with 1 update in the /apps/cli-go directory:
[github.com/posthog/posthog-go](https://github.com/posthog/posthog-go).

Updates `github.com/posthog/posthog-go` from 1.24.4 to 1.25.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/posthog/posthog-go/releases">github.com/posthog/posthog-go's
releases</a>.</em></p>
<blockquote>
<h2>1.25.1</h2>
<h2>Unreleased</h2>
<h2>1.25.0</h2>
<h2>Unreleased</h2>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/PostHog/posthog-go/blob/main/CHANGELOG.md">github.com/posthog/posthog-go's
changelog</a>.</em></p>
<blockquote>
<h2>1.25.1</h2>
<h3>Patch Changes</h3>
<ul>
<li>c159621: Fix <code>not_regex</code> local flag evaluation erroring
on non-string/int property values. The <code>not_regex</code> operator
used a manual string/int type switch and returned an error for other
types, most notably <code>float64</code>, which is what JSON numbers
deserialize to, so it failed on a numeric property value even though
<code>regex</code> handled it. <code>not_regex</code> now coerces both
sides with <code>valueToString</code>, mirroring <code>regex</code>. An
explicit <code>nil</code> property value is represented as
<code>null</code>, matching the feature flags evaluation service rather
than Go's default <code>&lt;nil&gt;</code> representation.</li>
</ul>
<h2>1.25.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>897a0b4: Add the OpenTelemetry bridge for AI observability as an
independently installable nested Go module.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/PostHog/posthog-go/commit/a5e539c68b8471a86dd746a4bff64601340f4e9f"><code>a5e539c</code></a>
chore: release v1.25.1 [version bump] [skip ci]</li>
<li><a
href="https://github.com/PostHog/posthog-go/commit/c1596215af2b186a870871e2d169b198851ed150"><code>c159621</code></a>
fix: not_regex should handle all value types like regex (<a
href="https://redirect.github.com/posthog/posthog-go/issues/305">#305</a>)</li>
<li><a
href="https://github.com/PostHog/posthog-go/commit/50569874ea80f8f28f3318962668218d34eb9a64"><code>5056987</code></a>
chore: release v1.25.0 [version bump] [skip ci]</li>
<li><a
href="https://github.com/PostHog/posthog-go/commit/897a0b4e5f2e9b49bc58b4ace7d5080502525b18"><code>897a0b4</code></a>
feat: add OpenTelemetry bridge for AI observability (<a
href="https://redirect.github.com/posthog/posthog-go/issues/306">#306</a>)</li>
<li>See full diff in <a
href="https://github.com/posthog/posthog-go/compare/v1.24.4...v1.25.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/posthog/posthog-go&package-manager=go_modules&previous-version=1.24.4&new-version=1.25.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
`supabase experimental stack stop` stops the current or named managed
stack, or an explicit stack ID, while preserving its identity and data.
Selection works without loading project configuration, including when
the config file has been removed or changed.

Use the stack package’s lifecycle API and report whether a stack was
found in both human and structured output. This PR builds on the
experimental stack start integration.
## What kind of change does this PR introduce?

CI reliability fix (follow-up to #6538).

## What is the current behavior?

#6538 re-pinned `openai/codex-action` to v1.11 and added a Dependabot
ignore entry scoped to `versions: ["1.12.x"]`, intending to still let
Dependabot propose v1.13+ once the upstream hang bugs
(openai/codex-action#151, #160) are fixed, while blocking the known-bad
v1.12 line specifically.

That scoping never actually worked. 9 minutes after #6538 merged,
Dependabot opened #6541 proposing the exact v1.12 bump we were trying to
block — config propagation wasn't the issue; the `versions` syntax was.
The `github-actions` ecosystem's `ignore.versions` strings are parsed as
Ruby `Gem::Requirement` (RubyGems comparator syntax: `>= x`, `~> x`,
etc.), not npm-style semver ranges. `"1.12.x"` isn't a wildcard in that
grammar — it parses as a literal version string with an implicit `=`
operator, which never equals the real dependency version (`"1.12"`), so
the ignore condition silently never matched anything.

Verified directly against the actual parsing logic dependabot-core uses
(`Dependabot::GithubActions::Requirement`, a thin wrapper around
`Gem::Requirement`):
```
GithubActionsRequirement.new("1.12.x").satisfied_by?(Gem::Version.new("1.12"))   # => false (bug)
GithubActionsRequirement.new(">= 1.12, < 1.13").satisfied_by?(Gem::Version.new("1.12"))    # => true
GithubActionsRequirement.new(">= 1.12, < 1.13").satisfied_by?(Gem::Version.new("1.12.5"))  # => true
GithubActionsRequirement.new(">= 1.12, < 1.13").satisfied_by?(Gem::Version.new("1.11"))    # => false
GithubActionsRequirement.new(">= 1.12, < 1.13").satisfied_by?(Gem::Version.new("1.13"))    # => false
```

## What is the new behavior?

Replace `versions: ["1.12.x"]` with `versions: [">= 1.12, < 1.13"]` — a
real Gem::Requirement comparator range, confirmed to correctly match the
1.12 line (including any 1.12.x patch) while excluding v1.11 and v1.13+.
#6541 should be closed as superseded once this merges.
…/cli-go/pkg/config/templates in the docker-minor group (#6545)

Bumps the docker-minor group in /apps/cli-go/pkg/config/templates with 1
update: supabase/storage-api.

Updates `supabase/storage-api` from v1.74.1 to v1.74.3


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=supabase/storage-api&package-manager=docker&previous-version=v1.74.1&new-version=v1.74.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7ttp and others added 28 commits September 24, 2026 13:25
## TL;DR

brings `supabase config pull` under the effect lint

## whats introduced?

effect lint applied to `config pull`:

- one allow list entry for `config/pull`
- integration tests read and write the project files through
`FileSystem`, backdate the config before the untouched checks, and set
env through `withEnvVar`
- the concurrent edit mock takes an effect instead of a sync callback,
and the git status mock yields its `PlatformError` directly
- cause assertions use `Cause.pretty`
- e2e tests run through the effect native harness with a scoped local
api server, the live test through the `cliEffect` fixture

## ref:

- related: CLI-2486
#6795)

## TL;DR

brings the `supabase config push` runtime under the effect lint

## whats introduced?

effect lint applied to the `config push` runtime:

- one allow list entry for `config/push`, holding back its integration,
e2e and live tests until the next page
- auth email templates load through `FileSystem` and fail with the push
load error directly, keeping a leading BOM and the same read error text
- `env(VAR)` secret references resolve through `Config` before the
decrypt check, the lookup `inspect` already uses, so a set but empty
shell variable behaves as before
- `sms_test_otp_valid_until` comes from `DateTime`, still rolling a leap
day over to March 1st
- the addons status error is yielded directly and the addons body parse
keeps its native message
- the project root is derived through the `Path` service

## ref:

- related: CLI-2486
…6796)

## TL;DR

brings the `supabase config push` tests under the effect lint, which
completes the `config` family

## whats introduced?

effect lint applied to the `config push` tests:

- the per subcommand allow list entries collapse into one `config/**`
entry
- integration tests write fixtures through `FileSystem`, seed linked
project state through `setup`, and set env through `withEnvVar`
- both test setups provide the CLI config provider like production, with
a new case for an `env(VAR)` secret read from the root `.env`
- v1 mock failures are real transport errors
- cause assertions use `Cause.pretty`, and field checks read the typed
error directly
- e2e tests run through the effect native harness, the live test through
the `cliEffect` fixture with its proofs polled on a `Schedule`

## ref:

- closes: CLI-2486
…ceeds (#6773)

## TL;DR

`stack start --eager` timed out whenever analytics was enabled. The
culprit was **Vector**, not Logflare: Vector ran its bundled demo
config, which disables its API, so the health check never answered. The
Vector recipe now always loads a stack-owned API config, and `stack
start` failures name the service that failed.

## Before

```mermaid
sequenceDiagram
    participant CLI as stack start --eager
    participant Stack as Stack orchestrator
    participant Vector
    CLI->>Stack: start composition
    Stack->>Vector: launch (no --config)
    Note over Vector: bundled demo config<br/>API disabled, fake log lines
    loop readiness, 60s
        Stack->>Vector: GET /health
        Vector--xStack: nothing listening
    end
    Stack-->>CLI: "Composition start had failures"
    Note over CLI: no service named,<br/>looked like an analytics problem
```

## After

```mermaid
sequenceDiagram
    participant CLI as stack start --eager
    participant Stack as Stack orchestrator
    participant Vector
    CLI->>Stack: start composition
    Note over Stack: prepare writes (atomically)<br/>API config + quiet default pipeline
    Stack->>Vector: launch --config pipeline --config api
    Stack->>Vector: GET /health
    Vector-->>Stack: 200
    Stack-->>CLI: started
    Note over CLI: on any failure:<br/>"vector (id): Service health timed out"
```

## What changed

- **Vector recipe:**
- Always writes a stack-owned API config (`api.enabled`, address from
`VECTOR_API_ADDRESS`). Vector has no flag or environment variable for
this.
  - Loads it as a second `--config` next to the pipeline config.
- The pipeline is the caller's `configPath` when given, otherwise a
quiet default that forwards nothing. The demo's fake log lines no longer
reach the stack logs.
- **Safe file handling:** config writes are atomic because background
preparation can overlap a start. Destroy removes only the recipe's own
files and empty parent directories, so a caller's config stored nearby
survives.
- **Clearer failures:** `stack start` lists each failed service as
`service (id): error`. Per-service errors are one line that keeps nested
causes, instead of a stack trace.

Why only `--eager` showed it: lazy starts never wake Vector during
`stack start`, so its broken health check stayed hidden.

Out of scope: forwarding service logs into Analytics is still not
implemented.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Make `supabase services` honor the selected local backend and report
stack catalog images and versions, including the configured PostgreSQL
major version. Preserve legacy output when stack mode is disabled and
clarify linked-version guidance for catalog-pinned services.

The inventory remains available without a running stack; invalid local
configuration warns and reports catalog defaults.

Fixes #6799
)

## TL;DR

brings the `supabase gen bearer-jwt` command under the effect lint

## whats introduced?

effect lint applied to `gen bearer-jwt`:

- one allow list entry in `.oxlintrc.effect.json`,
`!apps/cli/src/commands/gen/bearer-jwt/**`, covering all ten files
- the handler and signing key resolver yield their tagged errors
directly instead of wrapping them in `Effect.fail`
- the `try`/`catch` blocks around the prompted JWK and the algorithm
check become `Effect.try`, and the prompted text still parses natively
so the parser's own message reaches `failed to parse JWK`
- the expiry parser builds its date through `DateTime` and the handler
reads the clock through `Clock`, the same instants the command has
always signed
- integration tests write their fixtures through `FileSystem` and `Path`
instead of `node:fs/promises`, and cause assertions use `Cause.pretty`

## ref:

- related: CLI-2410
Windows readers can briefly prevent atomic replacement of stack state or
telemetry files, causing commands to fail. Retry these sharing
violations with bounded backoff while preserving the previous file until
publication succeeds.

Clean up telemetry temporary files on failure or cancellation, and
include the underlying errno and destination in publication errors.

Fixes #6798
…6791)

## Summary

When a stack service's startup step fails (for example Realtime's
migration step), the error now shows the last 20 lines the process
printed on **each of stdout and stderr**. Before, it showed only stderr,
which was usually the final exception without its cause. A startup step
that hangs now also reports its recent output, including a last line
that doesn't end in a newline, instead of a bare timeout.

### Why

In #6775, `supabase start` under `SUPABASE_EXPERIMENTAL_STACK=1` failed
with only Realtime's final Ecto pool-timeout exception:

```
realtime startup exited with 1: ** (DBConnection.ConnectionError) connection not available and request was dropped from queue ...
```

The actual cause went to stdout on every connection attempt and was
never shown:

```
[error] Postgrex.Protocol ("db_conn_1") failed to connect: ** (DBConnection.ConnectionError) tcp connect (host.docker.internal:54322): network is unreachable - :enetunreach
```

`supabase stack logs` couldn't recover it either, because nothing is
retained after a failed start.

### Before

```mermaid
flowchart LR
  P[startup process<br/>e.g. realtime prepare] -->|stdout<br/>Postgrex :enetunreach ×N| O[buffered in full,<br/>published after exit]
  P -->|stderr<br/>final Ecto exception| E[buffered in full]
  E --> M["❌ realtime startup exited with 1:<br/>&lt;stderr only&gt;"]
  O -. dropped from the error .-> X((root cause lost))
  P -->|hangs &gt; 60s| T["❌ Service launch timed out<br/>(no output at all)"]
```

### After

```mermaid
flowchart LR
  P[startup process<br/>e.g. realtime prepare] -->|stdout chunks| L[published to service logs<br/>as they arrive]
  P -->|stderr chunks| L
  P -->|stdout lines| RO[stdout tail<br/>last 20 non-blank lines]
  P -->|stderr lines| RE[stderr tail<br/>last 20 non-blank lines]
  RO --> R{startup result}
  RE --> R
  R -->|exit ≠ 0| M["❌ realtime startup exited with 1<br/>Recent stdout:<br/>[error] Postgrex ... :enetunreach<br/>Recent stderr:<br/>** (DBConnection.ConnectionError) ..."]
  R -->|hangs &gt; 60s| T["❌ realtime startup timed out after 60 seconds<br/>Recent stdout: ...<br/>Recent stderr: ..."]
```

### What changed

- `awaitStartup` in `packages/stack/src/services/ProcessRecipe.ts`
splits stdout and stderr into lines and keeps a separate tail of the
last 20 non-blank lines for each, so later stdout noise can't push out
the stderr error.
- Each retained line is clipped to its last 1000 characters, so memory
stays bounded even for output without newlines.
- Each stream's unfinished last line is added to its tail when the
stream ends or is interrupted, so a hung process's last message still
appears after the 60-second timeout.
- Native and container startup paths share one failure formatter. A
non-zero exit and a timeout both append `Recent stdout:` / `Recent
stderr:` sections for whichever streams printed something.
- Startup output is published to the service's log stream as it arrives,
the same way the main service process already works, instead of in one
piece after exit.

## Linked issue

Part of #6775

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
CLI-2410) (#6765)

## TL;DR

brings `supabase gen signing-key` and `supabase gen keys` under the
effect lint

## whats introduced?

effect lint applied to `signing-key` and `keys`
- three allow list entries in `.oxlintrc.effect.json`, `gen/*.ts`,
`gen/keys/**` and `gen/signing-key/**`
- the handler yields its tagged errors directly instead of wrapping them
in `Effect.fail`, and the shared signing keys config runs its `alg`
allowlist check inside `Effect.try`
- the stored key file encodes through `Schema.fromJsonString`, byte for
byte what it wrote before, two space indented for the file and compact
for the JWK on stdout
- `SUPABASE_ENV` reads through `Config` rather than `process.env`, so an
unset and an empty value both keep the development default
- e2e tests run through the effect native harness and own their project
directory with `makeTempDirectoryScoped`, so an interrupted run cleans
up after itself
- integration tests keep all twenty eight scenarios and add five that
pin the stdout and file bytes and the injected `SUPABASE_ENV` dotenv
pick, fixtures go through `FileSystem` and cause assertions use
`Cause.pretty`


## ref:

- related: CLI-2410
…6768)

## TL;DR

brings the `supabase gen types` runtime under the effect lint

## whats introduced?

effect lint applied to the `gen types` runtime, the tests follow
separately:

- eight allow list entries in `.oxlintrc.effect.json`, runtime files
only, so the not yet migrated test files stay out until the next branch
- the handler and the shared helpers yield their tagged errors directly
instead of wrapping them in `Effect.fail`, every message left byte for
byte the same
- the flag rejections, the local db inspect failures and the missing
preview branch credentials become tagged errors, which adds four names
to the error tag fixture and makes `--output-format json` report their
tag as `error.code` instead of `UnknownError`
- an unreachable container runtime is tagged apart from a stopped stack
in telemetry, rather than both landing in the same bucket, and the
terminal text is unchanged either way
- the generator layer splits its steps so interruption lands between
them, and the duration quote encodes through `Schema`

## ref:

- related: CLI-2410
…6769)

## TL;DR

brings the `supabase gen types` tests under the effect lint, finishing
the `gen` family

## whats introduced?

effect lint applied to the six `gen types` test files, which leaves the
whole family covered:

- the twelve `gen` allow list entries in `.oxlintrc.effect.json`
collapse into one `!apps/cli/src/commands/gen/**`, which also pulls in
`types.errors.unit.test.ts`, the one `gen types` test file this branch
leaves untouched
- the integration suite builds its fixtures through `FileSystem` with
scoped temp directories, all eighty five cases kept, and its injected
network failure becomes a tagged `ApiCallFailure`
- the unit test drops its `process.env` mutation for a hermetic call,
and the generator test awaits through `Effect` rather than a bare
promise
- e2e tests run through the effect native harness with `withTempHome`,
and the live test forwards the vitest signal


## ref:

- closes: CLI-2410
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 API types from the
infrastructure repository.

Changes were detected after refreshing `apps/cli-go/api/v1-openapi.yaml`
from the latest spec from infrastructure, and `apps/cli-go/pkg/api` is
regenerated from it. The snapshot diff is the upstream API change and is
worth reading: it is marked `linguist-generated`, so GitHub collapses it
behind a "Load diff" click rather than hiding it.

---------

Co-authored-by: supabase-cli-releaser[bot] <246109035+supabase-cli-releaser[bot]@users.noreply.github.com>
Co-authored-by: Julien Goux <hi@jgoux.dev>
Local stack shutdown could leave native processes, containers, database
helpers, or attached tools running after cleanup returned. Runtime
handles now retain cleanup ownership through partial launches and
failures, and orderly shutdown waits for admitted work, service and tool
cleanup, container absence, and the detached host's exit. Failed cleanup
remains observable and retryable; destroy removes saved state only after
resource cleanup succeeds.

Container cleanup runs synchronously in the existing stack lifecycle,
with no separate sentinel process. Startup and shutdown use the same
sweep restricted to the stack ID and canonical data directory, keeping
parallel stacks isolated. SIGTERM and SIGINT follow the ordinary stop
path. Stop preserves service data; force-killing a host may require
manual cleanup.

Native startup helpers use temporary OS-assigned ports, and serving
ports stay reserved together until launch configuration is complete.
This prevents helper port collisions and duplicate port assignment
within a service.
Eager composition startup waits for each service to become healthy
before starting the next, even when they are independent. Start
independent branches concurrently and gate each dependent on readiness
of its immediate prerequisites.

Preserve lazy route arming, lifecycle ownership and cancellation,
ordered per-instance failure outcomes, and reverse-dependency shutdown.
Report blocked dependents before preparing or launching them when a
prerequisite fails.

### Supabase service startup order

This is the actual dependency graph built by
[`makeSupabaseComposition`](https://github.com/supabase/cli/blob/786162a0c3166ad39e28e0700486642ee528989c/packages/stack/src/composition/Supabase.ts#L189),
shown with **all services selected and configured as eager**. Public
endpoints are bound first. Each arrow means the source must be healthy
before the target starts; a target with multiple incoming arrows waits
for all of them.

```mermaid
flowchart LR
    subgraph roots["Start concurrently after endpoint binding"]
        db["PostgreSQL / database"]
        mail["Mail"]
        imgproxy["Imgproxy"]
        functions["Functions"]
    end

    db --> rest["REST / PostgREST"]
    db --> realtime["Realtime"]
    db --> pgmeta["pg-meta"]
    db --> analytics["Analytics"]
    db --> pooler["Pooler"]
    db --> auth["Auth"]
    mail --> auth
    db --> storage["Storage"]
    imgproxy --> storage

    pgmeta --> studio["Studio"]
    analytics --> studio
    functions --> studio
    analytics --> vector["Vector"]
```

- **At the start:** PostgreSQL, Mail, Imgproxy, and Functions can
prepare and launch concurrently.
- **Once PostgreSQL is healthy:** REST, Realtime, pg-meta, Analytics,
and Pooler can start concurrently. Auth can join as soon as Mail is also
healthy; Storage can join as soon as Imgproxy is also healthy.
- **As those services become healthy:** Vector starts after Analytics.
Studio starts after pg-meta, Analytics, and Functions are all healthy.
Neither waits for unrelated services to finish starting.

These are dependency constraints, not global startup phases: a ready
branch advances immediately. Functions receives a database URL as
configuration but has no database readiness dependency. Excluded
services remove their corresponding managed edges.

With the **default activation policy**, PostgreSQL and services without
public endpoints are eager; other services are lazy. Eager services pull
in their prerequisites, while the remaining lazy services only arm their
routes after their prerequisites settle and launch on demand. The
diagram above shows the concurrency available when the complete graph is
started eagerly.
This PR was automatically created to sync API types from the
infrastructure repository.

Changes were detected after refreshing `apps/cli-go/api/v1-openapi.yaml`
from the latest spec from infrastructure, and `apps/cli-go/pkg/api` is
regenerated from it. The snapshot diff is the upstream API change and is
worth reading: it is marked `linguist-generated`, so GitHub collapses it
behind a "Load diff" click rather than hiding it.

Co-authored-by: supabase-cli-releaser[bot] <246109035+supabase-cli-releaser[bot]@users.noreply.github.com>
## TL;DR

stops a failed `compute new` from leaving a scaffold behind that
`config.toml` never records

## prob

the starter files landed before the `config.toml` write
when that write failed, say on a read only `config.toml`, the scaffold
stayed on disk with no config entry
 a half set up compute the user had to clean up by hand.

## sol

take back what the run wrote when any write fails. 
only its own starter files go, and the directory too if the run created
it and it is empty again

## ref

- was introduced in: #6261
## TL;DR

brings the `supabase notebooks` family under the effect lint

## whats introduced?

effect lint applied to `notebooks pull` and `notebooks push`:

- the notebooks directory and file paths resolve through the `Path`
service
- name quoting and the pretty printed notebook file encode through
`Schema`, with byte for byte the same output
- the local notebook read keeps native `JSON.parse`, so its syntax error
text stays in the message
- integration tests seed and read files through `FileSystem` in
`useTempWorkdir` projects

## ref:

- closes: CLI-2496
…ect lint (CLI-2409) (#6811)

## TL;DR

brings `supabase db advisors`, `db lint` and `db query` under the effect
lint

## whats introduced?

effect lint applied to `db advisors`, `db lint` and `db query`:

- allow list entries for `db/advisors`, `db/lint` and `db/query`
- typed errors are yielded directly instead of through `Effect.fail`
- the linked `db query` response decodes through `Schema.decodeOption`,
and its timestamps go through `DateTime` with the same output
- the advisors body parse keeps its native parse error message, now
pinned by a test
- cause assertions use `Cause.pretty`, and the query tests use scoped
temp dirs through `FileSystem`
- live tests run through the `cliEffect` fixture

## ref:

- related: CLI-2409
…) (#6812)

## TL;DR

brings `supabase db push` and `db dump` under the effect lint

## whats introduced?

effect lint applied to `db push` and `db dump`:

- allow list entries for `db/dump` and `db/push`
- typed errors are yielded directly, and the two `db dump` pipes merge
into one
- the `db dump` windows terminal check reads `MSYSTEM` and
`TERM_PROGRAM` through `Config`, so an empty variable behaves as before
- integration tests write project files through the layer `setup`
returns and set env through `withEnvVar`
- suggestion checks read the typed error directly, message checks use
`Cause.pretty`
- e2e tests run through the effect native harness with a scoped project
per test, live tests through the `cliEffect` fixture with the migration
version from `Clock` and `Random`

## ref:

- related: CLI-2409
## TL;DR

brings `supabase db start` under the effect lint

## whats introduced?

effect lint applied to `db start`:

- one allow list entry for `db/start`
- the backup error is yielded directly
- integration tests write `config.toml` and `.env` through the layer
`setup` returns, so test bodies stay unchanged, and set env through
`withEnvVar` only where a test depends on it
- cause assertions use `Cause.pretty`, and the roles e2e decodes through
`Schema`
- the e2e test runs through the effect native harness with its stop
cleanup in `Effect.ensuring`

## ref:

- related: CLI-2409
## TL;DR

brings `supabase db reset` under the effect lint

## whats introduced?

effect lint applied to `db reset`:

- one allow list entry for `db/reset`
- typed errors are yielded directly
- integration tests write project files through the layer `setup`
returns, and the permission tests restore file modes with
`acquireUseRelease`
- cause assertions use `Cause.pretty`, and suggestion checks read the
typed error directly
- the vector bucket request body encodes through `Schema`
- the e2e test runs through the effect native harness, the live test
through the `cliEffect` fixture

## ref:

- related: CLI-2409
…6816)

## TL;DR

brings the shared `db` helpers under the effect lint

## whats introduced?

effect lint applied to `db/shared`:

- one allow list entry for `db/shared`
- `DeclarativeSeam` members are plain effects instead of thunks, with
their callers and mocks updated
- the pg-delta adapter runs each library call through its own typed try,
keeping the same error messages and operations
- `SUPABASE_SSL_DEBUG` reads through `Config`, still off when unset or
empty
- debug ids and artifact names come from `DateTime`, and json files
encode through `Schema` with the same two space layout, now pinned byte
for byte
- five diagnostics tests that returned an effect without running it now
run
- tests use `FileSystem` and `Path`, and cause assertions use
`Cause.pretty`

## ref:

- related: CLI-2409
## TL;DR

brings `supabase db diff` under the effect lint

## whats introduced?

effect lint applied to `db diff`:

- one allow list entry for `db/diff` & typed errors are yielded directly
- integration tests write fixtures through `setup` options, read results
through `FileSystem`, and set env through `withEnvVar` or a
`ConfigProvider` where the code reads `Config`
- new cases pin `SUPABASE_SSL_DEBUG` reaching migra
- cause assertions use `Cause.pretty`
- e2e tests run through the effect native harness

## ref:

- related: CLI-2409
## TL;DR

brings `supabase db pull` under the effect lint

## whats introduced?

effect lint applied to `db pull`:

- one allow list entry for `db/pull`
- the sync error is yielded directly
- integration tests seed migrations through `setup`, read results
through `FileSystem`, and set env through `withEnvVar`
- cause assertions use `Cause.pretty`, and repair hints read the typed
error directly
- the e2e test runs through the effect native harness, the live test
through the `cliEffect` fixture

## ref:

- related: CLI-2409
CLI-2409) (#6819)

## TL;DR

brings `supabase db schema declarative generate` and the shared
declarative helpers under the effect lint

## whats introduced?

effect lint applied to `db schema declarative generate`:

- allow list entries for the `db/schema/declarative` helpers and
`generate`
- typed errors are yielded directly
- the custom database url prompt resolves `PG*` fallbacks through the
same layered env as `--db-url`
- tests use `FileSystem` and `Path`, set env through `withEnvVar`, and
pin the native manifest parse error

## ref:

- related: CLI-2409
…LI-2409) (#6820)

## TL;DR

brings `supabase db schema declarative sync` under the effect lint,
which completes the `db` family

## whats introduced?

effect lint applied to `db schema declarative sync`:

- the per subcommand allow list entries collapse into one `db/**` entry
- typed errors are yielded directly
- sync timestamps come from `DateTime` with the same output
- tests use `FileSystem` and `Path`, set env through `withEnvVar`, and
pin the transaction mode message
- the e2e test runs through the effect native harness with its project
in `acquireUseRelease`

## ref:

- closes: CLI-2409
… root (#6823)

## Summary

**TL;DR:** `supabase start --runtime native` no longer fails immediately
when it runs as root inside an agent sandbox. Only the PostgreSQL
process steps down to a non-root user, so agents can start the native
stack on the first try. Root outside a detected sandbox still fails fast
unless `SUPABASE_NATIVE_POSTGRES_USER` names a user.

### Before

```mermaid
flowchart LR
  A[native start as uid 0] --> B[fail: PostgreSQL cannot be run as root]
```

### After

```mermaid
flowchart TD
  A[native start as uid 0] --> O{SUPABASE_NATIVE_POSTGRES_USER?}
  O -->|valid user| S[PostgreSQL runs as that user]
  O -->|unset| B{Claude Code sandbox?}
  B -->|no| E[fail fast, suggest the override]
  B -->|yes| P[ubuntu, else postgres,<br/>else lowest uid &gt;= 1000]
  P --> S
```

### Why

Agent sandboxes such as Claude Code's cloud environment run as root by
default and provide ordinary non-root accounts. The native runtime
refused to start there with `PostgreSQL cannot be run as root`, so
agents had to set up a separate user by hand before the stack could run.

### What changed

- A small resolver picks the PostgreSQL user: the
`SUPABASE_NATIVE_POSTGRES_USER` override first, then a per-sandbox
preferred user list (`ubuntu` for Claude Code, detected via `CLAUDECODE`
and `IS_SANDBOX=yes`), then `postgres`, then the lowest uid at or above
1000. Accounts with uid 0, gid 0, or `nobody` are never used. Other
agent sandboxes can be added as one table entry.
- The native launcher spawns only PostgreSQL with that `uid`/`gid`, cwd
`/`, and the user's `HOME`. Every other service keeps the stack's
identity.
- Before each stepped-down launch, the stack:
- checks that every directory on the instance's real path is owned by
root and writable only by root;
  - refuses files already owned by a different non-root user;
- hands the data directory, root key, socket directory, and the cached
bundle's `pgsodium_getkey.sh` to the user with `chown -R -P`;
- adds traverse-only `o+x` to their parent directories, including root's
home, logging each change.
- The artifact cache root, artifact directories, and stack state root
still restrict themselves to their owner on every use, but now keep an
existing traverse-only grant instead of resetting to `0700`. Without
this, preparing another service after PostgreSQL launched cut the
stepped-down server off from its own bundle and data directory: new
sessions failed with `could not access file "supautils"` and config
reloads could not read `postgresql.conf`.
- `start` prints one line naming the user PostgreSQL runs as and why.
- `Database.prepare` no longer refuses root, so `supabase stack prepare`
works in root Dockerfiles.
- Non-root users and the Docker runtime take the same path as before.
- The package README and the `start` side-effects doc describe the new
behavior and the environment variable.

## Linked issue

None.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01REDom2C1Z1DUi2df7xGMMv

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@supabase-cli-releaser
supabase-cli-releaser Bot merged commit 70b42b8 into main Sep 25, 2026
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Approve to apply; do not merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants