AI GCP Model Armor

AI License Required

Log blocked request and response contentv3.14+

Configure the AI GCP Model Armor plugin to log the raw content of blocked requests and responses. When a request or response is blocked, the original prompt or response body is captured in the Kong Gateway logs under ai.proxy.gcp-model-armor.input_faulty_prompt and ai.proxy.gcp-model-armor.output_faulty_response.

Prerequisites

Environment variables

  • GCP_SERVICE_ACCOUNT_JSON: GCP service account credentials in JSON format.

  • GCP_PROJECT_ID: GCP project identifier.

  • GCP_LOCATION_ID: GCP location identifier.

  • GCP_TEMPLATE_ID: Guardrail template identifier.

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!