Commit Graph

935 Commits

Author SHA1 Message Date
Marcin Grzejszczak
69a705731b Added Sonar support 2016-03-08 22:10:26 +01:00
Spencer Gibb
4aa156773c Upgrade eureka to 1.4.3
fixes gh-886
2016-03-08 12:27:32 -07:00
Dave Syer
2670890845 Whitespace 2016-03-08 08:18:38 +00:00
Spencer Gibb
48c9d48789 Upgrade Hystrix to 1.5.1
fixes gh-882
2016-03-07 23:09:02 -07:00
Spencer Gibb
a913369dd0 Upgrade feign version to 8.15.0
fixes gh-880
2016-03-07 14:31:44 -07:00
Spencer Gibb
eed5a6f10b Test RestTemplate with ribbon when metrics are enabled. 2016-03-07 14:08:27 -07:00
Spencer Gibb
0634c4bc37 Disabling the metrics interceptor fixes the tests.
I'm not sure that is a good thing though.
2016-03-07 12:30:39 -07:00
Dave Syer
8375e3b444 Adapt to changes in commons that put onus on user with @LoadBalanced 2016-03-07 18:04:10 +00:00
Spencer Gibb
790ac76a48 Change type of loadBalancerClient back LoadBalancerClient. 2016-03-04 11:21:43 -07:00
Dave Syer
1d1ad75afb Allow double-encoded JSON (as sent by Angel clients) in turbine
Fixes gh-873
2016-03-04 17:42:33 +00:00
Dave Syer
5bd18e4567 Mostly whitespace 2016-03-04 14:30:11 +00:00
Dave Syer
bda11adfd5 Ensure content type is application/json
For compatiblity with Angel streams we only need to set the content
type explicitly.

Fixes gh-873
2016-03-04 13:28:40 +00:00
Dave Syer
000fee96aa Use "=" as separator in @RequestMapping(headers=...)
Consistent with Spring MVC (and untested up to now apparently).

Fixes gh-874
2016-03-04 09:38:31 +00:00
Dave Syer
718cafcd04 Add X-Forwarded-Port explicitly for Tomcat (and other servers)
Fixes gh-872
2016-03-03 11:29:30 +00:00
Dave Syer
908dcc0ec8 Support for multivalued map of file uploads
i.e. user sends multiple files with the same parameter name.

Fixes gh-870
2016-03-03 09:33:07 +00:00
Spencer Gibb
4f6b2bceae Record load balancer stats in RibbonHttpRequest.
fixes gh-731
2016-03-02 21:38:51 -07:00
Spencer Gibb
472b9d1757 Don't run PreDecorationFilter if serviceId already set.
fixes gh-695
2016-03-02 18:25:52 -07:00
Spencer Gibb
8a2a608af0 Add zuul.removeSemicolonContent to enable matrix params.
fixes gh-542
2016-03-02 15:24:04 -07:00
Spencer Gibb
60f4a5bc13 Move o.s.c.util to o.s.c.commons.util 2016-03-02 11:04:21 -07:00
Dave Syer
a5d839fe44 Fix mvnw script for milestones 2016-03-02 17:34:26 +00:00
Dave Syer
9ea64308cb Add Authorize to sensitive headers in zuul proxy 2016-03-02 16:17:01 +00:00
Spencer Gibb
b8cbf4e637 Don't debug body if zuul servlet or if disabled.
fixes gh-857
2016-03-01 16:20:54 -07:00
Spencer Gibb
2808162037 Upgrade Hystrix to 1.4.24
Upgrade RxJava to 1.1.1

fixes gh-866
2016-03-01 15:29:01 -07:00
Spencer Gibb
9e0d8cae17 Support HttpEntity not just ResponseEntity
fixes gh-859
2016-02-29 10:55:04 -07:00
Spencer Gibb
b6fef04761 Preserve upstream character encoding. Only default to UTF-8 if not set.
fixes gh-530
2016-02-26 14:43:12 -07:00
Spencer Gibb
b1bcf483c9 polish 2016-02-25 17:31:35 -07:00
Dave Syer
d2e004dc68 Add support for "sensitiveHeaders" in zuul.routes
By default we now discard all Set-Cookie and Cookie headers. User
can manipulate it per route via zuul.routes.*.sensitiveHeaders, or
globally via zuul.ignoredHeaders.
2016-02-25 16:51:22 +00:00
Dave Syer
40361f1b8e Add whitelist hosts and sensitive headers 2016-02-25 12:57:33 +00:00
Dave Syer
17eb2f8d91 Refer to correct config props object in docs 2016-02-25 11:53:38 +00:00
Spencer Gibb
727ea4d473 Upgrade eureka to 1.4.2
fixes gh-854
2016-02-24 17:20:17 -07:00
Spencer Gibb
46fa2110da Use default instanceid for sidecar
fixes gh-847
2016-02-24 13:48:14 -07:00
Dave Syer
ca81f5671a Add HTTP basic back to Eureka client
Latest Eureka from Netflix uses a different HTTP client, and it
ignores the HTTP basic credentials in a service URL. This change
partially restores the old behaviour by providing an interceptor
(ClientFilter) that has a single, global username/password
taken from the first serviceUrl that contains credentials.

Fixes gh-849
2016-02-24 17:57:52 +00:00
Dave Syer
bc0eef9ae2 Exclude jackson XML from eureka client by default
Any client that wants to can include it back again, but generally
it only causes problems (XML returned from apps instead of
JSON by Spring MVC for instance). In general it only causes problems
for services whose clients use "Accept: application/xml,*/*", for
instance (like a browser).

See gh-306
2016-02-24 09:34:12 +00:00
Dave Syer
093354e231 Check if client is in bootstrap and default to not register
Eureka now has the option (maybe always there) to not register
and that's a sensible default in the bootstrap phase (when we
might not know the port yet).
2016-02-24 09:14:29 +00:00
Dave Syer
d5f6dbe118 Revert "Add Feign expanders based on Spring conversion service"
This reverts commit 3f34ccc8fb. We
need to discuss a bit more (that thread local is probably unavoidable
given the design of Feign, but I don't like it yet).

See gh-841
2016-02-23 17:21:45 +00:00
Dave Syer
41c364002f Encode query params in Zuul filter
Some slightly tricky manipulation involved here, but hopefully
UriTemplate to the rescue.

Fixes gh-682
2016-02-23 15:19:23 +00:00
Matt Benson
3f34ccc8fb Add Feign expanders based on Spring conversion service
Automatically registers Spring conversion-based Feign Expanders
when available

Fixes gh-841
2016-02-23 11:50:23 +00:00
Matt Benson
05305568ff Parameter name discovery using compiler parameters
Spring MVC Feign Contract did not support parameter name fallback
for the #value() attributes of known parameter annotations. Makes
this feature available when the interface has been compiled with
the Java 8 -parameters compiler arg

Fixes gh-835
2016-02-23 11:42:40 +00:00
Matt Benson
c3766720fa Parameter name discovery for Feign clients
Supports Spring REST parameter annotations considered
only #value() members without respecting @AliasFor meta-annotations.
Address by passing a Spring-synthesized annotation to individual
AnnotatedParameterProcessors. This approach has the benefit of impacting
present as well as any future implementations alike.

Fixes gh-828
2016-02-23 11:39:49 +00:00
Dave Syer
c3efcbabb8 Fix links to client code 2016-02-23 10:28:51 +00:00
Dave Syer
79b7480f4f Move servlet detection filter to ZuulConfiguration
It seems like a generic feature to me (not specific to the proxy),
so logically it should live in the base class.

Fixes gh-844
2016-02-23 10:02:54 +00:00
Dave Syer
1a96e594f0 Do not override register() method in instance registry
The super class deals with syncing to peers, so we need that
call. It still delegates to the other register method and seems
to work just fine without the override.

Fixes gh-838
2016-02-23 09:49:16 +00:00
Dave Syer
32b3ca4159 Set registration retries to non-zero by default if peered 2016-02-23 09:49:16 +00:00
Spencer Gibb
aa2d0eb442 Merge pull request #797 from AndreasKl/simplefilter-connection-settings-config
* simplefilter-connection-settings-config:
  Add the ability to configure the max connections and max per route on PoolingHttpClientConnectionManager.
2016-02-22 17:41:18 -07:00
Andreas Kluth
65bf3bb6ee Add the ability to configure the max connections and max per route on PoolingHttpClientConnectionManager. 2016-02-22 17:39:31 -07:00
Spencer Gibb
bfd4efcd94 Ignore EurekaHealthIndicator (boot) in EurekaHealthCheckHandler (eureka).
See corresponding change in s-c-commons 539a537abb

fixes gh-643
2016-02-22 17:01:57 -07:00
Spencer Gibb
c1704235b4 polish 2016-02-22 15:23:24 -07:00
Spencer Gibb
572220ae1f Default secureVirtualHostName to spring.application.name.
See gh-826
2016-02-22 14:04:53 -07:00
Dave Syer
48913cbb64 Add zuul.ignoredHeaders configuration hook
User can exclude headers (generally in responses is most useful)
by configuring them, or calling a setter in ZuulProperties.

If Spring Security is on the classpath we add a few headers
automatically, corresponding to the ones that would be added
by Spring Security in the remote backend anyway (so they are not
added twice). Nothing is actually removed, so if the remote
service doesn't add those headers, we don't change anything.

The X-Application-Context header is also added to the hard coded
list of ignored headers, because it isn't relevant in the
gateway (and leaks information about the remote service).

Fixes gh-819
2016-02-22 13:23:24 +00:00
Spencer Gibb
86ac0127a5 Upgrade eureka to 1.4.1
Plus polish

fixes gh-836
2016-02-19 17:01:40 -07:00