25.4.2018
Präsentation und Demos: https://github.com/andifalk/jax-2018-spring-vault
Ab 25.Mai 2018 geltendes Recht!
“ Unter Berücksichtigung des Stands der Technik, ... treffen der Verantwortliche ...geeignete technische und organisatorische Maßnahmen, um ein dem Risiko angemessenes Schutzniveau zu gewährleisten; diese Maßnahmen schließen unter anderem Folgendes ein: a) die Pseudonymisierung und Verschlüsselung personenbezogener Daten... ”
Quelle: eur-lex.europa.eu
spring:
datasource:
url: jdbc:postgresql://localhost/test
username: root
password: mysupersecretpassword
How to protect the key encrypting key?
Justin Smith (CSO @ Pivotal)
Authentication
“A Security Swiss Army Knife”
Jeff Mitchell, Vault Lead, HashiCorp
path "secret/*" {
capabilities = [
"create", "read", "update",
"delete", "list"
]
}
path "secret/super-secret" {
capabilities = ["deny"]
}
$ vault write sys/policy/my-policy policy=@my-policy.json
$ vault token create -policy=my-policy ...
spring.cloud.vault.generic.application-name =
application1,additional/keys
#spring.cloud.vault.application-name = ...
#spring.application.name = ...
/secret/application1
/secret/application1/myprofile
/secret/additional/keys
/secret/application
/secret/application/myprofile
spring.profiles.active=git,vault
spring.cloud.config.server.vault.host=127.0.0.1
spring.cloud.config.server.vault.port=8200
spring.cloud.config.server.vault.scheme=https
spring.cloud.config.token = YourVaultToken
Hardware Security Modules (HSM)
...not Cloud Friendly or...
...quite expensive (AWS ~ 18000 $/year)
...and not 100% secure (“Confused Deputy”)
http://blog.novatec-gmbh.de
andreas.falk@novatec-gmbh.de
@andifalk
All images used are from Pixabay and are published under Creative Commons CC0 license.
All used logos are trademarks of corresponding companies