-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Issue with IP Blocking and Allowing in global configuration #2165
Comments
Hello, Cavid!
Which solution would be more convenient for you? |
Hello @Fabman08,
Consequently, the method should accept two arguments, including global settings:
Would you be able to allocate some time to address this? |
Thank you very much for your help. We will eagerly await the new version. |
I had thought of the first option, but since I have too many services, it will be difficult to control this |
@raman-m just a little question about Global Settings behaviours. I've found three ways to fix the issue:
Which one is the best? |
@Fabman08 Your research is too complicated!
It is best to prioritize the route-specific
Yes, if route options are defined, all global ones should be ignored. We will highlight this in the documentation. There should be no merging whatsoever. This approach is the simplest and most correct solution, as merging properties would be erroneous due to potential conflicts within the algorithm. Therefore, merging is identified as a source of bugs. |
* Adds SecurityOptions to Global Configuration * Adds acceptance tests * set SecurityOptions constructor with IList * Revert "set SecurityOptions constructor with IList" This reverts commit 3e4d4a4. * SecurityOptions se constructor parameters as IList<T> * SecurityOptionsCreator edit IP parsing in order to pass string[] as SecurityOptions constructr parameters * IPSecurityPolicy fix Exists to Contains * avoid null check nesting, add clientIp null check * simplify SecurityOptions Create method * SecurityOptions removed .ToList() * SecurityOptionsCreator set native parameter in private methods Co-authored-by: Raman Maksimchuk <[email protected]> * SecurityOptionsCreator edited as suggested * fix traits and BDDfy * FileSecurityOptions move IsFullFilled inside the class * Code review by @raman-m --------- Co-authored-by: Fabrizio Mancin <[email protected]> Co-authored-by: Raman Maksimchuk <[email protected]>
I configured IP blocking and allowing in Ocelot using SecurityOptions, but it's not working.
The IP blocking configuration is not working as expected.
The text was updated successfully, but these errors were encountered: