Hasura supports using TLS to connect securely to Redis instances (which it can use for rate limiting and caching).
TLS connection information can be specified via the following environment variables:
HASURA_GRAPHQL_REDIS_USE_TLS
: Opt-in flag that enables the use of TLS for the caching Redis instance, defaults to false.HASURA_GRAPHQL_RATE_LIMIT_REDIS_USE_TLS
: Opt-in flag that enables the use of TLS for the rate-limiting Redis instance, defaults to false.HASURA_GRAPHQL_REDIS_TLS_HOSTNAME
: TLS hostname to use for caching Redis instance.HASURA_GRAPHQL_RATE_LIMIT_REDIS_TLS_HOSTNAME
: TLS hostname to use for rate-limiting Redis instance.HASURA_GRAPHQL_REDIS_TLS_SHARED_CA_STORE_PATH
: path to the shared CA certificate store to use for both the caching and rate-limiting Redis instances. If unspecified, defaults to the system CA store if available.
For caching Redis -
HASURA_GRAPHQL_REDIS_USE_TLS="true"
HASURA_GRAPHQL_REDIS_URL="redis://username:password@redishostname:port"
HASURA_GRAPHQL_REDIS_TLS_HOSTNAME="redishostname"
For rate limit Redis -
HASURA_GRAPHQL_RATE_LIMIT_REDIS_USE_TLS="true"
HASURA_GRAPHQL_RATE_LIMIT_REDIS_URL="redis://username:password@redishostname:port"
HASURA_GRAPHQL_RATE_LIMIT_REDIS_TLS_HOSTNAME="redishostname"