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

14th
Dec 2016
Ignacio Ocampo
@nafiux
Dec 14 2016 01:26
@nafiux
Hello Team, I’ve a Spring Boot application which I’m packaging in a JAR file with bootRepackage { classifier = ‘exec’ } which is creating the original JAR without dependencies and another one with dependencies.
For CI purposes, I’m using the flat JAR (without dependencies) and I’m running the app as: jar -cp myfile.jar:./libs/* my.package.MainClass
The problems is that my app can’t load a JSON file instead the WEB-INF/myjson.json, I ensure to include this file into the JAR file
The only way to run that is to put myjson.json file in src/main/webapp/WEB-INF/myjson.json in the same path as the app
I’ve tried also to include myjson.json file in the long path and short path: WEB-INF/myjson.json and src/main/webapp/WEB-INF/myjson.json, inside the JAR.
Is there a way to load the JSON file from the JAR?
Spencer Gibb
@spencergibb
Dec 14 2016 01:39
try the spring boot room @nafiux
Ignacio Ocampo
@nafiux
Dec 14 2016 01:40
Thanks @spencergibb
Dana Danet
@ddanet
Dec 14 2016 03:15
Probably been answered and I apologize in advance. Have pretty much vanilla Micro-Service env implemented with Spring Cloud running Cloud Zuul as a gateway.. I've introduced Keycloak as our SSO provider and would like Zuul to pass-thru the JWT. I must be missing something in the Zuul config to allow the 'Authorization' header to pass through.. What can I give you all to help me debug?
Spencer Gibb
@spencergibb
Dec 14 2016 04:16
Yes. Search for zuul.sensitiveHeaders in the docs. Setting it to cookie and set-cookie will allow the auth header thru
Dana Danet
@ddanet
Dec 14 2016 05:31
@spencergibb
Interesting... I thought I worked through a few config settings setting that property at the ..routes.<routeId> level to no avail.. I did as you said and set it as a child of zuul and it worked.. Oh, that and did not rely on IDE tooltip 'List of sensitive headers that are not passed down...' (kinda misleading) and instead looked at the 'sensitiveHeaders' method docs in ZuulProperties.java. Took all of about 3 minutes after your tip to resolve a good 3 hours of 'hunt n peck' programming.
Thanks Spencer for taking the time tonight for guidance.