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

4th
Jun 2018
suxg003
@suxg003
Jun 04 2018 07:27
hellp
CH4:D
@chad_d_stud_twitter
Jun 04 2018 07:48
just curious. do you guys prefer to use consul or eureka for your service registry?
salaboy
@salaboy
Jun 04 2018 07:49
@chad_d_stud_twitter niether :), are you looking into kubernetes?
CH4:D
@chad_d_stud_twitter
Jun 04 2018 07:49
not yet. does it have a service registry too?
salaboy
@salaboy
Jun 04 2018 07:49
yeah.. it does provide a built in service registry
CH4:D
@chad_d_stud_twitter
Jun 04 2018 07:50
and can it be used with spring’s feign?
salaboy
@salaboy
Jun 04 2018 07:50
yeah
CH4:D
@chad_d_stud_twitter
Jun 04 2018 07:50
hmmm
salaboy
@salaboy
Jun 04 2018 07:50
it is DNS based
CH4:D
@chad_d_stud_twitter
Jun 04 2018 07:50
is there a spring guide for that?
salaboy
@salaboy
Jun 04 2018 07:50
@chad_d_stud_twitter I wrote a blog post with an example: https://salaboy.com/2018/05/24/spring-cloud-kubernetes-example/
CH4:D
@chad_d_stud_twitter
Jun 04 2018 07:50
but we’re considering alternatives to fall back on (no pun intended)
no intro in the spring.io website?
salaboy
@salaboy
Jun 04 2018 07:54
@chad_d_stud_twitter not yet.. this is quite bleeding edge stuff .. people is just starting to look into k8s
CH4:D
@chad_d_stud_twitter
Jun 04 2018 07:54
yeah, i noticed that
salaboy
@salaboy
Jun 04 2018 07:54
but the project will be graduated from incubation soon
so it is a very good time to get involved
CH4:D
@chad_d_stud_twitter
Jun 04 2018 08:36
i’ll have to take time to adapt it if ever
vikrantch-hk
@vikrantch-hk
Jun 04 2018 10:40
@marcosbarbero hi I want to use basic authentication for eureka server. so I have added security dependency and user, password properties. I am getting login page when trying to access eureka default page and able to login, everything is working fine till then. But my eureka client is not able to connect to server. Is there any tutorial given for enabling security in eureka server
Marcos Barbero
@marcosbarbero
Jun 04 2018 10:41
did you add the user:pass to the client configuration?
vikrantch-hk
@vikrantch-hk
Jun 04 2018 10:51
yes
Marcos Barbero
@marcosbarbero
Jun 04 2018 10:51
it should work
do you have a sample of how are you adding it?
vikrantch-hk
@vikrantch-hk
Jun 04 2018 10:51
I am using aws configuration
@Bean
    @Profile("prod")
    public EurekaInstanceConfigBean eurekaInstanceConfig(InetUtils inetUtils) {
        EurekaInstanceConfigBean b = new EurekaInstanceConfigBean(inetUtils);
        AmazonInfo info = AmazonInfo.Builder.newBuilder().autoBuild("eureka");
        b.setDataCenterInfo(info);
        return b;
    }
got this comment somewhere in github Latest Eureka from Netflix uses a different HTTP client, and it
ignores the HTTP basic credentials in a service URL
so my doubt is may be because of this configuration client is not able parse username and password from service url
Marcos Barbero
@marcosbarbero
Jun 04 2018 10:55
do you have a link for this?
Marcos Barbero
@marcosbarbero
Jun 04 2018 12:19
@vikrantch-hk I just created an eureka-server and an eureka-client services using start.spring.io added security to the server and it just worked as expected
there's (probably) something misconfigured in your project
vikrantch-hk
@vikrantch-hk
Jun 04 2018 12:38
@marcosbarbero can you please share sample code it will be really helpful to cross check
Marcos Barbero
@marcosbarbero
Jun 04 2018 12:40
just a sec
vikrantch-hk
@vikrantch-hk
Jun 04 2018 13:23
@marcosbarbero is spring.security.enabled true required
I am not getting any prompt to enter user password when trying to access eureka console
Marcos Barbero
@marcosbarbero
Jun 04 2018 13:23
are you using spring boot 2.x?
if you are running my samples you should get the prompt only in the eureka-server
vikrantch-hk
@vikrantch-hk
Jun 04 2018 13:24
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.0.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>
i was trying with your properties and wasn't getting user/password prompt. I get it if I do spring.security.enabled true
Marcos Barbero
@marcosbarbero
Jun 04 2018 13:26
my sample uses boot 1.5.x it's a different way to configure it
let me try it with 2.x
vikrantch-hk
@vikrantch-hk
Jun 04 2018 13:51
@marcosbarbero let me know if you have tried
Marcos Barbero
@marcosbarbero
Jun 04 2018 14:09
@vikrantch-hk I can't check it right now, what I do know is that Security AutoConfig has changed, you can go for the migration guides to find out how to configure it properly
AFAIK this property that you mentioned spring.security.enabled doesn't exist
Andrew Fitzgerald
@fitzoh
Jun 04 2018 17:18
@spencergibb does it look like I found all the relevant reactor issues on spring-cloud/spring-cloud-gateway#228 ?