LLM inferencev3.14+

Enable the VeriKnox plugin on a Route that proxies OpenAI-compatible LLM inference traffic.

The plugin intercepts requests to the upstream LLM provider, applies VeriKnox Hub policy, and forwards a cryptographically signed receipt to VeriKnox Hub before the request is proxied. A signed response receipt is sent after the upstream responds.

The agent_passphrase must be a Vault reference. Don’t set it as a plain string. The data plane must be enrolled with VeriKnox Hub before the plugin can sign receipts. See the installation instructions for enrollment steps.

The http_session_header field is optional. When set, the plugin attaches the value of that request header to receipts as a session ID, which is useful for grouping multi-turn conversations in VeriKnox Hub audit logs.

 
sequenceDiagram
    autonumber
    participant A as AI Agent / Client
    participant K as AI Gateway
(veriknox-plugin) participant H as VeriKnox Hub participant U as Upstream LLM
(e.g. OpenAI, Anthropic,
OpenRouter, Google Gemini) A->>K: Send inference request Note over K: Parse request body
(prompt, model, messages) K->>H: POST signed receipt — inference request
(ED25519 + ML-DSA-65 signatures) H-->>K: 200 OK (receipt accepted) K->>U: Forward request upstream U-->>K: Return inference response Note over K: Parse response body
(completion text, token usages) K->>H: POST signed receipt — inference response
(ED25519 + ML-DSA-65 signatures) H-->>K: 200 OK (receipt accepted) K-->>A: Return response to client

Prerequisites

  • The VeriKnox plugin is installed and the data plane is enrolled with VeriKnox Hub.

  • The identity passphrase is stored in a Kong Vault. Reference it as {vault://veriknox/VERIKNOX_IDENTITY_PASSPHRASE} or the equivalent path for your vault backend.

  • The upstream LLM provider Route exists in Kong Gateway.

Environment variables

  • VERIKNOX_PROVIDER_NAME: A logical name for the upstream provider used in audit receipts. For example: OpenAI or Anthropic.

  • {vault://veriknox/VERIKNOX_IDENTITY_PASSPHRASE}: Vault reference to the identity passphrase. Replace veriknox with your vault prefix if different.

  • https://hub.veriknox.ai: Base URL of your VeriKnox Hub instance. The default value is https://hub.veriknox.ai.

  • VERIKNOX_SESSION_HEADER: Name of the HTTP header to extract a session ID from. For example: X-Session-Id. Omit this variable to leave the field unset.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!