Integrations
Hasura Cloud
How to continuously sync your secrets with Hasura.
Setup
- Generate your Personal Access Token
- Go to your Hasura account settings and create a new Personal Access Token.
- Copy the newly generated token somewhere safe because it will not be shown to you again.
- Configuration
- Go to integrations catalog in your envsecrets dashboard and choose “Hasura Cloud.”
- On the setup/connection page, enter your Hasura Personal Access Token you created above and save the configuration.
Activation
- Go to the integrations dashboard in your envsecrets organisation and under “Hasura Cloud” choose “Sync New Environment With Your Hasura Account.”
- In the page that opens, select your envsecrets project, environment and your Hasura project and environment where you wish to push/sync your secrets.
- Complete and save the form.
Usage
Platform
- Navigate to the environment for which you activated the integration.
- Click on the “Sync” button.
- Choose the Hasura project to which you want to sync your secrets.
- Approve the sync.
CLI
- Use the command:
envs sync --env [name-of-your-remote-environment]
- Choose the Hasura integration.
Once your secrets are synced, it is recommended you go to your Hasura project and validate the new values.
Reserved Environment Variables
The following secrets/variables cannot be forward-synced to Hasura Cloud because they are reserved for Hasura’s internal requirements:
- HASURA_GRAPHQL_ADMIN_SECRET
- HASURA_GRAPHQL_CORS_DOMAIN
- HASURA_GRAPHQL_DISABLE_CORS
- HASURA_GRAPHQL_ENABLE_CONSOLE
- HASURA_GRAPHQL_WS_READ_COOKIE