spring cloud with consul and vault
TRANSCRIPT
![Page 1: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/1.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Spring Cloud with Consul & Vault
@spencerbgibb http://spencer.gibb.us
![Page 2: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/2.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Agenda
2
![Page 3: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/3.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Agenda
2
Consul
![Page 4: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/4.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Agenda
2
Vault
Consul
![Page 5: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/5.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 3
![Page 6: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/6.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
First, some history…
3
![Page 7: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/7.jpg)
![Page 8: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/8.jpg)
![Page 9: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/9.jpg)
Eureka!
![Page 10: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/10.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 5
Eureka!
![Page 11: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/11.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 5
XmlXStream.getInstance()
JsonXStream.getInstance()
DiscoveryManager.getInstance()
ReflectionUtils.findField()
ApplicationInfoManager.getInstance()
Eureka!
![Page 12: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/12.jpg)
![Page 13: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/13.jpg)
![Page 14: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/14.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 7
![Page 15: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/15.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 7
Angel
![Page 16: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/16.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 7
Angel
Static Singletons
![Page 17: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/17.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 7
Angel
Static Singletons Auto Registration
![Page 18: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/18.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 7
Angel
Static Singletons Auto Registration
😡
![Page 19: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/19.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 8
Static Singletons Auto Registration
😡
![Page 20: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/20.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 8
Brixton
Static Singletons Auto Registration
😡
![Page 21: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/21.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 8
Brixton
Auto Registration
😡
![Page 22: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/22.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 8
Brixton
Auto Registration
😡
![Page 23: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/23.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 8
Brixton
Auto Registration
😡
![Page 24: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/24.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 9
Auto Registration
😡
![Page 25: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/25.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 9
Camden
Auto Registration
😡
![Page 26: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/26.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 9
Camden
Auto Registration
😡
![Page 27: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/27.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 9
Camden
Auto Registration
😡🏠
![Page 28: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/28.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 9
Camden
Auto Registration
😡 🏠
![Page 29: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/29.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 10
Auto Registration
😡
![Page 30: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/30.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 10
Dalston
Auto Registration
😡
![Page 31: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/31.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 10
Dalston
Auto Registration
😡
ServiceRegistry
![Page 32: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/32.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 10
Dalston
Auto Registration ServiceRegistry
😀
![Page 33: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/33.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 11
Consul
![Page 34: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/34.jpg)
![Page 35: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/35.jpg)
BootstrapServer
![Page 36: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/36.jpg)
BootstrapServer
Server
![Page 37: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/37.jpg)
BootstrapServer
Server
Server
![Page 38: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/38.jpg)
BootstrapServer
Server
Server
Agent
![Page 39: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/39.jpg)
BootstrapServer
Server
Server
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
![Page 40: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/40.jpg)
BootstrapServer
Server
Server
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
![Page 41: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/41.jpg)
BootstrapServer
Server
Server
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
![Page 42: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/42.jpg)
BootstrapServer
Server
Server
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
Agent
WAN
![Page 43: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/43.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 13
Agent
/v1/agent/service/register
![Page 44: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/44.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 13
Agent
/v1/agent/service/register
@DiscoveryClient
![Page 45: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/45.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 14
Agent
/v1/agent/service/register
@DiscoveryClient
![Page 46: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/46.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 15
;<<>>DiG9.8.3-P1<<>>@localhost-p8600testConsulApp.service.consul.;(3serversfound);;globaloptions:+cmd;;Gotanswer:;;->>HEADER<<-opcode:QUERY,status:NOERROR,id:14202;;flags:qraard;QUERY:1,ANSWER:1,AUTHORITY:0,ADDITIONAL:0;;WARNING:recursionrequestedbutnotavailable
;;QUESTIONSECTION:;testConsulApp.service.consul. IN A
;;ANSWERSECTION:testConsulApp.service.consul.0 IN A 192.168.2.158
![Page 47: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/47.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 16
Agent
/v1/health/checks/<service>
![Page 48: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/48.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 16
Agent
/v1/health/checks/<service>
/health
![Page 49: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/49.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 16
Agent
/v1/health/checks/<service>
/health
Ribbon ServerList&IPing
![Page 50: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/50.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 17
Agent
/v1/kv/<key>
![Page 51: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/51.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 17
Agent
/v1/kv/<key>
spring-cloud-consul-starter-config
![Page 52: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/52.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 17
Agent
/v1/kv/<key>
spring-cloud-consul-starter-config
Supports git2consul
![Page 53: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/53.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 18
Agent
/v1/event/fire/<name>
![Page 54: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/54.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 18
Agent
/v1/event/fire/<name>
spring-cloud-consul-starter-bus
![Page 55: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/55.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 18
Agent
/v1/event/fire/<name>
spring-cloud-consul-starter-bus
Coming to Dalston
![Page 56: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/56.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 19
Agent
/v1/agent/service/register
![Page 57: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/57.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 19
Agent
/v1/agent/service/register
ServiceRegistry.register(<R>)
![Page 58: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/58.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 19
Agent
/v1/agent/service/register
ServiceRegistry.register(<R>)
Coming to Dalston
![Page 59: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/59.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 20
Agent
/v1/acl/create
![Page 60: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/60.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 20
Agent
/v1/acl/create
spring.cloud.consul.config.aclToken
![Page 61: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/61.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 21
Agent
![Page 62: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/62.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 21
Agent
![Page 63: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/63.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Demo
22
Agent
![Page 64: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/64.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
“Cryptography Is Harder Than It Looks” Bruce Schneier
23
https://www.schneier.com/blog/archives/2016/03/cryptography_is.html
![Page 65: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/65.jpg)
VAULT
![Page 66: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/66.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
“a tool for securely accessing secrets”
25
![Page 67: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/67.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Vault Features
• Secure Secret Storage
26
![Page 68: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/68.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Vault Features
• Secure Secret Storage• Detailed Audit Log
26
![Page 69: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/69.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Vault Features
• Secure Secret Storage• Detailed Audit Log• Dynamic Secrets
26
![Page 70: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/70.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Vault Features
• Secure Secret Storage• Detailed Audit Log• Dynamic Secrets• Leasing and Renewal
26
![Page 71: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/71.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Vault Features
• Secure Secret Storage• Detailed Audit Log• Dynamic Secrets• Leasing and Renewal• Revocation
26
![Page 72: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/72.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Vault Features
• Secure Secret Storage• Detailed Audit Log• Dynamic Secrets• Leasing and Renewal• Revocation• Encryption as a Service
26
![Page 73: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/73.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Demo
27
![Page 74: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/74.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Go See This Talk
28
Mark Paluch Managing Secrets at Scale
Wed, 4:20pm Starvine 10
![Page 75: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/75.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
What happens if I…?
29
![Page 76: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/76.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
What happens if I…?
29
![Page 77: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/77.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 / 30
"configService:https://github.com/spring-cloud-samples/config-repo/foo.properties":{"democonfigclient.message":"hellospringoneplatform","foo":“lasvegas"},"configService:https://github.com/spring-cloud-samples/config-repo/application.yml":{"info.description":"SpringCloudSamples",},"consul:config/foo/":{"foo":"consulbar"},"consul:config/application/":{"baz":"consulbaz"},"zookeeper:config/foo":{"bar":"zkbar"},"zookeeper:config/application":{"baz":"zkbaz"}
/env
![Page 78: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/78.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Spring Cloud Vault Config
31
https://github.com/spring-cloud-incubator/spring-cloud-vault-config
TODO: snapshot repo
spring-cloud-vault-starter-config
/v1/<backend>/<key>
![Page 79: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/79.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Spring Cloud Vault Config
31
https://github.com/spring-cloud-incubator/spring-cloud-vault-config
TODO: snapshot repo
spring-cloud-vault-starter-config
/v1/<backend>/<key>
spring-cloud-vault-starter-config
![Page 80: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/80.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Spring Cloud Vault Config
31
https://github.com/spring-cloud-incubator/spring-cloud-vault-config
TODO: snapshot repo
spring-cloud-vault-starter-config
/v1/<backend>/<key>
spring-cloud-vault-starter-config
Incubator Project
![Page 81: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/81.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Credential Creation for…
32
![Page 82: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/82.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Credential Creation for…
32
![Page 83: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/83.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Credential Creation for…
32
![Page 84: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/84.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Credential Creation for…
32
![Page 85: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/85.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Credential Creation for…
32
![Page 86: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/86.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Credential Creation for…
32
![Page 87: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/87.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Demo
33
![Page 88: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/88.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Go See This Talk
34
Nivesh Gopathi Secure + Dynamic App
Config at GapTech
Thurs, 11:45am Bristlecone 4
![Page 89: Spring Cloud with Consul and Vault](https://reader031.vdocuments.net/reader031/viewer/2022021814/58ec6b7e1a28ab07568b459b/html5/thumbnails/89.jpg)
Unless o therw ise ind ica ted , these s l ides are © 2013-2016 P ivo ta l So f tware , Inc . and l i censed under a Creat ive Commons At t r ibu t ion-NonCommerc ia l l i cense: h t tp : / / c rea t ivecommons.org / l i censes /by-nc /3 .0 /
Questions?
35
@spencerbgibbhttp://spencer.gibb.us