このページは機械翻訳されています。英語の原文を読む。

FeatureRecipe

prompt-deny-patterns-kong

Realizes core/prompt-deny-patterns on the gateway core/gateway/kong under Docker Compose; a Release binds it in its Manifest. It emits no file: the KongModelRoutes bundle the gateway's compose Recipe imports reads the attachment and writes Kong 3.9.3's AI Prompt Guard onto the chat and completion routes of each model wired to the gateway's models socket. The guard reads the text of every message of every role across the whole conversation, joined into one string with a space after each message, so an expression can match across two of them, and a completion's prompt. A message whose content is not a single string, such as content in parts or a turn carrying only tool calls, refuses the whole request. Letter case counts unless an expression says otherwise, as (?i) does. A request any of deny_patterns matches is refused whatever allow_patterns says; with allow_patterns set, a request none of them matches is refused. A refused caller receives HTTP 400 with the message "bad request", which names no expression, and so does a request the guard cannot read, such as a body that outgrows Kong's 8 KiB request buffer and is set aside on disk, which the gateway refuses without the guard as well. The build does not check an expression: one Kong cannot compile answers the requests reaching it with HTTP 500. So it honours deny_patterns and allow_patterns, and halts on a list of more than 10 expressions or an expression over 500 bytes, on a second such attachment, with nothing wired to the models socket, and on any component other than core/gateway/kong. The gateway imports its routes into its database, which keeps the guard after the attachment is removed, until it is deleted through Kong's Admin API.

来歴

公式このカタログが公式の公開者として認めている署名 ID によって署名されています。
コンテンツダイジェスト
sha256:3a967d30e2de3f0f7a4cf469992b06705857c8ef7cc68a48cba89aaadbe68340
公開日
2026-11-10T10:14:57Z
署名 ID
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

署名

  • 公式application/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:99a4826964e143629a2d69b25d2e961733aa5967073ac451776f3b0978c1857f

このバージョンの参照

oci://hub.aggrega.ai/featurerecipe/compose/prompt-deny-patterns-kong:1.0.0
ターゲット
—
実装対象
core/prompt-deny-patterns:1.0.0

提供

このレシピが利用側のために配線する決定論的なポインターテンプレートです。

provides テンプレートは宣言されていません。

Workload

ワークロードテンプレートは宣言されていません。

ローカル変数

ローカル変数は宣言されていません。

値のマッピング

値のマッピングは宣言されていません。

関係

他の公開エンティティとの間の型付きエッジです。公開されたターゲットがない参照は、リンクではなく切れたエッジとして表示されます。

使用先

使用元

カタログ内にこのエンティティに依存しているものはありません。

FeatureRecipe の概念リファレンス →

Aggrega カタログ — コンポーネント、機能、レシピ、およびそれらをレンダリングするプラグインのオープンなインデックスです。

共有の Aggrega デザインシステムで構築されています。

プライバシー