GithubHelp home page GithubHelp logo

Comments (28)

spencergibb avatar spencergibb commented on May 10, 2024 19

Useful for those who can't (or won't) use webflux.

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024 18

The initial implementation is there. Track the TODO list #2949 (comment) for additional things for M1. Remaining TODO's will get added to new issues for upcoming milestones.

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024 8

No

from spring-cloud-gateway.

anbusampath avatar anbusampath commented on May 10, 2024 8

+1 as Project Loom getting finalized. It's good to have Spring MVC based Gateway.

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024 2

Next week, but this was released in M1

from spring-cloud-gateway.

giger85 avatar giger85 commented on May 10, 2024 1

@spencergibb
This function is very interesting.
I will try to change my application from webflux to mvc with upcoming spring boot 3.2 and virtual thread.

from spring-cloud-gateway.

sandipchitale avatar sandipchitale commented on May 10, 2024 1

Thanks @spencergibb. I am pretty confident that a lot of people may be looking for replacement of @EnableZuulProxy. So either a blog post or some form of documentation on this will be extremely helpful. May be we can request Josh long to do a Spring tip on this topic.

from spring-cloud-gateway.

joshiste avatar joshiste commented on May 10, 2024

I'm just curious. Will this issue be targeted for a 2.x release?

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

@joshiste it will not be

from spring-cloud-gateway.

narasimhamurthyk3 avatar narasimhamurthyk3 commented on May 10, 2024

Hi Team,

I have implemented Spring cloud gateway and Eureka discovery server everything working fine.
Now I am trying to add OAUTH2 security at Spring cloud gateway, but I can see its not compatible with gateway.

Is it possible to implement oAuth2 at gateway if yes can anyone share sample code please.

from spring-cloud-gateway.

wzlee avatar wzlee commented on May 10, 2024

Is there any progress?

from spring-cloud-gateway.

pards avatar pards commented on May 10, 2024

Is there a plan to allow Spring MVC?
This prevents us from using our common libraries such logging filters in our gateway implementation.

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

#36 (comment)

from spring-cloud-gateway.

mohanrao avatar mohanrao commented on May 10, 2024

@spencergibb we have been using spring cloud zuul with @EnableZuulProxy mode in an spring boot app which has some rest endpoints exposed with restcontoller. What is the suggestion to use spring cloud gateway in this situation

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

@mohanrao only if you migrate to a webflux application. If you aren't doing anything serlvet specific and are using spring annotations, it shouldn't be too difficult.

from spring-cloud-gateway.

mohanrao avatar mohanrao commented on May 10, 2024

Thanks @spencergibb . I will try migrating to a web flux . Our application uses oracle so it's not a true migration for some/most of the rest endpoints

from spring-cloud-gateway.

Jeffrey-Hassan avatar Jeffrey-Hassan commented on May 10, 2024

+1 for this. My use case is actually quite simple -- I work for a large corporation and want to use spring cloud with a gateway service, but the security libraries to interact with corporate SSO are written in such a way that is extremely dependent on the Servlet Context (hard-coded HttpServletRequest objects throughout the entire stack). For better or worse, I'd be surprised if there's ever a reactive implementation of that library, so it simply doesn't work with spring cloud gateway. Assuming as of now, still no progress?

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

Until it gets assigned a project or milestone, you can assume no progress.

from spring-cloud-gateway.

mohanrao avatar mohanrao commented on May 10, 2024

@spencergibb is there any mechanism available to vote to get this needs to assigned to a project or milestone

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

The reaction in #36 (comment) is the only voting we have. Note, this is a major effort and basically a parallel implementation.

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

Here's a super simple (read nowhere near close) webmvc.fn version https://github.com/spencergibb/spring-cloud-gateway/blob/92208270307f275693e0c5223e85c5572f1a6100/spring-cloud-gateway-fn/src/test/java/org/springframework/cloud/gateway/fn/webmvc/WebmvcIntegrationTests.java#L84

from spring-cloud-gateway.

sandipchitale avatar sandipchitale commented on May 10, 2024

Will this support equivalent of the /zuul/ prefix support (bypass dispatcher servlet) of NetFlix Zuul for uploading large files . Or does that not apply to the new architecture? If the use case is still valid, what is the equivalent way to handle it in new Spring MVC implementation of SCG.

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

This will not bypass the dispatcher servlet. I do not know if that use case is valid outside of zuul

from spring-cloud-gateway.

sandipchitale avatar sandipchitale commented on May 10, 2024

I meant the original implementation in Netflix Zuul provided the /zuul/ prefix based bypass of DispatcherServlet because of some suckiness (a comment I saw on SO - https://stackoverflow.com/a/32100705 ) in DispatcherServlet, I think related to buffering of request/response or something like that. That will still be the issue in new SCG MVC implementation right? Hence my question. May be I am misunderstanding as to why originally /zuul/ support was added. And I did not mean to ask for exact /zuul/ prefix solution, but equivalent that deals with the original isuue.

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

@sandipchitale reading my SO answer and after adding support for multipart formdata (file uploads), I believe (though I haven't verified) that the modifications I made to multipart handling for an MVC gateway will eliminate previous problems with zuul. Basically, I turn off multipart parsing for gateway requests.

863a199#diff-af291548ea3a7b7c047c3de2f9ef6d6ba8402251f8683be19056eb60dddde0eeR62-R75

from spring-cloud-gateway.

patrickli2013 avatar patrickli2013 commented on May 10, 2024

@spencergibb thanks for the hard work! May I know when the M2 will be released?

from spring-cloud-gateway.

sandipchitale avatar sandipchitale commented on May 10, 2024

We have an implementation in a SpringMVC (gateway+angular frontend app) with embedded @EnableZuulProxy. Now that NetFlix Zuul is EOLed we tried to implement some of this using ProxyExchange with mixed success.

It will be helpful if there was some guidance provided on how to replace @EnableZuulProxy functionality with Spring Cloud Gateway MVC.fn . Or the provided functionality is already doing what @EnableZuulProxy does?

from spring-cloud-gateway.

spencergibb avatar spencergibb commented on May 10, 2024

It may be the subject of a blog or something, but zuul hasn't been supported for a number of years. This implementation provides much more functionality than the zuul implementation though there are likely incompatibilities.

from spring-cloud-gateway.

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.