Kong / Kong/developer.konghq.com

AIGW Policy scopes: add FAQ and update corresponding sections

Open
#7,194 0 comments 0 reactions 1 assignee View on GitHub

@lmilan is already working on this.

Since Sep 14, 2026.

internal product:ai-gateway
Dominant language
Ruby
Stars
28
Forks
121
Avg merge
1d 4h
Merged PRs (30d)
313

Description

Definition of done

Add an FAQ and a few sentences explaining how it works to https://developer.konghq.com/ai-gateway/entities/ai-policy/#ai-policy-scopes and https://developer.konghq.com/ai-gateway/entities/ai-model/#ai-policy-execution-order

Information

Problem: hen a policy is scoped to model, it will not get triggered

Reported in slack

The reason for this is the order of operations for global vs model scoped policies.
When using the global scope (left screenshot) the pre-function is executed before authentication
When using the model scope (right screenshot) the pre-function is executed after authentication

and

The request must first be authenticated before routing to a specific model. As a result, to execute a model scoped plugin/policy the request first must authenticate and then it can execute the plugin

Due date (optional)

Size

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.