Skip to content

fix(self-hosted): SELinux labels and security opt - #33603

Merged
sweatybridge merged 2 commits into
supabase:masterfrom
abn:docker/fix-selinux
Mar 14, 2025
Merged

sweatybridge merged 2 commits into
supabase:masterfrom
abn:docker/fix-selinux

Conversation

@abn

@abn abn commented Feb 13, 2025 •

Copy link
Copy Markdown
Contributor

This change ensures correct volume mount SELinux lables are applied for services. Additionally, apply correct security options for container socket use within vector container.

Ref: https://docs.podman.io/en/latest/markdown/podman-system-service.1.html#access-the-unix-socket-from-inside-a-container

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Bug fix.

Resolves: supabase/cli#3282

What is the current behavior?

As things stand, running compose up when SELinux is enabled, self-hosted instances fail to start.

What is the new behavior?

Self-hosted instances can start without issues on SELinux enabled systems.

Additional context

N/A

@abn
abn requested a review from a team as a code owner February 13, 2025 19:38
@vercel

vercel Bot commented Feb 13, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:19pm
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:19pm
studio-self-hosted ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:19pm
studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:19pm
zone-www-dot-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:19pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2025 1:19pm

@vercel

vercel Bot commented Feb 13, 2025

Copy link
Copy Markdown

@abn is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

This change ensures correct volume mount SELinux lables are applied for
services. Additionally, apply correct security options for container
socket use within vector container.

@sweatybridge sweatybridge 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.

thank you for the fix

@joshenlim joshenlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Double checked the code changes with Qiao 🙏 🙂

This branch was successfully deployed

5 active deployments
Preview – studio-staging — e58020a8 Deployed Mar 14, 2025 by vercel[bot]
Preview – studio-self-hosted — e58020a8 Deployed Mar 14, 2025 by vercel[bot]
Preview – zone-www-dot-com — e58020a8 Deployed Mar 14, 2025 by vercel[bot]
Preview – docs — e58020a8 Deployed Mar 14, 2025 by vercel[bot]
Preview – design-system — e58020a8 Deployed Mar 14, 2025 by vercel[bot]
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-vector can't find /etc/vector/vector.yml (current main branch)

3 participants