- Create a Hasura Cloud Connection
- Infisical UI
- API
1
Add Sync
Navigate to Project > Integrations and select the Secret Syncs tab. Click on the Add Sync button.

2
Select 'Hasura Cloud'
Choose Hasura Cloud as the destination for your secrets.

3
Configure source
Configure the Source from where secrets should be retrieved, then click Continue.

- Environment: The project environment to retrieve secrets from.
- Secret Path: The folder path to retrieve secrets from.
4
Configure destination
Configure the Destination to where secrets should be deployed, then click Continue.

- Hasura Cloud Connection: The Hasura Cloud Connection to authenticate with.
- Project: The Hasura Cloud project whose environment variables secrets should be synced to.
Each project maps one-to-one to a tenant, so you only need to select a project. Synced secrets are written as the project’s custom environment variables in Hasura Cloud.
5
Configure initial sync behavior
Choose how Infisical should reconcile existing secrets in Hasura Cloud the first time this sync runs, then click Continue.

- Overwrite Hasura Cloud: On the initial sync, Infisical writes its secrets to Hasura Cloud. No secrets are imported, so depending on your configuration this can remove secrets from Hasura.
- Import from Hasura (Prioritize Infisical): Imports secrets from Hasura Cloud before syncing. If an imported secret already exists in Infisical, the imported value is ignored, preserving the Infisical value.
- Import from Hasura (Prioritize Hasura): Imports secrets from Hasura Cloud before syncing. If an imported secret already exists in Infisical, the imported value overwrites the existing value in Infisical.
6
Configure sync options
Control how secrets are written and whether they sync automatically, then click Continue.

- Disable Secret Deletion: If enabled, Infisical will not remove secrets from Hasura Cloud during a sync. Enable this option if you intend to manage some secrets manually outside of Infisical.
- Auto-Sync on Changes: If enabled, secrets will automatically be synced to Hasura Cloud when changes occur in the source location. Disable to enforce manual syncing only.
- Customize Key Names: Add a prefix or suffix so Infisical can identify which keys in Hasura Cloud it manages, leaving everything else untouched. This uses a key schema, where
{{secretKey}}is a placeholder for the original secret name and{{environment}}for the environment.
We highly recommend customizing key names to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.
7
Configure details
Configure the Details of your Hasura Cloud Sync, then click Continue.

- Name: The name of your sync. Must be slug-friendly.
- Description: An optional description for your sync.
8
Sync created
Review your Hasura Cloud Sync configuration and click Create Sync. Your sync will appear in the list and, if enabled, begin syncing your secrets to Hasura Cloud.
