Commit Graph

652 Commits

Author SHA1 Message Date
Spencer Gibb
c12506fa2f removes temporary framework bom override 2018-09-19 16:15:24 -04:00
Spencer Gibb
58834daf62 temporarily disables HiddenHttpMethodFilter 2018-09-19 15:40:01 -04:00
Spencer Gibb
9019b0b70e Bumps build to 2.0.4.BUILD-SNAPSHOT 2018-09-19 15:40:01 -04:00
Ryan Baxter
ca65417b3c Merge pull request #545 from ryanjbaxter/path-matchtrailingslash
Add support for optionally matching trailing / in path predicate
2018-09-12 20:26:29 -04:00
Ryan Baxter
afe639d844 Add support for optionally matching trailing / in path predicate. Fixes #511 2018-09-12 14:24:03 -04:00
Spencer Gibb
6deb7c872f Merge branch 'dave-fl-minor_perf_tweaks' into 2.0.x 2018-09-11 17:14:25 -04:00
dave-fl
e5993efced Minor performance tweaks (showed as hotspots when testing). 2018-09-11 17:14:08 -04:00
violetagg
466057cd62 Use ReadTimeoutHandler for setting the response timeout (#540)
Fixes gh-524
2018-09-11 13:29:28 -04:00
Spencer Gibb
cba999a8b6 Adds response timeout test
fixes gh-518
2018-08-24 16:41:58 -04:00
Spencer Gibb
6e54ed23af Moves Evaluation Context as field and changes if predicate is true to not use spel. 2018-08-24 16:41:23 -04:00
Tony Clarke
5cf466cd2a responseMono timeout is a noop since the return Mono is ignored (#515) 2018-08-24 16:12:08 -04:00
Kerwin Bryant
cf28327eeb Allows LoadBalancerClientFilter to be extended (#448)
Makes `LoadBalancerClient` protected and creates protected `choose(ServerWebExchange)` method.
2018-08-15 14:06:56 -04:00
Ryan Dawson
bc1e549dc8 add x-forwarded-prefix header (#382)
If the path of the url that the gw is routing to is a subset of the url that it is routing from then the difference is the prefix. Also applies if the path of the url being routed to is empty and the routed-from url path is non-empty. 

Included quite a few null checks as it should allow for the various different route definition styles and types of request. I've been [using this](https://github.com/ryandawsonuk/activiti-cloud-gateway/tree/develop/src/main/java/org/springframework/cloud/gateway/filter/headers) in k8s by overriding the class and found the null checks to be necessary.

Was thinking it could be disabled by default as that's how it is for [nginx ingress](https://github.com/kubernetes/ingress-nginx/pull/1805) but I haven't thought of any specific reason not to enable by default.

fixes gh-314
2018-08-14 13:03:58 -04:00
Spencer Gibb
eea9510716 Adds option for setting custom content type for modify request body.
fixes gh-492
2018-08-14 12:58:01 -04:00
Spencer Gibb
63fb4bfb57 removes appuser 2018-08-08 15:58:45 -04:00
Spencer Gibb
e15ce1b8a0 removes sudo 2018-08-08 15:53:35 -04:00
Spencer Gibb
a5d2b24eb0 Attempt to migrate to circleci 2.0 2018-08-08 15:47:50 -04:00
Spencer Gibb
2bbf748fcd Calls to filter(collection) will now transform non-Ordered filters to Ordered filters.
fixes gh-445
2018-08-07 13:20:16 -04:00
Spencer Gibb
9aac4cb9c8 Rejects requests made on the management server port.
fixes gh-477
2018-08-07 12:33:56 -04:00
Spencer Gibb
2c49d49f36 Renames to Tests 2018-08-07 12:23:08 -04:00
Spencer Gibb
b08f8917d2 removes unused imports 2018-08-03 17:53:59 -04:00
Spencer Gibb
8cc6c3b840 Supports relative uri in RedirectTo filter
fixes gh-468
2018-08-03 17:38:21 -04:00
buildmaster
fb05818c85 Bumping versions to 2.0.2.BUILD-SNAPSHOT after release 2018-07-31 19:12:24 +00:00
buildmaster
5e6f06b720 Going back to snapshots 2018-07-31 19:12:24 +00:00
buildmaster
fe773fa4df Update SNAPSHOT to 2.0.1.RELEASE 2018-07-31 19:09:58 +00:00
Spencer Gibb
532872b635 Adds additional actuator exclusions from test. 2018-07-30 15:31:28 -04:00
Ryan Baxter
6c7168df89 Merge pull request #439 from ryanjbaxter/readbody-cachebody
Caches body object in ReadBodyPredicate
2018-07-30 15:10:11 -04:00
Ryan Baxter
94832d9817 Adding comment clarifying why we are caching the request body 2018-07-30 14:28:23 -04:00
Spencer Gibb
84ddb0050b Moves Metrics Filter to separate auto-config
fixes gh-457
2018-07-30 14:04:46 -04:00
Ryan Baxter
a25e408398 Autoconfigure GatewayDiscoveryClientAutoConfiguration after CompositeDiscoveryClientAutoConfiguration. Fixes #450. 2018-07-30 11:19:13 -04:00
Spencer Gibb
277958ed65 polish 2018-07-30 11:01:33 -04:00
Ryan Baxter
1424968165 Merge pull request #457 from tony-clarke-amdocs/metrics-conditional
Fix bug where metrics fail if actuator is not added as a project depency
2018-07-29 19:39:01 -04:00
Tony Clarke
b0bc375fb2 Update gateway actuator metrics test to use @ClassPathExclusions to verify gateway doesn't fall over when actuator metrics are not added as project dependency 2018-07-28 21:46:36 -04:00
Ryan Baxter
67de4c3cfa Add logging statement for ClassCastException 2018-07-28 10:58:04 -04:00
Tony Clarke
0b8a84e1b7 Fix bug where metrics fail if actuator is not added as a project dependency 2018-07-27 17:42:42 -04:00
Ryan Baxter
831008f42d Handle ClassCastException 2018-07-27 16:08:29 -04:00
Ryan Baxter
1b9f5eea6a Merge pull request #437 from tony-clarke-amdocs/ssl-trust
Create a trust manager backed by known trusted X509 certificates
2018-07-26 10:22:50 -04:00
Ryan Baxter
972c3710ee Merge pull request #432 from tony-clarke-amdocs/metrics-issue-12
Add support for api gateway metrics
2018-07-26 07:12:19 -04:00
Tony Clarke
ca915c9b5a Update metrics with feedback from Ryan and Jon. Metrics are now reported before we send the response back to the client. Hence no need for sleeps in the client side test. 2018-07-25 15:57:38 -04:00
Tony Clarke
22312fb2c1 Add license text and remove commented out test code 2018-07-23 16:15:34 -04:00
Tony Clarke
5f98cad301 Update metrics filter with feedback from ryanjbaxter and jkschneider 2018-07-22 22:22:59 -04:00
Tony Clarke
a849649356 Merge branch 'master' of https://github.com/spring-cloud/spring-cloud-gateway into metrics-issue-12 2018-07-22 22:11:16 -04:00
Ryan Baxter
cd48c2636d Merge pull request #446 from tony-clarke-amdocs/fix-cors-test
Fix CORS test to only allow GET method
2018-07-20 17:02:49 -04:00
Tony Clarke
816761e21f Fix CORS test to only allow GET method 2018-07-20 16:39:10 -04:00
Tony Clarke
7e12f233d0 Merge branch 'master' of https://github.com/spring-cloud/spring-cloud-gateway into metrics-issue-12 2018-07-20 16:04:35 -04:00
Ryan Baxter
6f8f0449ee Merge pull request #401 from tony-clarke-amdocs/master
Support CORS configuration.  Fixes #229
2018-07-20 15:57:55 -04:00
Tony Clarke
8f4a944ea2 Update documenation on how to configure CORS request/response 2018-07-20 15:53:15 -04:00
Ryan Baxter
04e36594e9 Merge pull request #441 from tillmannheigel/master
ForwardedHeadersFilter causes a broken http header (fixes #440)
2018-07-20 09:00:42 -04:00
Tillmann Heigel
b54825766a Use the correct code formatter as mentioned by @ryanjbaxter 2018-07-20 09:18:52 +02:00
Tillmann Heigel
23800cbd5c This solves a bug with the ForwardedHeadersFilter (#440) 2018-07-19 19:17:18 +02:00