hasura / hasura/graphql-engine

feat(c/v3-engine): introduce `jwkFromUrlFromEnv`

Open
#10,592 1 comment 0 reactions 0 assignees View on GitHub
k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Component

c/v3-engine

### Is your proposal related to a problem?

`jwkFromUrl` is hard-coded.

```yaml
kind: AuthConfig
definition:
mode:
jwt:
key:
jwkFromUrl: "https://hard-coded-url.com"
```

### Describe the solution you'd like

jwk URL can be different from prod, stg, dev, etc.

```yaml
kind: AuthConfig
definition:
mode:
jwt:
key:
jwkFromUrlFromEnv: JWK_URL
```

Contributor guide

Open the contributing guide

Research direction

The proposal targets c/v3-engine's AuthConfig JWT key configuration; start by tracing the existing `jwkFromUrl` entry point and its environment/config handling. Done means the YAML form can source the JWK URL from `JWK_URL` while preserving the existing URL form, with coverage for both forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
authentication, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.