Response-transformer has no effect

Hi all

I applied the response-transformer plugin

apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
  name: my-transformer
  namespace: kong
config:
  remove:
    headers:
      - x-kong-proxy-latency
  add:
    headers:
      - x-new-header:test
plugin: response-transformer

However, the plugin has no effect (proxy header not removed, new-header not set).

The ingress controller was logging the following statement when I applied the plugin:

I0914 16:53:37.606012       1 kong.go:68] no configuration change, skipping sync to Kong

What do I miss here?

Thank you!

I found a partial solution for the kong headers using

        - name: KONG_HEADERS
          value: "off"

for the Kong image config.

There are still some headers to remove though and I don’t understand why the plugin config above is not working.

The plugin documentation has been updated with an k8s example. The main mistake was

  • not using KongClusterPlugin
  • not using “global”

Solved.