-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support per-route config for Lua #3124
Comments
Per filter config is not supported for Lua currently. I think @rshriram talked about working on this. |
Note this will require the route update stuff that @qiwzhang is working on. |
Is their any issue or roadmap that I can follow ? In the meanwhile, how can I achieve a simple basic auth ? |
I am waiting for @qiwzhang’s pr to land. |
Also looking forward to this feature! |
Hi folks, thanks for the great work you're doing! Thanks! |
I too in need for this feature. Is there any plan to support this? I've exact usecase of doing auth checks per virtualhost. |
Is there any recent development on this? This is really a desirable feature to use envoy as front proxy. If we had this, we could write their own filters easily. |
I have been working on an OpenID Connect Lua filter that would really be helped with per-route config. Curious to see where this is at. |
Anybody actively working on this one? |
@erikbos I’m not aware of any active effort on this. Do you want to take it? |
@dio I was just checking if there was something in progress as I really want to see & use this functionality. Unfortunately I am not experienced in C++ so I cannot take it :| |
An idea for implementing this, a demo: https://github.com/dio/per-route-envoy-lua The API is, of course, subject to change. The key idea here is: to list down all available routes:
- match:
prefix: "/hello"
route:
cluster: web_service
per_filter_config:
envoy.lua:
name: hello The available inline_codes:
hello: |
function envoy_on_request(request_handle)
request_handle:logInfo("hello:foo")
end
function envoy_on_response(response_handle)
response_handle:logInfo("hello:bar")
response_handle:headers():add("hello:ok", "1")
end The current |
Hi,
I'm trying to implement simple basic auth using LUA, and I want to activate the filter on selected routes. But it seems that I can't get to make
per_filter_config
on route configuration work. Am I missing something ?This is working:
But this is not:
The text was updated successfully, but these errors were encountered: