HASURA_GRAPHQL_JWT_SECRET not working with RS256 in docker-compose
See original GitHub issueFrom docker-compose.yaml HASURA_GRAPHQL_JWT_SECRET : ‘{“type”:“RS256”, “key”:“-----BEGIN PUBLIC KEY-----[mypublickey]-----END PUBLIC KEY-----”}’
Fatal Error: JWT conf: Error in $: Invalid JWK: Could not decode PEM: invalid PEM delimiter found
Am I doing something wrong?
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (5 by maintainers)
Top Results From Across the Web
Issue configuring JWT secret with claims_map in Hasura ...
I am trying to set claims_map in HASURA_GRAPHQL_JWT_SECRET in my docker compose file using the below config. HASURA_GRAPHQL_JWT_SECRET: ...
Read more >Authentication using JWT | Hasura GraphQL Docs
If your auth server is using RSA to sign JWTs, and is using a 512-bit key, the JWT config only needs to have...
Read more >Setup Auth0 Authentication in Hasura - Egghead.io
Hasura can work with any authentication method that can produce a JWT with custom claims. We will explore setting up ... We can...
Read more >Setup Auth0 Authentication in Hasura - Code Daily
Hasura can work with any authentication method that can produce a JWT with custom claims. ... The docker-compose.yaml to spin up Hasura.
Read more >How to Set Up Hasura with Docker Compose - Nhost
In this article, we will go through the steps to get Hasura up and running on your local machine. First, let's discuss what...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ecthiender I agree, the key above is not in the PEM format, however I´ve tried the same with our PEM formatted key from the .pem file
I´ve tried that with spaces, with no spaces, as a single line without line breaks etc and it always produces
EDIT:
Got it working now by changing a few things:
Thank you anyway 😃
@jakobrosenberg This is typically a quoting/newline error. Can you use https://hasura.io/jwt-config and generate the value with proper escaping etc. and try again?