Netlify
How to sync secrets from Infisical to Netlify
Infisical integrates with Netlify’s new environment variable experience. If your site uses Netlify’s old environment variable experience, you’ll have to upgrade it to the new one to use this integration.
Prerequisites:
- Set up and add envars to Infisical Cloud
Authorize Infisical for Netlify
Navigate to your project’s integrations tab in Infisical.
Press on the Netlify tile and grant Infisical access to your Netlify account.
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.
Start integration
Select which Infisical environment secrets you want to sync to which Netlify app and context. Lastly, press create integration to start syncing secrets to Netlify.
Infisical integrates with Netlify’s new environment variable experience. If your site uses Netlify’s old environment variable experience, you’ll have to upgrade it to the new one to use this integration.
Prerequisites:
- Set up and add envars to Infisical Cloud
Authorize Infisical for Netlify
Navigate to your project’s integrations tab in Infisical.
Press on the Netlify tile and grant Infisical access to your Netlify account.
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.
Start integration
Select which Infisical environment secrets you want to sync to which Netlify app and context. Lastly, press create integration to start syncing secrets to Netlify.
Using the Netlify integration on a self-hosted instance of Infisical requires configuring an OAuth application in Netlify and registering your instance with it.
Create an OAuth application in Netlify
Navigate to your User settings > Applications > OAuth to create a new OAuth application.
Create the OAuth application. As part of the form, set the Redirect URI to https://your-domain.com/integrations/netlify/oauth2/callback
.
Add your Netlify OAuth application credentials to Infisical
Obtain the Client ID and Secret for your Netlify OAuth application.
Back in your Infisical instance, add two new environment variables for the credentials of your Netlify OAuth application.
CLIENT_ID_NETLIFY
: The Client ID of your Netlify OAuth application.CLIENT_SECRET_NETLIFY
: The Secret of your Netlify OAuth application.
Once added, restart your Infisical instance and use the Netlify integration.
Was this page helpful?