Skip to content

fix(cli): relabel email template mounts (CLI-2388) - #6543

Merged
7ttp merged 2 commits into
developfrom
7ttp/cli-2388-supabase-start-kong-email-template-bind-mounts-unreadable-on
Sep 9, 2026
Merged

7ttp merged 2 commits into
developfrom
7ttp/cli-2388-supabase-start-kong-email-template-bind-mounts-unreadable-on

Conversation

@7ttp

@7ttp 7ttp commented Sep 9, 2026

Copy link
Copy Markdown
Member

TL;DR

fixes custom auth email templates silently falling back to defaults on SELinux-enforcing hosts
(Fedora/RHEL, rootless Podman)
which was caused by the Kong email-template bind mounts carrying no SELinux relabel option, and is now fixed by mounting them rw,z

ref:

@7ttp 7ttp self-assigned this Sep 9, 2026
@7ttp
7ttp requested a review from a team as a code owner September 9, 2026 10:29

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

The rw,z change is mechanically correct and covered by tests, but all six submitted findings were supported by the checked-out code. The main concerns are avoidable write access, use of a shared rather than private SELinux label, other unhandled host binds, and documentation that excludes permissive SELinux mode. Two additional findings are documentation/test-maintenance polish.

Findings

Severity Location Category Sources Claim
🟡 MINOR apps/cli/src/commands/start/services/kong.service.ts:174 security claude The template bind unnecessarily grants Kong write access to project files even though Kong only serves their contents and SELinux relabeling works with a read-only bind.
🟡 MINOR apps/cli/src/commands/start/services/kong.service.ts:174 security claude Using lowercase z gives the template files a shared container label, weakening cross-container SELinux isolation even though Kong is their sole in-repository consumer.
🟡 MINOR apps/cli/src/commands/start/SIDE_EFFECTS.md:352 documentation-correctness codex The side-effect documentation incorrectly limits persistent relabeling to SELinux-enforcing hosts; an SELinux-enabled runtime can also relabel files while SELinux is permissive.
🟡 MINOR apps/cli/src/commands/start/services/studio.service.ts:179 selinux-compatibility claude The fix covers only Kong email templates; several other project-host binds can still encounter SELinux access denials because they specify neither relabeling nor disabled label separation.
⚪ NIT apps/cli/src/commands/start/services/kong.service.ts:161 documentation claude The formatter documentation names the rw,z mode but does not explain that z is required for SELinux access or that it persistently relabels the host file.
⚪ NIT apps/cli/src/commands/start/services/kong.service.unit.test.ts:190 test-maintenance claude The test retains a stale start.go source reference even though the PR removes the same framing from a neighboring touched test.

Findings outside the diff

  • 🟡 MINOR apps/cli/src/commands/start/services/studio.service.ts:179 — The fix covers only Kong email templates; several other project-host binds can still encounter SELinux access denials because they specify neither relabeling nor disabled label separation.
  • ⚪ NIT apps/cli/src/commands/start/services/kong.service.unit.test.ts:190 — The test retains a stale start.go source reference even though the PR removes the same framing from a neighboring touched test.

Stats

Claude findings: 5 · Codex findings: 1 · Confirmed: 6 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5 + gpt-5.6-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

@7ttp
7ttp force-pushed the 7ttp/cli-2388-supabase-start-kong-email-template-bind-mounts-unreadable-on branch from 669124e to 6ce9839 Compare September 9, 2026 10:50
@7ttp
7ttp added this pull request to the merge queue Sep 9, 2026
Merged via the queue into develop with commit 347d4a2 Sep 9, 2026
61 checks passed
@7ttp
7ttp deleted the 7ttp/cli-2388-supabase-start-kong-email-template-bind-mounts-unreadable-on branch September 9, 2026 13:56
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.

supabase start: Kong email-template bind mounts unreadable on SELinux-enforcing hosts

2 participants