hasura / hasura/graphql-engine

Hasura JWT_MODE with type ES256 using Cognito + ALBs

Open
#6,664 1 comment 0 reactions 0 assignees View on GitHub
support/needs-triage
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

It seems like Hasura doesn't support JWT validation for tokens using the `ES256` algo, which is what the ALB (Amazon Load Balancer) tokens use.
> ALBs use an `ES256` JWT and public-key uri `https://public-keys.auth.elb.${region}.amazonaws.com/${kid}` for validation, whereas Hasura requires a `jwk_url`.

If that's the case, what are the workarounds? Or is it not possible?

My idea was to create a custom JWT validation Action handler, then funnel all GraphQL requests through it, but that seems hacky. Any ideas?

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reviewing Hasura's JWT_MODE configuration and the ALB public-key URI behavior, then determine whether ES256 validation can be supported or what documented workaround applies; the issue is done when the support or limitation is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
api, authentication, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.