Code Monkey home page Code Monkey logo

Comments (6)

RyanTheOptimist avatar RyanTheOptimist commented on June 22, 2024

CC: @yanavlasov @zuercher

from envoy.

zuercher avatar zuercher commented on June 22, 2024

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.

darshak-patel avatar darshak-patel commented on June 22, 2024

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.

darshak-patel avatar darshak-patel commented on June 22, 2024

Anyone can help on this please?

from envoy.

github-actions avatar github-actions commented on June 22, 2024

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.

github-actions avatar github-actions commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.