hasura / hasura/graphql-engine

Restified OpenAPI spec generates only x-hasura-admin-secret header as param

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

Description

According to this:-

[https://github.com/hasura/graphql-engine/blob/8aec5057077237635e72de275d17d1a2510d874a/server/src-lib/Hasura/Server/OpenAPI.hs#L446C1-L453](url)

Restified OpenAPI spec has only x-hasura-admin-secret spec, it does not have Authoriztion bearer header output support.

Contributor guide

Open the contributing guide

Research direction

Start in server/src-lib/Hasura/Server/OpenAPI.hs at the linked lines around 446-453, and inspect how the Restified OpenAPI specification defines request headers. The issue is done when the generated specification represents bearer Authorization support in addition to x-hasura-admin-secret; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, openapi
Domain
api, authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.