最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

envoyproxy - Envoy JWT Auth Filter Fails When Placed After Lua Filter - Stack Overflow

programmeradmin2浏览0评论

I am using Envoy's JWT authentication HTTP filter, and it works fine when no Lua filters are placed before it. However, if I place a Lua filter before the JWT auth filter, I get the following error:

"response": {
  "upstream-service-time": null,
  "flags": "-",
  "code": 401,
  "details": "jwt_authn_access_denied{Jwt_issuer_is_not_configured}",
  "duration": 7
}
- name: envoy.filters.http.lua
        typed_config:
          "@type": type.googleapis/envoy.extensions.filters.http.lua.v3.Lua
          inline_code: |
            function envoy_on_request(handle)
              -- Log Authorization Headers
              local auth_header = handle:headers():get("Authorization")
              if auth_header then
                handle:logInfo("Authorization Header: " .. auth_header)
              else
                handle:logInfo("Authorization Header: MISSING")
              end
            end
      - name: envoy.filters.http.jwt_authn
        typed_config:
          "@type": type.googleapis/envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication
          providers:
            aws-cognito-jwt:
              clear_route_cache: true
发布评论

评论列表(0)

  1. 暂无评论