Skip to main content

Going into Prod Checklist

After developing your project, and deciding it's time to Go Live With Real Users, you should run through this checklist to ensure that your project is:

  • secure
  • won't falter under the expected load
  • remains available whilst in production

Security#

  • Ensure RLS is enabled
    • Tables that do not have RLS enabled with reasonable policies allow any client to access and modify their data. This is unlikely to be what you want in the majority of cases.
    • Learn more about RLS
  • Enable replication on tables containing sensitive data by enabling Row Level Security (RLS) and setting row security policies:
    • Go to the Authentication > Policies page in the Supabase Dashboard to enable RLS and create security policies
    • Go to the Database > Replication page in the Supabase Dashboard to manage replication tables
  • Enable 2FA on Github
    • Since your Github account gives you administrative rights to your Supabase project, you should protect it with a strong password and 2FA using a U2F key or a TOTP app.
  • Ensure email confirmations are enabled in the Auth > Settings page
  • Use a custom SMTP server for auth emails so that your users can see that the mails are coming from a trusted domain (preferably the same domain that your app is hosted on). (grab SMTP credentials from any major email provider such as SendGrid, AWS SES, etc.)
  • Think hard about how you would abuse your service as an attacker, and mitigate
  • Review these common cybersecurity threats

Performance#

Availability#

  • Use your own SMTP credentials so that you have full control over the deliverability of your transactional auth emails (see Auth > Settings)
    • you can grab SMTP credentials from any major email provider such as SendGrid, AWS SES, etc.
    • the default rate limit for auth emails provided by Supabase is 30 new users per hour, if doing a major public announcement you will likely require more than this
  • If your application is on the free tier and is not expected to be queried at least once every 7 days, then it may be paused by Supabase to save on server resources
    • you can restore paused projects from the Supabase dashboard
    • upgrade to Pro to guarantee that your project will not be paused for inactivity
  • Database backups are not available for download on the free tier
    • You can set up your own backup systems using tools like pg_dump or wal-g
    • Nightly backups for Pro tier projects are available on the Supabase dashboard for up to 7 days
  • upgrading to the Supabase Pro Tier will give you access to email support on support@supabase.io

This checklist is always growing so be sure to check back frequently, and also feel free to suggest additions and amendments by making a PR on Github.