These are chat archives for spring-cloud/spring-cloud

23rd
Jun 2016
Donovan Muller
@donovanmuller
Jun 23 2016 09:22
Granted I have a unique use case but would it be worth adding the ability to resolve the pom.xml for artifacts in MavenArtifactResolver with reference to spring-cloud-deployer-resource-maven ?
I.e. in addition to the .jar
ccit-spence
@ccit-spence
Jun 23 2016 09:28
Where is a current example of the Spring Cloud Cloud Foundry Connector and MySQL?
I found some post but they are dated and not sure if something has changed
Dave Syer
@dsyer
Jun 23 2016 09:51
Nothing changed
My blog from last year is still on spring.io
ccit-spence
@ccit-spence
Jun 23 2016 09:51
ok, that was what I was looking at
hard to keep up sometimes
Dave Syer
@dsyer
Jun 23 2016 09:51
@donovanmuller I think the maven coordinates can include a classifier
But there's no support for treating different classifiers in different ways AFAIK
Donovan Muller
@donovanmuller
Jun 23 2016 09:54
Speaking under correction but it seems it's the artifact extension that Aether uses to resolve
Not sure if you can do both at the same time type thing
Have hacked a solution where I resolve (extension = "pom") the pom.xml (based on properties flag) befofe the actual artifact
Basically, is this something I should raise an issue for or is it too niche?
Dave Syer
@dsyer
Jun 23 2016 10:27
Feel free to raise an issue. But you might have to explain the use case a bit better.
Donovan Muller
@donovanmuller
Jun 23 2016 10:50
Will do
Patrick Cornelißen
@pcornelissen
Jun 23 2016 15:31
Hi! Ribbon drives me nuts sometimes :-) I am trying to configure zuul to ignore the wrong hostname, but it doesn't work :-(
I tried for example "zuul.ribbon.IsHostnameValidationRequired=false" but this had no effect
There are quite a few google hits of people wich talk about customizing this, but I couldn't find an example that shows how to fix this
I'm kind of lost in config hell at the moment
Dave Syer
@dsyer
Jun 23 2016 15:44
Is 'zuul' actually the name of your ribbon client? (You would have to have done that yourself.)
Patrick Cornelißen
@pcornelissen
Jun 23 2016 15:44
I have tried to find the name of the ribbon client that zuul uses but wasn't able find it yet
Dave Syer
@dsyer
Jun 23 2016 15:48
If you are using the Zuul proxy from spring cloud, the ribbon client id is the service id for the route.
Patrick Cornelißen
@pcornelissen
Jun 23 2016 15:49
there is still no way to set this for all ribbon clients?
Dave Syer
@dsyer
Jun 23 2016 15:51
I think there probably is. Check the ribbon user guide.
Patrick Cornelißen
@pcornelissen
Jun 23 2016 15:52
Maybe I need a break, but all I've seen are hints on how to configure a specific client
zuul.routes.uss.path=/userservice-userservice-impl/**
zuul.routes.uss.url=${app.target.protocol}://${app.target.host}:${app.target.port}/userservice-userservice-impl
uss.ribbon.IsHostnameValidationRequired=false
this should work, right?
Dave Syer
@dsyer
Jun 23 2016 16:00
No. You aren't using ribbon there.
Ribbon is only used when there is service discovery to do.
JonathanAaron
@JonathanAaron
Jun 23 2016 16:20
Every once in a while Zuul throws a forwarding error when trying to hit one of my eureka clients. Do I need to set a ReadTimeout for it?
Patrick Cornelißen
@pcornelissen
Jun 23 2016 16:24
argh, ok I missed that
So zuul uses the plain Springclientfactory?
ah no, that is still ribbon
hmm, ok, I'll have to check how zuul creates the http connections, so I can disable the hostname checking
Patrick Cornelißen
@pcornelissen
Jun 23 2016 16:36
the SimpleHostRoutingFilter doesn't allow in newClient to set the SSLHostnameVerifier :-(
Patrick Cornelißen
@pcornelissen
Jun 23 2016 16:49
there is also no direct way to provide my own SimpleHostRoutingFilter, wouldn't it make sense to have ConditionalOnMissingBean there, so people can simpler have their own implementation?
Spencer Gibb
@spencergibb
Jun 23 2016 17:13
@pcornelissen you can disable it withzuul.<getSimpleName>.≤filterType>.disable, so zuul. SimpleHostRoutingFilter.route.disable.
Patrick Cornelißen
@pcornelissen
Jun 23 2016 17:16
Still no luck. I try to create a minimal demo project...
JonathanAaron
@JonathanAaron
Jun 23 2016 18:14
If i wanted to add a ReadTimeout on a eureka client called a-composite-service would i add this to zuul's bootstrap.yml? '''ribbon:
a-composite-service:
ReadTimeout: 6000'''
  a-composite-service:
    ReadTimeout: 6000
or would it be ribbon: a-composite-service: ReadTimeout: 6000
Spencer Gibb
@spencergibb
Jun 23 2016 18:17
sorry formatting is making it hard to see any difference in all 3
JonathanAaron
@JonathanAaron
Jun 23 2016 18:17
Oh...sorry one second
Spencer Gibb
@spencergibb
Jun 23 2016 18:17
a-composite-service.ribbon.ReadTimeout: 6000 https://github.com/Netflix/ribbon/wiki/Programmers-Guide
JonathanAaron
@JonathanAaron
Jun 23 2016 18:18
Awesome....I can just stick that into zuul's bootstrap.yml?
Spencer Gibb
@spencergibb
Jun 23 2016 18:18
yes
JonathanAaron
@JonathanAaron
Jun 23 2016 18:18
Thanks @spencergibb !
Patrick Cornelißen
@pcornelissen
Jun 23 2016 18:31
https://github.com/orchit/zuulsslproblem is a simple showcase for my ssl problem, when you do mvn verify it will fail
It's just a zuul server thatr tries to forward to a wiremock instance
Patrick Cornelißen
@pcornelissen
Jun 23 2016 18:57
OK, now I got it in the minimal example...
I think I will add a readme.md to explain the problem and solution, I think quite a lot of people may run into this
Dave Syer
@dsyer
Jun 23 2016 19:09
Probably a good place to park it here eventually: https://github.com/spring-cloud/spring-cloud-contract
If it's Wiremock related
Patrick Cornelißen
@pcornelissen
Jun 23 2016 19:15
feel free to use it. I added a license file (apache). And I have agreed to the contributors agreement.
so it's 9pm here, family time finally ;-)
Thanks guys!