I am struggling to block HTTP GETs on a certain path. I have deployed multiple ingresses, one general on path / and couple more on subpaths like /test1, /test2, etc. It works fine, but recently I was asked to block HTTP GETs exactly on /. I have created a KongIngress resource with
and I have connected it with the / Ingress with an annotation. As a result all other requests are matched with / path and they are not routed correctly to other services (so e.g. http request to /test1 is going to the service associated with Ingress /).
The / ingress is defined as below:
- host: api.my.host
- path: /
What am I doing wrong? How to block certain methods for a route? How I can set up a custom HTTP response code? E.g. 405?