Istio 不转发授权标头

Bru*_*edo 2 kubernetes istio servicemesh

kind: "RequestAuthentication"
metadata:
  name: "jwt-api"
  namespace: default
spec:
  selector:
    matchLabels:
      app: api
  jwtRules:
  - issuer: "https://login.microsoftonline.com/12312312312312312312/v2.0"
    jwksUri: "https://login.microsoftonline.com/12312312312312312312/discovery/v2.0/keys"
Run Code Online (Sandbox Code Playgroud)

有谁知道如何将授权标头转发到微服务?

伊斯蒂奥 1.7

Bru*_*edo 6

我通过阅读文档找到了解决方案:

转发原始令牌:布尔值。如果设置为 true,则将为 ustream 请求保留原始令牌。默认为 false。

- issuer: 
  jwksUri:
  forwardOriginalToken: true
Run Code Online (Sandbox Code Playgroud)