Capture request/response bodies in audit-log, extend it to MCP

custom_fields_by_lua adds request_body/response_body to the http-log
payload. Bodies and the raw Authorization header are now both logged
in clear text — dev only, flagged in the plugin file itself.
This commit is contained in:
Stéphane Tailland
2026-08-21 14:40:20 +02:00
parent fa7abfe5bd
commit 6fa122207e
4 changed files with 39 additions and 0 deletions
+18
View File
@@ -33,3 +33,21 @@ spec:
group: configuration.konghq.com
kind: KongRoute
name: ${NAME}-catalog-mcp
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongPluginBinding
metadata:
name: ${NAME}-catalog-mcp-audit-log-binding
namespace: ${NAMESPACE}
spec:
controlPlaneRef:
type: konnectNamespacedRef
konnectNamespacedRef:
name: ${CONTROL_PLANE_REF_NAME}
pluginRef:
name: ${NAME}-catalog-mcp-audit-log
targets:
serviceRef:
group: configuration.konghq.com
kind: KongService
name: ${NAME}-catalog-mcp