Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ARE YOUR PASSWORDS SECURE? HashiCorp Vault & Spring Vault

ARE YOUR PASSWORDS SECURE? HashiCorp Vault & Spring Vault

What is a secret?
Why we must change our way
HashiCorp Vault
Use Cases
Architecture
Installation and Config Secrets Backends
Statics and Dynamics Secrets Demo

Walid El Sayed Aly

November 24, 2017
Tweet

More Decks by Walid El Sayed Aly

Other Decks in Technology

Transcript

  1. What is a secret? Why we must change our way

    HashiCorp Vault Use Cases Architecture Installation and Config Secrets Backends Statics and Dynamics Secrets Demo AGENDA
  2. Spring Vault with HashiCorp Vault What does Spring Vault offer?

    Which HTTP clients support Spring Vault? Demo Static (Key/Value) & Dynamic (PostgresSQL) AGENDA
  3. A secret is anything used for authentication or authorization: user/password,

    API tokens, TLS certificate, etc. can be also any sensitive data that could be confidential, like credit cards, social security numbers, e-mail, etc.
  4. HashiCorp Vault Vault provides a single interface for each secret

    It saves, stores and manages passwords, certificates and tokens Vault records a detailed audit log
  5. HashiCorp Vault Use Cases Secret Management Dynamic Secrets Encrypting as

    a service Prevailing Access Management Leasing and Renewal Revocation
  6. Vault Config File backend "inmem" { } listener "tcp" {

    address = "127.0.0.1:8200" tls_cert_file=“/Path_CERT_FILE” tls_key_file=“Path_CERT_KEY_FILE” tls_min_version="tls10" } disable_mlock = true
  7. Vault Secret Backend Systems Databases: MySQL, Postgres, Oracle, SAP HANA

    NoSQL: MongoDB, Cassendra Cloud Backends: AWS Key/Value: physical storage
  8. Vault Static and Dynamic Secrets Static secrets are like Key/Value

    secrets Dynamic secrets are generated when they are accessed
  9. Spring Vault provides abstractions and client-side support for accessing, storing

    and revoking secrets with HashiCorp Vault Vault Repositories: like the concept of Spring Data, offer Spring Vault CRUD Operation to access Secrets from HashiCorp
  10. Spring Vault Which HTTP Clients support Spring Vault? RestTemplate Apache

    Http Components Java java.net.URLConnection (HttpURLConnection) Netty OkHttp 3 von square
  11. Conclusion Secure your data and do not only decrypt Use

    new technology like HashiCorp to manage your secrets Apps and OPS mustn’t know which secrets they use Spring Vault is nice to use for apps that already use Spring frameworks