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

28th
Jan 2016
Robin Hermans
@robin-maxxton
Jan 28 2016 11:24

Hi, I've been keeping track of the releases for Spring Cloud and I noticed that SR5 was added for the Angel release train. I hoped that SR5 would be compatible with Spring boot 1.3.x, but it looks like that is not the case. Sadly it's still on 1.2.x. Could you perhaps tell me when Spring Cloud will be compatible with Spring boot 1.3.1 and higher? Also will there be an official announcement for this (Or did I miss it)?

@dsyer
I've been looking at your blog posts on migrating Spring OAuth2 and Cloud:
http://spring.io/blog/2015/11/30/migrating-oauth2-apps-from-spring-boot-1-2-to-1-3
https://spring.io/blog/2015/11/25/migrating-spring-cloud-apps-from-spring-boot-1-2-to-1-3
but I'm not sure if it's worth it to migrate my applications. Once I do will it be easy to continue using Spring boot 1.3.x once it is compatible?
Or might I have to revert everything when that happens?

Dave Syer
@dsyer
Jan 28 2016 11:31
It really depends on the features you use
Some apps can migrate back and forth with no changes
The blog (and the main website) explain that spring boot 1.3 generally requires spring cloud Brixton
Robin Hermans
@robin-maxxton
Jan 28 2016 12:39
We're mostly using dependencies from the Spring Cloud Netflix project (for microservices). For example I'm using Hystrix and Turbine from monitoring my endpoints. Spring cloud config for loading and reloading configuration files from a Git repository. Zuul for the gateway and to top it of we use Spring Security OAuth2 for authorization.
Dave Syer
@dsyer
Jan 28 2016 12:44
I wrote a separate blog on the OAuth thing
Those are some of the features that need extra care
Robin Hermans
@robin-maxxton
Jan 28 2016 12:51
So I assume that migrating these is not recommended then? Cause I'd like to avoid having to revert everything back once Spring Cloud becomes compatible with Spring Boot 1.3.x in the near future. Cause I can't seem to find anything on planned releases for Spring Cloud ( this would be nice to know )
Dave Syer
@dsyer
Jan 28 2016 12:52
Sorry
We are just now getting some visibility into release schedules
Everything is hated on spring-cloud-stream
We are expecting that in Feb some time
I'll go through github projects and put dates in next week
Robin Hermans
@robin-maxxton
Jan 28 2016 12:54
That would be great, thank you
Marc Schumacher
@marcschumacher
Jan 28 2016 15:30
Is there a way to configure Spring Cloud Config that way that it uses a specific private key to access a GIT repo for configuration? Is there any configuration value I can use to do that? If not, would it be possible to overwrite something to be able to do so? Or would I need to implement that myself and apply a pull request? ;)
Marcin Grzejszczak
@marcingrzejszczak
Jan 28 2016 15:35
Dave Syer
@dsyer
Jan 28 2016 15:35
I think JGit behaves like a normal git client
@marcingrzejszczak I think he means the key for authenticating with git
Marc Schumacher
@marcschumacher
Jan 28 2016 15:36
@marcingrzejszczak No, sorry, it is not about encryption
@dsyer exactly
Dave Syer
@dsyer
Jan 28 2016 15:36
(which mostly you don't need but some git reopos are private I guess)
Anyway you can use ~/.git and ~/.ssh like you would normally
Marc Schumacher
@marcschumacher
Jan 28 2016 15:38
the background of this issue is that I want to use one specific key which is distributed to our group of developers and might be somewhere on the filesystem. Therefore I need this configurable...
does jgit also respect ~/.ssh/config?
Dave Syer
@dsyer
Jan 28 2016 15:39
I believe so
Marc Schumacher
@marcschumacher
Jan 28 2016 15:41
ic, anyway… when thinking about it… this would not solve my problem… I saw that you need to overwrite some code inside Jsch to be able to do so… I guess that is nothing that is supported yet by Spring Cloud Config, I mean to have an entry point to do so...
it is only about username and password that is supported as far as I can see
Dave Syer
@dsyer
Jan 28 2016 15:43
"It loads the known hosts and private keys from their default locations (identity, id_rsa and id_dsa) in the user’s .ssh directory."
Sounds like it works out of the box to me
Marc Schumacher
@marcschumacher
Jan 28 2016 15:44
yes, but I am not able to specify that inside my application
my default key would not be the one I want to have here
but anyway, maybe the general approach I have can be rethought, otherwise I might send a pull request… ;)
Dave Syer
@dsyer
Jan 28 2016 15:45
You can configure hosts individually in ~/.ssh/config
Marc Schumacher
@marcschumacher
Jan 28 2016 15:46
on host level yes, but not on application level
Dave Syer
@dsyer
Jan 28 2016 15:46
Why would your config repo not be tied to a host?
I don't get what doesn't work yet
Marc Schumacher
@marcschumacher
Jan 28 2016 15:52
on my dev machine I want to use the private key to connect to the GIT repo which I also will use on my CI system. I want to try out, if that works (not only one time, but maybe also for the future). Therefore I would ideally put that private key on a location on my filesystem and point the application (Configserver) to that key. I also have a key for the same host, which I use (as dev) to retrieve source code. I don’t want to mix those, and I don’t want to test just once if that key works, but also for future developments.
I hope that makes it a bit clearer :)
to be even more concrete: I want to use the github deploy key feature
Dave Syer
@dsyer
Jan 28 2016 17:13
Is it necessary to use the same deploy key locally as in your CI server?
I don't get it still
The git server (github I assume) has a fixed hostname.
Mark Ferguson
@fergoid
Jan 28 2016 17:28
Hi, as you know SB can autowire datasource using properties like spring.datasource.url/password/username. This works great in dev when I can define these in my application.properties file. When I am running in CloudFoundry I use a ServiceInfo class to access the database url and credentials . Most of the apps I have seen internally then go on to create a DataSource themselves using these parameters. Is there anyway to inject the values from my ServiceInfo class into the spring.datasource properties at runtime so I can use autowiring in CF as well?
Dave Syer
@dsyer
Jan 28 2016 17:29
IMO ServiceInfo is not that useful an abstraction in a Spring Boot application
Did you read the blog on spring.io about binding to services in CF?
2016 might be the year I try and persuade people to stop using the Cloud connectors in Boot
Mark Ferguson
@fergoid
Jan 28 2016 17:37
No I will check it out. Is that a recent post?
Mark Ferguson
@fergoid
Jan 28 2016 17:43
thanks!
Alex Filatov
@sprgn
Jan 28 2016 20:44
Has anyone experienced JDK8 metaspace memory leak when using @EnableDiscoveryClient ?
Dave Syer
@dsyer
Jan 28 2016 21:01
With an embedded container?
What makes you think it's a leak?
Alex Filatov
@sprgn
Jan 28 2016 21:23
Not embedded, in a standalone Tomcat container. I'm deploying/undeploying config server with @EanablediscoveryClient specified and after undeployment class instances do not get unloaded and then grow by same amount upon next deployment. Same pattern follows the metaspace until it runs out. Just wondering if someone ran into this before.
Dave Syer
@dsyer
Jan 28 2016 21:55
It's not common to use a standalone container
So I doubt anyone noticed
Dave Syer
@dsyer
Jan 28 2016 22:00
You could try upgrading to the latest Spring Cloud bits if you haven't already (Eureka APIs changed quite a bit and we can now clean up after it a lot easier)
Also probably worth upgrading your Tomcat if you can
Alex Filatov
@sprgn
Jan 28 2016 22:10
I'm on Brixton.M4, so should be latest. Tomcat8
Dave Syer
@dsyer
Jan 28 2016 22:15
M4 is a few weeks ago.
Tomcat 8.what?
Get the latest
But don't expect too much
Stevo Slavić
@sslavic
Jan 28 2016 23:30
hello
is there more detailed docs on zuul routing rules?
request has URL which matches two route definitions, one more specific other one more general - ordering of route definitions doesn't seem to make a difference