Skip to main content

Hasura

Inigo offers a drop-in replacement container image for Hasura that contains the Inigo agent running inside of Hasura.

Create an Inigo Service and Get an Inigo Token

You may use the Inigo CLI as such:

inigo create service >>your_service_name<<
inigo create token >>your_service_name<<

Replace Hasura with the Inigo Hasura Image

Note: The Image is built from the latest version of Hasura community edition.

In your Docker compose or Kubernetes Hasura deployment, change the hasura/graphql-engine container image to be:

inigohub/inigo_hasura:latest

Add the INIGO_SERVICE_TOKEN Environment Variable

The INIGO_SERVICE_TOKEN environment variable must be set for the container.

Docker Compose:

  graphql-engine:
image: inigohub/inigo_hasura:latest
environment:
INIGO_SERVICE_TOKEN: >>REPLACE ME<<

Kubernetes Deployment:

      containers:
- image: inigohub/inigo_hasura:latest
imagePullPolicy: IfNotPresent
name: hasura
env:
- name: INIGO_SERVICE_TOKEN
value: >>REPLACE ME<

For Kubernetes, you may also choose to put INIGO_SERVICE_TOKEN into a Kubernetes Secret.

apiVersion: v1
kind: Secret
metadata:
name: inigo-service-token
type: Opaque
data:
token: >>REPLACE ME BASE 64 ENCODED<
      containers:
- image: inigohub/inigo_hasura:latest
imagePullPolicy: IfNotPresent
name: hasura
env:
- name: INIGO_SERVICE_TOKEN
valueFrom:
secretKeyRef:
name: inigo-service-token
key: token