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

13th
Nov 2018
CH4:D
@chad_d_stud_twitter
Nov 13 2018 02:29
Hi, what library are you guys using to generate the honeycomb ui?
Spencer Gibb
@spencergibb
Nov 13 2018 02:30
what's that?
CH4:D
@chad_d_stud_twitter
Nov 13 2018 02:30
oh crap
wrong window again

:(
Spencer Gibb
@spencergibb
Nov 13 2018 02:30
haha, :laughing:
CH4:D
@chad_d_stud_twitter
Nov 13 2018 02:31
this was supposed to be for the SBA group. lol
i’m switching to gitter web. this thing lags like hell
Masykur Marhendra
@masykur_sn_twitter
Nov 13 2018 03:47
hi all...
my team currently using spring cloud Edgware.R3 and have web client written in golang and ruby
somehow when connecting to spring cloud, it requires high connection timeout e.g. > 60s
is there some configuration need to be updated ?
Masykur Marhendra
@masykur_sn_twitter
Nov 13 2018 09:50
found out that possibly in the network.. thanks guys
Hugh Hamill
@hughwphamill
Nov 13 2018 15:53
Is this the best place to ask a spring cloud gateway question?
Hugh Hamill
@hughwphamill
Nov 13 2018 15:58
Is there a simple way to strip a path prefix when forwarding to a route, but preserve the prefix as far as the downstream service is concerned. My use case is that my gateway hosts endpoints for a certain micsroservice on /microservice/{endpoints} and uses setPath("/{endpoints}") to route the request. The HATEOAS links that come back from the downstream service don't have "/microservice" in them, though they do have the correct host and port because I'm using preserveHostHeader() is there an equivalent filter for preserving paths?
Spencer Gibb
@spencergibb
Nov 13 2018 16:09
Yes, gateway questions are good here

Is there a simple way to strip a path prefix when forwarding to a route, but preserve the prefix as far as the downstream service is concerned

Not simply

The XForwardedHeadersFilter can add a non-standard X-Forwarded-Prefix header which should contain the data you need, but the downstream service will need to understand it and how to use it.
Hugh Hamill
@hughwphamill
Nov 13 2018 17:27
Thanks, do you know if spring-hateoas will understand that out of the box?
Spencer Gibb
@spencergibb
Nov 13 2018 17:29
not sure about prefix specifically, but it does understand X-Forwarded-* headers in general
Hugh Hamill
@hughwphamill
Nov 13 2018 17:31
OK, thanks and last q, I can't see how to create that in teh Kotlin DSL?
Spencer Gibb
@spencergibb
Nov 13 2018 17:31
create what?
Hugh Hamill
@hughwphamill
Nov 13 2018 17:32
The XFOrwardHeadersFilter
Or how do I apply it to a route?
Spencer Gibb
@spencergibb
Nov 13 2018 17:33
looks like its missing from the dsl
actually, it should already be applied. it's a header filter, not a normal route filter