The MeshProxyPatch policy edits the Envoy configuration Kong Mesh generates
for a proxy. It adds, patches, and removes clusters, listeners, filters, and virtual hosts
directly, to cover Envoy features that no policy exposes.
This policy runs after every other policy, so it sees their output and has the final say over any field it sets. It’s also tied to how Kong Mesh generates configuration. A patch that matches a listener by name or a filter by position can stop matching after an upgrade, and nothing reports it.
Use a dedicated policy whenever one exposes the behavior you need. Proxies that no
MeshProxyPatch selects get the configuration the other policies produce, unchanged.
A patch can remove routing or security filters, overwrite a generated resource, or produce configuration Envoy rejects. Start with a small set of proxies, save their working configuration, and verify both traffic behavior and configuration acceptance before expanding the selector.