Skip to content

fix(cli): start the native stack in rootless containers (CLI-3188) - #7759

Merged
7ttp merged 4 commits into
developfrom
7ttp/cli-3188-native-runtime-root-refuses-a-sticky-world
Nov 24, 2026
Merged

7ttp merged 4 commits into
developfrom
7ttp/cli-3188-native-runtime-root-refuses-a-sticky-world

Conversation

@7ttp

@7ttp 7ttp commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

TL;DR

supabase start --runtime native works again in rootless podman and distrobox containers that share the host's /tmp

whats missing?

inside those containers host root is unmapped, so /tmp shows up as uid 65534 and the native stack only trusted a /tmp owned by uid 0, failing every start with /tmp belongs to uid 65534, not the current user

now fixed by:

inside a user namespace the native stack also trusts a /tmp owned by 65534, the overflow uid it shows for host root, while a 65534 owned /tmp outside one and any /tmp/supabase-<uid> that is not ours and private are still refused

ref:

@7ttp 7ttp self-assigned this Nov 23, 2026
@7ttp
7ttp requested a review from a team as a code owner November 23, 2026 13:38
@7ttp
7ttp requested a review from avallete November 23, 2026 13:38
@github-actions

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 5a4226c against develop at ed02850 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 193 ms 188 ms no real change
supabase --help help 197 ms 192 ms no real change
supabase init init 177 ms 175 ms no real change
supabase migration new bench migration-new 193 ms 195 ms no real change
supabase config convert config-convert 209 ms 221 ms no real change (+6%, within normal variation)
supabase config validate config-validate 217 ms 220 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 234 ms 232 ms no real change
supabase projects list projects-list 278 ms 246 ms no real change (-11%, within normal variation)
supabase functions list --project-ref replayfixtureprojref functions-list 248 ms 253 ms no real change

API calls: unchanged for all 9 commands.

Binary size: 135.6 MB, unchanged.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 179-224 ms 179-203 ms -5 ms (-2%) within noise
supabase --help help 162-225 ms 158-239 ms -6 ms (-3%) within noise
supabase init init 166-195 ms 163-220 ms -2 ms (-1%) within noise
supabase migration new bench migration-new 174-219 ms 175-222 ms +1 ms (+1%) within noise
supabase config convert config-convert 191-229 ms 199-259 ms +12 ms (+6%) within noise
supabase config validate config-validate 202-356 ms 195-292 ms +4 ms (+2%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 210-289 ms 213-254 ms -2 ms (-1%) within noise
supabase projects list projects-list 221-310 ms 182-321 ms -32 ms (-11%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 190-283 ms 194-310 ms +5 ms (+2%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase config convert config-convert 0 0
supabase config validate config-validate 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

github-actions[bot]

This comment was marked as resolved.

@7ttp
7ttp marked this pull request as draft November 23, 2026 13:43
@7ttp
7ttp marked this pull request as ready for review November 23, 2026 14:55
@7ttp
7ttp added this pull request to the merge queue Nov 24, 2026
Merged via the queue into develop with commit dba6773 Nov 24, 2026
74 checks passed
@7ttp
7ttp deleted the 7ttp/cli-3188-native-runtime-root-refuses-a-sticky-world branch November 24, 2026 07:53
@jgoux jgoux mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native runtime root refuses a sticky, world-writable /tmp that is not owned by the current user or root

2 participants