Skip to content

fix(cli): start secrets selinux - #6000

Open
7ttp wants to merge 2 commits into
supabase:developfrom
7ttp:fix/selinux-start-secret-bind
Open

fix(cli): start secrets selinux#6000
7ttp wants to merge 2 commits into
supabase:developfrom
7ttp:fix/selinux-start-secret-bind

Conversation

@7ttp

@7ttp 7ttp commented Jul 30, 2026

Copy link
Copy Markdown
Member

TL;DR

fixes supabase start failing with EACCES on SELinux-enforcing hosts (Fedora + rootless Podman)
containers couldn't read the CLI-staged files under supabase/.temp/start-secrets/
(Postgres's pgsodium_root.key first, then Kong/Supavisor secrets and edge-runtime artifacts)

It was happening because of the missing SELinux relabel on those bind mounts,
the files keep the workspace label, which a confined container can't read despite the file mode.

So I've introduced a Z mount option for the three bind sites, which fixes it up:
each file gets a private per-container label, sibling containers still can't read them, and user project sources are never touched.
No-op without SELinux, and Docker/Podman both ignore ENOTSUP from non-labelable filesystems, so nothing currently working changes...

refs

@7ttp
7ttp requested a review from a team as a code owner July 30, 2026 08:48
@7ttp 7ttp self-assigned this Jul 30, 2026
@7ttp
7ttp force-pushed the fix/selinux-start-secret-bind branch from 1675440 to 8e78fb5 Compare July 30, 2026 08:58
@7ttp
7ttp requested a review from Coly010 July 30, 2026 09:25
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.

SELinux blocks CLI-generated pg-delta CA bind mount with rootless Podman

1 participant