ShipReady rules
Every finding from the ShipReady CLI and GitHub Action links to one of these pages: what the problem is, how to fix it and how the check finds it.
npx @shipmate-agency/shipready check .- SR-SUPA-001
Supabase table has no Row Level Security
A Supabase table without Row Level Security can be read or changed with the anon key from your frontend. How to enable RLS and add policies in the same migration.Medium - SR-SUPA-002
Supabase RLS policy with USING (true) lets anyone write
An insert, update or delete policy with using (true) passes for every request to your Supabase table. How to scope write policies to the signed-in user.Medium - SR-SUPA-003
Supabase service_role key found in source code
The Supabase service_role key skips every RLS policy. How to move it to a server-only environment variable and rotate the leaked key.High - SR-SUPA-004
Supabase anon key can list every table in the public schema
When the Supabase Data API returns a schema listing to the anon key, it shows which tables to try. How to lock those tables down with RLS and revoked grants.Medium - SR-SEC-001
Secret key in a NEXT_PUBLIC_ or VITE_ env var
Next.js and Vite copy NEXT_PUBLIC_ and VITE_ variables into the browser bundle. How to move a secret back to server-only code and rotate it.High - SR-SEC-002
API key or private key hardcoded in source code
A key written into source code lives on in every clone and in git history. How to load it from an environment variable and rotate it.High - SR-SEC-003
.env file not in .gitignore
An env file that .gitignore does not cover gets committed with the next git add. How to ignore env files and check that none is already tracked.Medium - SR-PAY-001
Stripe webhook handler does not verify the signature
Without a signature check, anyone can post a fake Stripe event to your webhook URL. How to verify it with constructEvent and the raw request body.Medium - SR-WEB-001
Content-Security-Policy header missing
Without a Content-Security-Policy, any script injected into your page runs with full access. How to add a CSP header and test it in report-only mode first.Medium - SR-WEB-002
Strict-Transport-Security header missing
Without HSTS, the first request to your site can go out over plain HTTP. How to send Strict-Transport-Security and when to add preload.Medium - SR-WEB-003
No X-Frame-Options or frame-ancestors, so your site can be framed
If any site can frame your pages, it can trick users into clicking things they cannot see. How to block framing with X-Frame-Options or frame-ancestors.Low - SR-WEB-004
X-Content-Type-Options: nosniff header missing
Without nosniff, browsers may guess a file's type and treat it as a script or a page. How to send X-Content-Type-Options: nosniff on every response.Low - SR-WEB-005
Referrer-Policy header missing
Without a Referrer-Policy, your page addresses can travel to other sites in the Referer header. How to set strict-origin-when-cross-origin or no-referrer.Low - SR-WEB-007
.env or .git folder publicly accessible on your site
A public .env file gives away your keys, and a public .git folder gives away your source. How to serve only the build output and block dotfiles.High