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

26th
May 2016
bluea
@bluea
May 26 2016 14:39
Hi all, I'm trying to set the spring cloud config server up with ssh access to my git config repo, any idea how to specify the private key?
Dieter Hubau
@Turbots
May 26 2016 14:45
hey @bluea you can find the documentation about using a Git repository as backend for your config server here
just scroll down a bit, they explain where you should store your SSH keys
SSH should also work out of the box when you store keys in the default directories (~/.ssh) and the uri points to an SSH location, e.g. "git@github.com:configuration/cloud-configuration".
copy pasted the relevant bit for you
bluea
@bluea
May 26 2016 14:49
Do the keys have to have the default name? id_rsa, id_rsa.pub? Mine are called lex_mac and lex_mac.pub (created them years ago)
Dieter Hubau
@Turbots
May 26 2016 14:53
they use JGit, not sure but most clients have the ability to add all keys in a folder to the SSH agent, so although im not sure, but I dont think a special filename is required
bluea
@bluea
May 26 2016 14:54
I think the URL has has to be prefix with ssh:// for JGit to choose the right protocol by the looks of things. I'll run some quick tests and confirm
Sharif Ghazzawi
@Sghazzawi
May 26 2016 17:49
@dsyer is there an example somewhere of using zuul to implement a consul sidecar? the example for eureka here http://projects.spring.io/spring-cloud/spring-cloud.html#_polyglot_support_with_sidecar doesn't seem to be applicable to consul
Spencer Gibb
@spencergibb
May 26 2016 18:51
Why do you want a sidecar with Consul. Isn't it already a sidecar?
Sharif Ghazzawi
@Sghazzawi
May 26 2016 20:19
@spencergibb here's what I'm trying to accomplish, we currently have a node service in our infrastructure that is not consul/service aware. I'm attempting to use a simple zuul configuration so that 1. health checks from consul go through the sidecar to the node app 2. requests from the node app to other services go through the sidecar so they are appropriately routed
I can't seem to come up w/ the correct mix of zuul routes and ports to accomplish both of those things. I either end up w/ 1. health check's go directly to the node app (which is not what we want since if the sidecar is down, we want consul to detect it) or 2. requests that should go to the node service itself are actually hitting the health check endpoint via the sidecar
Sharif Ghazzawi
@Sghazzawi
May 26 2016 20:27
(sorry, I'm using "node app" and "node service" interchangeably here)
David Welch
@dwelch2344
May 26 2016 21:57
@spencergibb SOS man. Feign client won't send our headers along with a POST, but GET works fine... header is added via interceptor. Different paths depending on method or payload type?