hasura / hasura/graphql-engine

HASURA_GRAPHQL_ADMIN_SECRET Error in $: object key > 34: Failed reading: satisfy

Open
#7,606 4 comments 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.0.0-beta.2
CLI Version (for CLI related issue): not CLI related issue

### Environment

System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Binaries:
Node: 14.17.5 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.14 - C:\Program Files\nodejs\npm.CMD

### What is the expected behaviour?

Hasura GraphQL Engine docker container to start.

### Keywords

HASURA_GRAPHQL_ADMIN_SECRET
Failed reading

### What is the current behaviour?

docker container does not start, enters "RESTARTING" status, and the docker container logs contain this error:

**Fatal Error:- Environment variable HASURA_GRAPHQL_JWT_SECRET: Error in $: object key > 34: Failed reading: satisfy**

### How to reproduce the issue?

In a PowerShell terminal, run this `docker run` command:

`docker run --name hasura-with-jwt -d --restart unless-stopped -p 8080:8080 -e HASURA_GRAPHQL_DATABASE_URL=postgres://hasurauser:myPassword@192.168.1.1:5432/TestDatabase -e HASURA_GRAPHQL_ENABLE_CONSOLE=true -e HASURA_GRAPHQL_ENABLE_TELEMETRY=false -e HASURA_GRAPHQL_ADMIN_SECRET=mySecret -e HASURA_GRAPHQL_JWT_SECRET='{"type":"HS256", "key": "3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R"}' hasura/graphql-engine:v2.0.0-beta.2`

### Screenshots or Screencast

![image](https://user-images.githubusercontent.com/2665104/135180958-609434c9-6fd9-4e7a-a9f8-af32499499db.png)

### Please provide any traces or logs that could help here.

### Any possible solutions?

### Can you identify the location in the source code where the problem exists?

No.

### If the bug is confirmed, would you be willing to submit a PR?

No.

Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the PowerShell docker run command with HASURA_GRAPHQL_JWT_SECRET and inspect the container's startup configuration parsing. Done means the container starts with the reported JWT value, or the failure identifies the required environment-variable format.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, postgresql
Domain
api, authentication, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.