95f9b611b3
Body capture lives in dedicated audit-log-body-capture(-bindings).yaml files, separate from audit-log.yaml itself, so they can be dropped without touching the base logging plugin (degrades gracefully to metadata-only via nil custom_fields). Response body captured in body_filter (chunk-accumulated) rather than the log phase, which cannot call kong.response.get_raw_body() directly.
36 lines
946 B
YAML
36 lines
946 B
YAML
apiVersion: configuration.konghq.com/v1alpha1
|
|
kind: KongPluginBinding
|
|
metadata:
|
|
name: ${NAME}-catalog-mcp-audit-capture-request-binding
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
pluginRef:
|
|
name: ${NAME}-catalog-mcp-audit-capture-request
|
|
targets:
|
|
serviceRef:
|
|
group: configuration.konghq.com
|
|
kind: KongService
|
|
name: ${NAME}-catalog-mcp
|
|
---
|
|
apiVersion: configuration.konghq.com/v1alpha1
|
|
kind: KongPluginBinding
|
|
metadata:
|
|
name: ${NAME}-catalog-mcp-audit-capture-response-binding
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
pluginRef:
|
|
name: ${NAME}-catalog-mcp-audit-capture-response
|
|
targets:
|
|
serviceRef:
|
|
group: configuration.konghq.com
|
|
kind: KongService
|
|
name: ${NAME}-catalog-mcp
|