Commit Graph

2838 Commits

Author SHA1 Message Date
Spencer Gibb
248732e6ff Force isCircuitBreakerOpen to String (if it's a Boolean for example)
see https://github.com/Netflix/Hystrix/pull/927
2015-10-19 09:27:33 -06:00
Dave Syer
cd30bea0c8 Add smarts for local route handling in Zuul proxy
User can provide a url in the route that starts with "forward:"
(instead of "http:" etc.) to handle the request locally.

Also properly ignores ignored routes, so they can be handled locally
(rather than giving up and sending 404).

Fixes gh-536
2015-10-18 09:59:06 -04:00
Dave Syer
43cab5f9b5 Clarify secure application discovery a bit 2015-10-18 09:22:12 -04:00
Spencer Gibb
fa75ddf452 polish 2015-10-14 11:33:57 -06:00
Spencer Gibb
ce4076621a Merge pull request #588 from alexVengrovsk/master
* pull588:
  Add isDebugEnabled() check
2015-10-13 11:07:37 -06:00
alexVengrovsk
914fee9ae4 Add isDebugEnabled() check
It is good thing to make this checks because of expensive concatenation of String objects (debug messages).
2015-10-13 10:43:43 -06:00
Spencer Gibb
a3a7c60925 exclude commons-logging from ribbon
fixes gh-596
2015-10-13 09:57:38 -06:00
Spencer Gibb
8103bdbff8 revert zuul 1.1.0-rc.2 as it isn't published to maven central. 2015-10-12 12:43:26 -06:00
Spencer Gibb
fc20cc7135 Upgrade zuul to v1.1.0-rc.2
fixes gh-591
2015-10-12 12:32:44 -06:00
Spencer Gibb
7fcc559edb Remove blitz4j
fixes gh-527
2015-10-12 12:08:34 -06:00
Spencer Gibb
f878cfcf67 Polish 2015-10-12 11:25:27 -06:00
Spencer Gibb
3e0e47612c Do not require eurekaConfig.
Helps when eureka is on the classpath, but is explicitly disabled.

fixes gh-521
2015-10-12 11:16:08 -06:00
Spencer Gibb
a96666b902 Move DiscoveryClient creation so it is guarded.
Move it back to EurekaDiscoveryClientConfiguration.

fixes gh-578
2015-10-12 10:26:09 -06:00
Spencer Gibb
5b3a9f8f31 Align feign logging.
Since all feign clients now have access to the type, logging can apply a type regardless.

Fixes gh-431
2015-10-09 17:07:01 -06:00
Spencer Gibb
ef67fa328c Add local service to zuul ignoredServices by default.
fixes gh-447
2015-10-09 16:14:34 -06:00
Spencer Gibb
8058ced90d Remove dependency on governator.
Eureka now only directly depends on java.inject.

Fixes gh-529
2015-10-09 14:42:17 -06:00
Spencer Gibb
5f41de87d2 Polish 2015-10-09 14:00:24 -06:00
Spencer Gibb
c051cb83d2 Merge pull request #585 from mbenson/master
* pull585:
  Fix feign scanning that fails if clients attr is not use
2015-10-09 12:21:40 -06:00
Matt Benson
568bc47b3e Fix feign scanning that fails if clients attr is not use
fixes gh-584
2015-10-09 12:21:17 -06:00
Spencer Gibb
fe989530e3 remove reflection to set InstanceInfo.port 2015-10-09 12:00:40 -06:00
Spencer Gibb
51ea8afb24 Set port on InstanceInfo to support random server.port.
fixes gh-570
2015-10-09 11:47:56 -06:00
Spencer Gibb
5065e47565 Upgrade Hystrix to v1.4.17
fixes gh-576
2015-10-09 10:52:21 -06:00
Spencer Gibb
0cbfc20293 updated README 2015-10-08 17:08:00 -06:00
Spencer Gibb
2d595e86f3 remove extra punctuation 2015-10-08 16:21:52 -06:00
Spencer Gibb
82b21f34f5 Merge pull request #581 from jmnarloch/feign-compression-docs
* feign-compression-docs:
  Feign compression documentation
2015-10-08 16:12:24 -06:00
Jakub Narloch
68fa6afa17 Feign compression documentation 2015-10-08 16:12:05 -06:00
Spencer Gibb
c5950df6e4 polish 2015-10-08 15:41:09 -06:00
Spencer Gibb
d433096779 Merge pull request #577 from alexVengrovsk/master
* pull577:
  Use instanceof for better readability
2015-10-08 14:50:50 -06:00
alexVengrovsk
e4b63a5b51 Use instanceof for better readability 2015-10-08 12:01:44 +03:00
Spencer Gibb
8147b7de51 Merge pull request #575 from alexVengrovsk/master
* pull575:
  Use "<>" and use isInfoEnabled
2015-10-07 13:01:38 -06:00
alexVengrovsk
4510f657b9 Use "<>" and use isInfoEnabled 2015-10-07 12:54:23 -06:00
Spencer Gibb
810502c1f3 Allow overriding default feign beans.
Similar to @RibbonClient

fixes gh-288
2015-10-05 14:57:27 -06:00
Spencer Gibb
0df6f0c0ae fix(title-xss): escaping text acquired from parameters to avoid any xss attacks
https://github.com/Netflix/Hystrix/pull/921
2015-10-05 09:29:12 -06:00
Dave Syer
a7abfd4242 Upgrade to Zuul 1.1
Still a release candidate (not yet GA), but seems to work, so we'll
try and update before Spring Cloud is released again.

Fixes gh-546, fixes gh-567, fixes gh-553 (probably)
2015-10-03 08:26:57 +01:00
Dave Syer
5f84bcddd6 Align with package changes in Spring Cloud Config 2015-10-01 11:53:35 +01:00
Spencer Gibb
0c2c564be5 Merge pull request #490 from jmnarloch/feign-content-encoding-snapshot
* feign-content-encoding-snapshot:
  Feign request/response gzip compression
2015-09-30 12:17:41 -06:00
Jakub Narloch
8bdfaf2c3d Feign request/response gzip compression 2015-09-30 12:13:41 -06:00
Dave Syer
3ef58cdc39 Change DiscoveryClient->EurekaClient in docs 2015-09-30 11:34:34 +01:00
Dave Syer
17dc4f6f55 Update some dependencies 2015-09-30 11:34:34 +01:00
Spencer Gibb
65bf36ecf9 Upgrade hystrix to 1.4.16
fixes gh-561
2015-09-29 20:09:30 -06:00
Spencer Gibb
187af71535 move refs to EurekaInstanceConfigBean to interface.
Specifically CloudEurekaInstanceConfig where needed.

see gh-302
2015-09-29 11:32:04 -06:00
Dave Syer
4877de4916 Remove unused dependencies 2015-09-29 17:49:59 +01:00
Dave Syer
c6fda88fed Support for ServerIntrospector in Feign client
Other Ribbon clients in Spring Cloud use a ServerIntrospector
to check if the Server wanted to be secure. This change levels things
up (and makes the Spring Feign Client a lit easier to customize).

See gh-414
2015-09-29 15:57:11 +01:00
Dave Syer
422bc42cf6 Be less greedy with logging request bodies in Zuul traces
Most clients send "Transfer-Encoding: chunked" so this isn't often
an issue, but if they don't (e.g. if you use "-H Expect:" with
curl) then it's not a great idea to slurp it all into memory.

Fixes gh-563
2015-09-29 09:43:16 +01:00
Dave Syer
f1f239d774 Change hystrix command key to be the service ID in Zuul proxy
When using Ribbon the hystrix config and metrics are namespaced
as "RibbonCommand" (via the group key). the command key can then be
serviceId, making it easier to remember how to configure
Ribbon and Hystrix.

Fixes gh-329
2015-09-29 09:14:50 +01:00
Spencer Gibb
0141a13c92 Merge pull request #557 from boostrack-cloud/boostrack-patch-1
DRY
2015-09-28 15:58:59 -06:00
Spencer Gibb
aa8626739e Introduce Ribbon ServerIntrospector.
Allows ribbon load balancer implementations to answer questions like isSecure(Server).
2015-09-28 15:10:38 -06:00
Spencer Gibb
3ed982d235 Introduce Ribbon ServerIntrospector.
Allows ribbon load balancer implementations to answer questions like isSecure(Server).
2015-09-28 12:51:39 -06:00
Dave Syer
a38ba34049 Try to guess whether a ribbon client is looking for HTTPS
There are usually some hints available, especially if the Server
came from Eureka. Unfortunately Server on it's own doesn't contain
enough information (why?), but as a fallback we can guess that
anyone using port 443 is secure.

Fixes gh-459
2015-09-28 17:53:37 +01:00
boostrack
9c144220b1 DRY 2015-09-28 09:19:30 +02:00