Comments (6)
CC: @yanavlasov @zuercher
from envoy.
Presuming that this is a local reply generated by Envoy's jwt_authn filter, some kinds of modifications can be made with local_reply_config. If that's not sufficient, you're left with using some other filter to inspect and modify the response. Possibilities include the lua filter, writing a custom WASM filter, or writing a custom C++ filter.
from envoy.
Let's say if response is generated by jwt_auth filter of envoy then it will always set status code as 401 and response body will be based on the fault name such as "Jwt is expired" or "signature is invalid" something like that. My question here is how local_reply_config can understand if the error is "jwt is expired" then go and pick this error format and if error is "invalid signature" go and pick this error message.I know one way is to write lua filter that can extract the body and check if body is this then add this header so local_reply_config filter can do check based on header and status code, but I don't want to go this way because it can add some latency. Is there any other way possible?
from envoy.
Anyone can help on this please?
from envoy.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
from envoy.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
from envoy.
Related Issues (20)
- tls: Expand options to handle client certificate verification failure HOT 5
- Help requested isolating an asan bug HOT 3
- Flake in IpVersions/DirectResponseIntegrationTest.DefaultDirectResponseFile/IPv6
- Support single instance of a Listener that listens both TCP and UDP traffic on the same port HOT 3
- Didn't find a registered implementation for 'tcp' with type URL: 'envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy' HOT 2
- [ RUN ] IpVersions/IntegrationTest.RequestAndResponse/IPv6 flaky on arm HOT 2
- flake in UsesPreferredAddressDNAT
- Add remove_match to HeaderMutation that matches based on a StringMatcher HOT 2
- //test/integration:tcp_tunneling_integration_test flakes after custom inline header changes
- debs build flake HOT 1
- [ RUN ] IpAndHttpVersions/TcpTunnelingIntegrationTest.UpstreamHttpFiltersPauseAndResume/IPv4_Http3Downstream_HttpUpstreamHttpParserNghttp2NoDeferredProcessingLegacyWithUpstreamHttpFilters flake
- Any way to route specific traffic to a external proxy HOT 4
- Force tracing based on header matches HOT 3
- gcc 11 + -Wuninitialized build failure using do_ci.sh HOT 1
- Newer release available `com_github_maxmind_libmaxminddb`: 1.10.0 (current: 1.9.1)
- Newer release available `rules_rust`: 0.46.0 (current: 0.35.0)
- Outlier_detection: config option - always_eject_atleast_one HOT 1
- Why can't Envoy log the Connection in header HOT 1
- Enabling HTTP 2 for upstream server, the response time of concurrent requests is forming a waterfall model adding up the time of other concurrent request HOT 3
- Support METADATA operator in header mutation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envoy.