how to implement spring cloud config server security with docker -


i want use spring cloud config server security :

i find example in : https://github.com/spring-cloud-samples/config-repo/blob/master/application.yml

 profile:     cloud:             config:               uri: ${vcap.services.${prefix:}configserver.credentials.uri:http://user:password@${prefix:}configserver.${application.domain:cfapps.io}} 

but: can not understand : whats words meaning ?

e.g.

  1. vcap.services
  2. ${prefix:}configserver.credentials.uri
  3. ${prefix:}
  4. ${prefix:}configserver
  5. ${prefix:}sso.credentials.tokenur

and , if use docker instead of cloud profile , :

docker     config:       uri: http://${configserver_1_port_8888_tcp_addr:localhost}:8888  client:     serviceurl:       defaultzone: http://${eureka_1_port_8761_tcp_addr:localhost}:8761/eureka/ 

when try :

in coifing-server application.yml :

security:   user:     password: 1 

in client-server application.yml

spring:   cloud:     config:       uri: http://user:1@localhost:8888 

the client-server console has errors :

 c.c.c.configservicepropertysourcelocator : fetching config server at: http://localhost:8888   c.c.c.configservicepropertysourcelocator : not locate propertysource: label not found 

whole code in : https://github.com/keryhu/coud-config-security

how implement security config ?

can me?

you need set config server uri in bootstrap.yml (or .properties) because needed in bootstrap phase.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -