AI Gateway 2.4: list header_auth_schemes in the Key Auth schemas

Open Beginner friendly
#8,230 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@aadarsh-programmer is already working on this.

Since Nov 22, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
json, yaml
Domain
api, documentation

Research direction

Read app/_schemas/ai-gateway/policies/KeyAuth.json and the AIGatewayAuthStrategyKeyAuthConfig schema in api-specs/konnect/ai-gateway/v1/openapi.yaml. Check the 2.4 release branch and the policy schema from an AI Gateway 2.4 image to determine the expected field shape. Done when both schemas list header_auth_schemes in the AI Gateway 2.4 release.

Written by the indexing model from the issue text.

Description

user-reported

Jobs to be done (optional)

A reader who sets up an AI Auth Strategy of type key-auth on AI Gateway 2.4 can set header_auth_schemes, for example to read a key from Authorization: Bearer <key>. The schema-based reference content for AI Gateway 2.4 doesn't list that field yet.

Definition of done

  • app/_schemas/ai-gateway/policies/KeyAuth.json on release/ai-gateway-2.4 lists header_auth_schemes, with a download from an AI Gateway 2.4 image.
  • The AIGatewayAuthStrategyKeyAuthConfig schema in api-specs/konnect/ai-gateway/v1/openapi.yaml lists header_auth_schemes, so the Schema section of the AI Auth Strategy page shows it.
  • Both changes are in the AI Gateway 2.4 release.

Information

  • The Key Auth plugin got header_auth_schemes with a minimum AI Gateway version of 2.4. It accepts a header value only when it starts with one of the schemes followed by a space, and uses the rest of the value as the key.
  • The latest policy schema download on release/ai-gateway-2.4 ran before the field landed, so its KeyAuth.json doesn't have the field.
  • The Konnect AI Auth Strategy key-auth config allows extra properties and points to the Key Auth plugin reference for them, but the spec doesn't list header_auth_schemes.
  • #8215 adds the field by hand to the API key table of the AI Auth Strategy page, and uses it in a how-to.

Size

S

Dominant language
Ruby
Stars
28
Forks
133
Avg merge
1d 15h
Merged PRs (30d)
347

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Kong/developer.konghq.com

All issues in Kong/developer.konghq.com

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.