Straiker 플러그인 구성 레퍼런스
Straiker 플러그인 구성 레퍼런스 (Straiker Plugin Configuration Reference)
이 문서는 Kong Gateway에서 Straiker 플러그인을 구성할 때 사용하는 파라미터를 스키마 형태로 정리한 레퍼런스예요. 필수값인 api_key부터 Straiker Defend 웹훅 엔드포인트를 지정하는 detect_url, 탐지 결과로 요청과 응답을 차단할지 결정하는 block, 웹훅 장애 시 동작을 정하는 fail_open 같은 핵심 옵션을 하나씩 확인할 수 있어요. consumer, consumer_group, route, service 같은 스코프 필드로 플러그인 적용 범위를 조정하는 방법도 함께 다뤄요
출처: 문서
본문
{
"properties": {
"config": {
"additionalProperties": false,
"properties": {
"api_key": {
"type": "string",
"description": "Straiker Defend API key.\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).\nThis field is [encrypted](/gateway/keyring/).",
"required": true
},
"detect_url": {
"type": "string",
"description": "Straiker Defend webhook endpoint.",
"default": "https://api.prod.straiker.ai/api/v1/detect/webhook"
},
"block": {
"type": "boolean",
"description": "When true, Straiker detections can block both the incoming request and the final model response. When false, detections are evaluated and logged but traffic is never blocked.",
"default": true
},
"fail_open": {
"type": "boolean",
"description": "Behavior when the Straiker webhook is unreachable or errors on the pre-call (request) check. true allows the request through. false blocks the request when the webhook can't be reached. Post-call (response) evaluation always fails open, so a model answer is never withheld because the webhook was down.",
"default": true
},
"debug": {
"type": "boolean",
"description": "Enables verbose request, response, and webhook logging for local validation. Keep disabled in production.",
"default": false
}
},
"required": [
"api_key"
],
"type": "object"
},
"consumer": {
"additionalProperties": false,
"description": "If set, the plugin will activate only for requests where the specified consumer has been authenticated.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"consumer_group": {
"additionalProperties": false,
"description": "If set, the plugin will activate only for requests where the specified consumer group has been authenticated.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"route": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via the specified route.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"service": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"protocols": {
"description": "A list of the request protocols that will trigger this plugin.",
"items": {
"enum": [
"grpc",
"grpcs",
"http",
"https",
"tcp",
"tls",
"tls_passthrough",
"udp",
"ws",
"wss"
],
"type": "string"
},
"type": "array"
}
},
"required": []
}
관련 리소스
더 알아보기 (Learn more)
- api_key 필드는 볼트에 저장된 시크릿을 참조하는 방식으로 안전하게 지정할 수 있어요 — referenceable
- api_key처럼 민감한 필드가 키링으로 암호화되는 방식을 이해하면 설정 관리에 도움이 돼요 — encrypted
- 스트리밍 방식으로 Straiker를 활용하는 코딩 에이전트 플러그인의 전체 문서도 함께 보면 좋아요 — Straiker coding agent streaming plugin
- 버퍼링 방식으로 Straiker를 활용하는 코딩 에이전트 플러그인의 전체 문서도 참고할 수 있어요 — Straiker coding agent buffered plugin