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

16th
Mar 2018
three
@threeq
Mar 16 2018 03:44
please help me! I’m use spring bont 2.0.0 and spring cloud Finchley.M8 version.
why havn’t /hystrix.stream endpoint ?
Mark Paluch
@mp911de
Mar 16 2018 07:36
@BhavaniJ2_twitter There's no way to externally change ordering. The only thing that could be possible is subclassing EncryptionBootstrapConfiguration with a higher priority. In general, you wouldn't want to start encrypting the token because you want Vault to handle all crypto-related things.
sethupalaniyappan
@sethupalaniyappan
Mar 16 2018 12:56
@ryanjbaxter hi
thanks for your reply
management.endpoints.web.base-path is not working
if i type in my intelligence even that is not suggesing
i need to add any jar in my pom
Artem
@Art-T
Mar 16 2018 14:43

Hi all, getting this exception

java.lang.NoSuchMethodError: org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties.isResetOffsets()Z

kafka version 1.0.0
binder version 2.0.0.RC3
spring-cloud version Finchley.M8
boot version 2.0.0.RELEASE
any ideas?

Bhavani J
@BhavaniJ2_twitter
Mar 16 2018 14:44
@mp911de Thanks for the reply Mark! Yup, in fact even I want Vault to handle all crypto-related things but it is not doing that currently. Is there a way I could make sure VaultBootstrapConfiguration handles decrypting of Vault token instead of prioritizing subclass of EncryptionBootstrapConfiguration ?
Mark Corkery
@KramKroc
Mar 16 2018 14:47
Quck question, but does spring cloud config server no longer default to the master branch?
Mark Corkery
@KramKroc
Mar 16 2018 14:53
Never mind
sethupalaniyappan
@sethupalaniyappan
Mar 16 2018 14:53
you have to configur your label in your client
i think that comes under client
Ward Jans
@wjans
Mar 16 2018 15:02
hi all, is there an easy/elegant way to update a feign request interceptor in an integration test? I'm having an interceptor (feign context scoped) which gets a OAuthRestTemplate injected but I'd like to override it with the one I receive in my integration test by using OAuth2ContextSetup
Bhavani J
@BhavaniJ2_twitter
Mar 16 2018 15:52
@mp911de sorry I misunderstood your previous response. We have a requirement for encrypting Vault login credentials.
As per ISO standards, we are not supposed to store Vault token as plain text in the environment variable to login to Vault, hence we are storing it as encrypted text in Cloud Foundry User Provided service and then binding them to Spring Boot clients. While setting up VaultBootstrapConfiguration is there a way to decrypt the token and populate them as Vault properties to login to Vault?
pradeepkusingh
@pradeepkusingh
Mar 16 2018 16:47
I ma trying to create a zuul filter and don't know why it is not getting reflected ..it is bare minimum code
it is just a blank filter with PRE and order = 1
pradeepkusingh
@pradeepkusingh
Mar 16 2018 16:52
I printed a logger statement and don't see it is getting printed....it seems filter is not invoking at all
pradeepkusingh
@pradeepkusingh
Mar 16 2018 17:05
@ryanjbaxter how can I debug why zuul filter is not getting invoked.. I created one and just printing a logger statement and don't see it is bing loaded.
public class IVRActivationProfileFilter extends ZuulFilter {
private static Logger log = LoggerFactory.getLogger(IVRActivationProfileFilter.class);


@Override
public boolean shouldFilter() {

    return true;
}


@Override
public Object run() throws ZuulException {

            RequestContext ctx = RequestContext.getCurrentContext();
    HttpServletRequest request = ctx.getRequest();
    log.info(String.format("%s request to %s", request.getMethod(), request.getRequestURL().toString()));

    return null;
}

@Override
public String filterType() {
        return "pre";
}

@Override
public int filterOrder() {

    return 1;
}
this is my filter
zuul is working fine when I route the request to service id
pradeepkusingh
@pradeepkusingh
Mar 16 2018 17:10
only thing filter is not getting invokved.
pradeepkusingh
@pradeepkusingh
Mar 16 2018 17:21
@spencergibb any help would be highly appreciated.
Spencer Gibb
@spencergibb
Mar 16 2018 17:23
@pradeepkusingh I have no idea. Did you declare it as a bean?
pradeepkusingh
@pradeepkusingh
Mar 16 2018 17:26
you are the CHAMPION..I missed @component
wow you are GREAT without much detail you solved it
@spencergibb Thank you
and again Foolish mistake by me :)