You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm following documentation of lua envoy extension and try to setup both inbound and outbound listener. Inbound extension works good but outbound one is not working. When I check the log of my consul-dataplane in my service deployment pod, I found this:
2024-11-22T04:12:56.174Z+00:00 [info] envoy.lua(14) envoy_on_response() function not found. Lua filter will not hook responses.
Could anyone provide a working example of how to setup a outbound listener?
P.S. When I apply the change use kubectl apply, seems like this change is not take effect. So everytime I have first kubectl delete and then kubectl apply to make those change take effection. Am I missing anything or it's the expected behavior?
Reproduction Steps
My serviceDefault config is like this
envoyExtensions:
- name: "builtin/lua"# has to be this so it can be recognized by envoyarguments:
proxyType: "connect-proxy"listener: "inbound"script: |- function envoy_on_request(request_handle) request_handle:logInfo("simple log test") request_handle:headers():add("x-consul-service", "auth-service") end
- name: "builtin/lua"# has to be this so it can be recognized by envoyarguments:
proxyType: "connect-proxy"listener: "outbound"script: |- function envoy_on_response(request_handle) request_handle:logInfo("---outbound!!!---") end
- name: builtin/ext-authzarguments:
listenerType: inboundproxyType: connect-proxyconfig:
httpService:
target:
service:
name: eks-micro-auth-servicenamespace: defaulttimeout: "5s"# Required timeout field
both inbound listener and ext-authz works for me, but when I check the log of my consul-dataplane in my service deployment pod, I found this:
2024-11-22T04:12:56.174Z+00:00 [info] envoy.lua(14) envoy_on_response() function not found. Lua filter will not hook responses.
Consul info for both Client and Server
Client info
Output from client 'consul info' command here
Client agent HCL config
Server info
Output from server 'consul info' command here
Server agent HCL config
Operating system and Environment details
Log Fragments
The text was updated successfully, but these errors were encountered:
Overview of the Issue
I'm following documentation of lua envoy extension and try to setup both inbound and outbound listener. Inbound extension works good but outbound one is not working. When I check the log of my consul-dataplane in my service deployment pod, I found this:
Could anyone provide a working example of how to setup a outbound listener?
P.S. When I apply the change use kubectl apply, seems like this change is not take effect. So everytime I have first kubectl delete and then kubectl apply to make those change take effection. Am I missing anything or it's the expected behavior?
Reproduction Steps
My serviceDefault config is like this
both inbound listener and ext-authz works for me, but when I check the log of my consul-dataplane in my service deployment pod, I found this:
Consul info for both Client and Server
Client info
Server info
Operating system and Environment details
Log Fragments
The text was updated successfully, but these errors were encountered: