Commit Graph

755 Commits

Author SHA1 Message Date
vpavlyuk
0beff09af2 Dedupe response header filter (#866)
Filter that de-duplicates response filter values. Comes handy when e.g. both the gateway CORS logic and a downstream add Access-Control-Allow-Credentials and Access-Control-Allow-Origin headers. See https://github.com/spring-cloud/spring-cloud-gateway/issues/728 for additional context.
2019-03-20 16:00:50 -04:00
Spring Operator
9c00e60ee4 URL Cleanup (#906)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success 
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 8 occurrences migrated to:  
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch with 1 occurrences migrated to:  
  https://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch ([https](https://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch) result 200).
* http://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin with 1 occurrences migrated to:  
  https://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin ([https](https://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 with 3 occurrences migrated to:  
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://www.spring.io with 1 occurrences migrated to:  
  https://www.spring.io ([https](https://www.spring.io) result 301).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 16 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 8 occurrences
2019-03-16 11:43:40 -04:00
Ryan Baxter
f2acad91a9 Add documentation on how to remove sensitive headers. Fixes #703 2019-02-28 11:16:47 -05:00
Ryan Baxter
a93d83a6a7 Add note to documentation pointing people to Boot, WebFlux, and Reactor before working with Gateway. Fixes #813 2019-02-28 11:03:28 -05:00
Ryan Baxter
5a72962a13 Merge pull request #856 from rbraeunlich/2.0.x
Make RedisRateLimiter omit headers if property is set.  Fixes #855
2019-02-27 11:33:49 -05:00
Ronny Bräunlich
eb0b10ccc6 Make RedisRateLimiter omit headers if property is set
Fixes #855
2019-02-27 08:15:52 +01:00
Spencer Gibb
9f9454b91f Only tests for management port if it's different than server.port.
fixes gh-854
2019-02-25 13:26:34 -05:00
Ryan Baxter
b38719a029 Merge pull request #849 from tony-clarke-amdocs/updated-grafana
Add new row to Grafana dashboard that includes four JVM panels
2019-02-25 11:59:01 -05:00
buildmaster
9d43e083f6 Bumping versions to 2.0.4.BUILD-SNAPSHOT after release 2019-02-22 15:57:17 +00:00
buildmaster
95166db1f8 Going back to snapshots 2019-02-22 15:57:17 +00:00
buildmaster
0492df4443 Update SNAPSHOT to 2.0.3.RELEASE 2019-02-22 15:55:32 +00:00
Ryan Baxter
69d336c569 Fixes #838 2019-02-21 16:02:36 -05:00
Tony Clarke
1014d90478 Add new row to Grafana dashboard that includes four JVM panels 2019-02-21 14:56:28 -05:00
Olga Maciaszek-Sharma
e5e39d5387 Remove unresolved lombok doc links. 2019-02-14 12:10:42 +01:00
Olga Maciaszek-Sharma
5abc9ecdf1 Update readme. 2019-02-14 11:35:31 +01:00
Nastya Smirnova
414dcfe23a Fix documentation (#839) 2019-02-14 11:27:12 +01:00
Alex Simons
8fd35c55b1 Revisited documentation about writing a custom global pre/post-filter (#836)
* Added documentation about writing a custom global pre/post-filter

* Removed unnecessary words about GlobalFilter.

* Added back removed section title
2019-02-13 16:05:19 +01:00
Spencer Gibb
da8feee32e Disables jmx for test 2019-02-07 20:19:05 -05:00
Spencer Gibb
df3db1bcc4 Throw an error when an 'lb:' scheme is used, but there is no handler.
fixes gh-822
2019-02-06 14:21:06 -05:00
Spencer Gibb
b25e6b15e9 Guards against NPE.
see gh-789
2019-02-05 22:00:55 -05:00
Spencer Gibb
7019231127 Merge branch 'aftersss-2.0.x' into 2.0.x 2019-01-31 14:26:08 -05:00
wenqi.huang
38b2168fed ObjectProvider.getIfAvailable() is called too frequently, fix this performance problem. 2019-01-31 14:25:44 -05:00
Spencer Gibb
e960eadb32 WeightCalculatorWebFilter now forces subscription of RouteLocator.
Because it needs to calculate the weights before predicates run, if the
predicates are all defined in yaml, weights aren't initialized until
after the first run, meaning weights are unavailable in the predicates.

WeightCalculatorWebFilter now listens for RoutesRefreshedEvent. When
triggered, it subscribes to RouteLocator, forcing initialization.

fixes gh-332
2019-01-28 15:05:25 -05:00
Ryan Baxter
08408e37a2 Merge pull request #788 from tony-clarke-amdocs/log-routes-from-gateway-properties
Add logging for routes loaded by gateway properties
2019-01-18 14:35:48 -05:00
Tony Clarke
229040a463 Add logging for routes loaded by gatewy properties 2019-01-18 14:23:09 -05:00
Ryan Baxter
09eacaadcf Merge pull request #781 from young891221/handlerStrategies-performance-fix
create HandlerStrategies only one in ModifyRequestBodyGatewayFilterFactory.  Fixes #760
2019-01-17 11:13:27 -05:00
Ryan Baxter
242fc34305 Validate that we actually have a hostname when using a load balanced URI. Fixes #779 2019-01-17 11:09:43 -05:00
young891221
eba10481b5 code refactoring 2019-01-17 13:56:37 +09:00
emilnkrastev
dfc52c7ad1 Fix trailing slash in strip prefix filter (#770)
The existing Strip Prefix filter removes the trailing slash, which causes incoming requests to fail upon hitting the downstream service.
2019-01-16 18:27:27 -05:00
artemMartynenko
6d2929a289 refactor null safety http method resolving for non standard method (#741)
* refactor null safety http method resolving for non standard method
2019-01-16 16:53:54 -05:00
young891221
ad1dc247dc create HandlerStrategies only one 2019-01-16 16:39:02 +09:00
Spencer Gibb
78e82c4ea6 Run http headers filters for response after status code is set.
This makes the status code available to the filters.

fixes gh-757
2019-01-08 10:44:51 -05:00
Ryan Baxter
3b41ee5b7a Merge pull request #722 from ryanjbaxter/use-scheme-from-loadbalancer
Allow isSecure property of LoadBalancer ServiceInstance to determine the scheme of the URL
2019-01-07 16:13:31 -05:00
Spencer Gibb
b4a9bff655 Disables TimeoutException.fillInStackTrace() 2018-12-21 11:33:03 -05:00
Ryan Baxter
383a204bcf Adding documentation on customizing DiscoveryClient predicates and filters. Fixes #637 2018-12-19 19:59:51 -05:00
Ryan Baxter
077b647ec4 Allow isSecure property of LoadBalancer ServiceInstance to determine the scheme of the URL. Fixes #641 2018-12-18 15:51:19 -05:00
Spencer Gibb
f06edbaf19 Restores ability to just check for the presence of a header.
fixes gh-715
2018-12-12 18:24:19 -05:00
Spencer Gibb
0da60bbeae Extracts variables from Host Route Predicate.
fixes gh-706
2018-12-10 23:00:34 -05:00
Spencer Gibb
8194137f03 Fixes constant documentation reference for Path Route Predicate.
Also aligns to a new constant name.

fixes gh-708
2018-12-10 22:19:07 -05:00
Spencer Gibb
4a987fd6a4 Cleans up return statement. 2018-12-10 22:16:23 -05:00
Spencer Gibb
21f165c313 Adds convenience methods for working with Path Predicate variables.
fixes gh-705
2018-12-10 21:26:29 -05:00
Spencer Gibb
8dff219cf2 fixes bad default 2018-12-10 16:14:53 -05:00
Spencer Gibb
d7669b7415 Fixes inconsistencies in request rate limiter filter.
Allows other `KeyResolver` implementations to be injected.

If key resolver does not resolve a key, requests can be conditionally
denied.

fixes gh-624
2018-12-10 15:45:20 -05:00
Spencer Gibb
8abac4b0ba Uses default port and ignores errors if redis running 2018-12-10 14:10:27 -05:00
Spencer Gibb
e3799c4820 Don't fail redis rule if redis is already running. 2018-12-10 14:10:05 -05:00
Ryan Baxter
8cc184f48c Fixes #684 2018-12-06 15:21:29 -05:00
Ryan Baxter
ed5729a550 Merge pull request #634 from glenacota/document-actuator-api
Add documentation to the Actuator API section
2018-11-28 20:04:18 -05:00
Ryan Baxter
0ce58177cc Merge pull request #656 from spring-cloud/proxyexchange-override-headers
Updates webflux ProxyExchange to overwrite incomming headers rather t…
2018-11-15 12:28:23 -05:00
Spencer Gibb
3dc99dacf5 removes println 2018-11-15 11:16:30 -05:00
Spencer Gibb
0eb7206ab9 Updates webflux ProxyExchange to overwrite incomming headers rather than add to them.
Added the test to mvc ProxyExchange and it currently exhibits this behavior already and the test passes.

see gh-643
2018-11-14 18:41:46 -05:00