Skip to content

fix(cli): pg-delta selinux bind mount - #5990

Merged
Coly010 merged 1 commit into
supabase:developfrom
7ttp:fix/selinux-pgdelta-ca-bind-mount
Jul 29, 2026
Merged

fix(cli): pg-delta selinux bind mount#5990
Coly010 merged 1 commit into
supabase:developfrom
7ttp:fix/selinux-pgdelta-ca-bind-mount

Conversation

@7ttp

@7ttp 7ttp commented Jul 29, 2026

Copy link
Copy Markdown
Member

TL;DR

On SELinux-enforcing hosts (Fedora + rootless Podman),
db pull's pg-delta helper container fails with EACCES reading the CA bundle the CLI writes under supabase/.temp/pgdelta/. Start it with --security-opt label:disable.

The container runs confined as container_t while the CLI-written cert keeps the workspace label, so SELinux rejects the read even though file permissions are fine. Disabling label separation is what db test already does for its pg_prove container — it relabels nothing on the host, is a no-op without SELinux, and Bitbucket
(which rejects --security-opt) already gets it cleared by the global filter....

With this, db pull completes on SELinux hosts with the default diff engine.
The supabase start pgsodium failure from the same issue has a different root cause (the staged secret bind mount) and will be handled in a follow-up...

ref

@7ttp
7ttp requested a review from a team as a code owner July 29, 2026 08:13
@7ttp 7ttp self-assigned this Jul 29, 2026
@Coly010
Coly010 added this pull request to the merge queue Jul 29, 2026
Merged via the queue into supabase:develop with commit 3b227be Jul 29, 2026
22 checks passed
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.

2 participants