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
6 years ago
Spencer Gibb
eea9510716
Adds option for setting custom content type for modify request body.
...
fixes gh-492
6 years ago
Spencer Gibb
de86661ca6
Modify request body now uses recalculated content-length header.
6 years ago
Spencer Gibb
6d9c42028c
Updates for boot 2.1.0 and reactory-netty 0.8.x
6 years ago
Spencer Gibb
2bbf748fcd
Calls to filter(collection) will now transform non-Ordered filters to Ordered filters.
...
fixes gh-445
6 years ago
Spencer Gibb
9aac4cb9c8
Rejects requests made on the management server port.
...
fixes gh-477
6 years ago
Spencer Gibb
2c49d49f36
Renames to Tests
6 years ago
Spencer Gibb
b08f8917d2
removes unused imports
6 years ago
Spencer Gibb
8cc6c3b840
Supports relative uri in RedirectTo filter
...
fixes gh-468
6 years ago
buildmaster
fb05818c85
Bumping versions to 2.0.2.BUILD-SNAPSHOT after release
6 years ago
buildmaster
5e6f06b720
Going back to snapshots
6 years ago
buildmaster
fe773fa4df
Update SNAPSHOT to 2.0.1.RELEASE
6 years ago
Ryan Baxter
94832d9817
Adding comment clarifying why we are caching the request body
6 years ago
Spencer Gibb
84ddb0050b
Moves Metrics Filter to separate auto-config
...
fixes gh-457
6 years ago
Ryan Baxter
a25e408398
Autoconfigure GatewayDiscoveryClientAutoConfiguration after CompositeDiscoveryClientAutoConfiguration. Fixes #450 .
6 years ago
Spencer Gibb
277958ed65
polish
6 years ago
Ryan Baxter
67de4c3cfa
Add logging statement for ClassCastException
6 years ago
Tony Clarke
0b8a84e1b7
Fix bug where metrics fail if actuator is not added as a project dependency
6 years ago
Ryan Baxter
831008f42d
Handle ClassCastException
6 years ago
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.
6 years ago
Tony Clarke
22312fb2c1
Add license text and remove commented out test code
6 years ago
Tony Clarke
5f98cad301
Update metrics filter with feedback from ryanjbaxter and jkschneider
6 years ago
Tony Clarke
816761e21f
Fix CORS test to only allow GET method
6 years ago
Tony Clarke
8f4a944ea2
Update documenation on how to configure CORS request/response
6 years ago
Tillmann Heigel
b54825766a
Use the correct code formatter as mentioned by @ryanjbaxter
6 years ago
Tillmann Heigel
23800cbd5c
This solves a bug with the ForwardedHeadersFilter ( #440 )
6 years ago
Tillmann Heigel
84ac4963e8
This proves a bug with the ForwardedHeadersFilter ( #440 )
6 years ago
Ryan Baxter
20352a1b64
Caches body object in ReadBodyPredicate so we dont need to read it more than once. Fixes #438
6 years ago
Tony Clarke
ffbe5572f4
Create a trust manager backed by known trusted X509 certificates
6 years ago
Tony Clarke
26715114ec
Simulate scrape interval
6 years ago
Tony Clarke
ffaf242777
Add support for api gateway metrics
6 years ago
Spencer Gibb
8077b3d62b
Tests for null if no remote address.
...
fixes gh-430
6 years ago
Simon Baslé
c5fe1e7829
Improve route predicate handling of errors in filterWhen
...
This commit slightly changes the way filterWhen is used in route
predicate mapping, in order to avoid swallowing of errors due to the
combination of `filterWhen` and `next()`. This is due to `filterWhen`
delaying the emission of async predicate errors to the end of the
Flux, and `next()` potentially cancelling said Flux before the error(s)
are propagated.
The fix involves applying `filterWhen` inside a `concatMap`, on a value
per value basis rather than on the whole original Flux. This results
in predicate errors being propagated as they happen, at which point
we can log them and swallow them in the concatMap.
6 years ago
Spencer Gibb
c343b0ceec
Checks for null value if query parameter does not have a value
...
fixes gh-423
6 years ago
Spencer Gibb
6ceb65b7cf
Checks for null list if there are no query parameters.
...
fixes gh-374
6 years ago
Spencer Gibb
ef173a64c6
Adds response timeout using Mono.timeout
...
fixes gh-371
6 years ago
Toshiaki Maki
fdef92b3b7
Autoconfigure CloudFoundryRouteServiceRoutePredicateFactory and add cloudFoundryRouteService in DSL ( #294 )
6 years ago
Arjun Curat
0a62617320
Added unit tests for ForwardRoutingFilter ( #411 )
6 years ago
ileler
98e76f6785
Validates Route.uri has a scheme
6 years ago
Botorabi
884ffa93fc
Fixes typo in method 'convertHttpToWs'
...
The secure WebSocket protocol is "wss", not "wws".
6 years ago
Spencer Gibb
cdbcec06cd
Use constant
6 years ago
Tony Clarke
747c871bc2
Tighten up CORS test
6 years ago
Tony Clarke
6e138c40b6
Update formatting
6 years ago
Tony Clarke
07611ef8f8
Support global configuration for CORS. See https://github.com/spring-cloud/spring-cloud-gateway/issues/229
6 years ago
Spencer Gibb
28166054c4
Only sets content type attr if not null.
...
fixes gh-374
7 years ago
buildmaster
9b4556fb22
Bumping versions to 2.0.1.BUILD-SNAPSHOT after release
7 years ago
buildmaster
725be473d6
Going back to snapshots
7 years ago
buildmaster
d6b29a99f9
Update SNAPSHOT to 2.0.0.RELEASE
7 years ago
Spencer Gibb
949d6616ce
Adds option to configure connect timeout.
7 years ago
Spencer Gibb
dacd641335
Updates rewrite filters to use framework web function classes. ( #329 )
...
This avoids any blocking operations.
fixes gh-316
7 years ago