简体   繁体   中英

Using ambassador ingress controller in kubernetes

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"`

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM