Using ambassador ingress controller in kubernetes

5/19/2020

I have created my auth service deployed in a kuberenetes cluster which is working and generating token when api is called by node port. I wanted to use Ambassador as the ingress controller so I mapped my services with ambassador but now when i call my auth service im getting

Spring Boot: RequestRejectedException: The request was rejected because the URL contained a potentially malicious String “//”

I tried changing to nginx and it worked fine. Any suggestion why Im getting spring boot http firewall exception in ambasador

apiVersion: getambassador.io/v2
kind: AuthService
metadata:
  name: authentication
spec:
  auth_service: "auth:3000"
  path_prefix: "/extauth"`
-- JOB Daniel
ambassador
kubernetes
kubernetes-ingress
spring
spring-boot

1 Answer

5/20/2020

Try adding a slash at the end of the prefix string.ie,path_prefix: "/extauth/"

-- tibin tomy
Source: StackOverflow