The Supabase integration is useful if your Supabase project uses sensitive-information such as environment variables in edge functions.

Synced envars can be accessed in edge functions using Deno’s built-in handler: Deno.env.get(MY_SECRET_NAME).

Prerequisites:

1

Authorize Infisical for Supabase

Obtain a Supabase Access Token in your Supabase Account > Access Tokens. integrations supabase dashboard integrations supabase token

Navigate to your project’s integrations tab in Infisical.

integrations

Press on the Supabase tile and input your Supabase Access Token to grant Infisical access to your Supabase account.

integrations supabase authorization

If this is your project’s first cloud integration, then you’ll have to grant Infisical access to your project’s environment variables. Although this step breaks E2EE, it’s necessary for Infisical to sync the environment variables to the cloud platform.

2

Start integration

Select which Infisical environment secrets you want to sync to which Supabase project. Lastly, press create integration to start syncing secrets to Supabase.

integrations supabase create

integrations supabase