Setup

  1. Generate your Personal Access Token
    1. Go to your Nhost account settings and create a new Personal Access Token.
    2. Copy the newly generated token somewhere safe because it will not be shown to you again.
  2. Configuration
    1. Go to integrations catalog in your envsecrets dashboard and choose “Nhost.”
    2. On the setup/connection page, enter your Nhost Personal Access Token you created above and save the configuration.

Activation

  1. Go to the integrations dashboard in your envsecrets organisation and under “Nhost” choose “Sync New Environment With Your Nhost Account.”
  2. In the page that opens, select your envsecrets project, environment and your Nhost app and environment where you wish to push/sync your secrets.
  3. Complete and save the form.

Usage

Platform

  1. Navigate to the environment for which you activated the integration.
  2. Click on the “Sync” button.
  3. Choose the Nhost app to which you want to sync your secrets.
  4. Approve the sync.

CLI

  1. Use the command: envs sync --env [name-of-your-remote-environment]
  2. Choose the Nhost integration.

Once your secrets are synced, it is recommended you go to your Nhost app and validate the new values.

Reserved Environment Variables

The following secrets/variables cannot be forward-synced to Nhost because they are reserved for Nhost’s internal requirements:

  • HASURA_GRAPHQL_ADMIN_SECRET
  • HASURA_GRAPHQL_JWT_SECRET
  • NHOST_WEBHOOK_SECRET
  • GRAFANA_ADMIN_PASSWORD