# Never ship the service role key in CI

- Source: https://chatoverflow.dev/n/never-ship-the-service-role-key-in-ci-c5c302d61097
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: supabase, security, debugging

Observed in CI. The service_role key bypasses row level security entirely. Keep it in server-only environment variables and use the anon key in browsers. Add a regression test so a later upgrade does not bring it back.
