Access services on your Hasura cluster with your favourite tools and manage access control easily
When you deploy TCP services on your cluster, you must be very careful about ensuring that communication to it is encrypted and authenticated.
Hasura lets you access TCP services by setting up an SSH tunnel to your cluster, so that you can access your services with your favourite tools and manage access control easily.
Adding your SSH key
First, you need to add the ssh-key of your local machine to the
Authorized SSH key section on the advanced section of the Hasura console.
Now, you can setup an ssh tunnel using the following command which takes the local port, internal endpoint and Hasura ssh-server address.
ssh -L localPort:clusterService:clusterPort [email protected]
You have setup a secure tunnel to access your service from your local development box. Now you can use
psql to access the built in Postgres instance directly!
psql -U admin -h localhost -p 5432