-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
How to add IgnorePatterns in spring cloud as zuul? #1243
Comments
Seems like that was answered here #185 (comment) I am not sure what else to say |
@ryanjbaxter I realized that the spring-cloud-gateway add the route definition explicitly, and not generate route definition automatically as zuul after I read the issue 185 again. thanks @ryanjbaxter |
It certainly can generate route definitions automatically |
@ryanjbaxter @spencergibb I totally missed your means. And @spencergibb missed my mind. In the issue 185 , @spencergibb told me that, it don't need ignore service not do not need ignore pattern. about reply from @ryanjbaxter
I missed the I think it should be Now I am still confused that why ignore pattern is not necessary for spring cloud gateway ? I add spring actuator in the service, but these rest interface should not be available from gateway. |
You can exclude services from being added as described here #185 (comment) |
@ryanjbaxter I know how to exclude services. My question is how to exclude some rest interface. Take an example, How to implement that in spring cloud gateway? |
I am not following. You control the predicate that will match the requests...so you just define the predicate in such a way so that the managmenent interface will not match any predicate. |
@tony-clarke-amdocs I know your mind. But the bussiness rest interface is complex (because of a bad design). It is hard to clear all the bussiness rest interface. And the management interface is clear. |
I found that how to ignore the service in issue 185. But I still want to know spring cloud gateway support IgnorePatterns or not? currently, I created a prefilter with implements WebFilter for every request. But I dont think it a good idea.
Do you have more suggestion about it?
The text was updated successfully, but these errors were encountered: