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

Divide and conquer by the power of TLS

Avatar for Serranos Serranos
February 22, 2017

Divide and conquer by the power of TLS

TLS, security, agile, startups, microservices and other buzzwords. All things happily coexist. How can we put in place such infrastructure?

Avatar for Serranos

Serranos

February 22, 2017

More Decks by Serranos

Other Decks in Technology

Transcript

  1. Divide and conquer by the power of TLS Sérgio Serrano

    @serranos Confraria de Segurança da Informação 2017
  2. Microservices A system can have LOTS of microservices Netflix has

    >500 Source: https://www.slideshare.net/BruceWong3/the-case-for-chaos
  3. Convince everyone that’s a good idea The Security Guy -

    Certificates are amazing! - You get authentication!
  4. Convince everyone that’s a good idea The Security Guy -

    Certificates are amazing! - You get authentication! - You get confidentiality!
  5. Convince everyone that’s a good idea The Security Guy -

    Certificates are amazing! - You get authentication! - You get confidentiality! - You get integrity!
  6. Convince everyone that’s a good idea The Security Guy -

    Certificates are amazing! - You get authentication! - You get confidentiality! - You get integrity! - You get...
  7. Convince everyone that’s a good idea Or, maybe not. Maybe

    you get someone that used certs Someone with The Best™solution
  8. - Say WHAT? Do you know how many systems I

    own?! - OK. Than let’s make them last for… say forever! The Solution... Source: http://www.rawstory.com/
  9. Many systems, many certificates Certificate revocation is not a solved

    problem Revocation can become a nightmare Challenges
  10. Many systems, many certificates Certificate revocation is not a solved

    problem Revocation can become a nightmare Pièce de résistance: OCSP + CRLs do not scale very well Challenges
  11. How? The usual way... On the shoulders of giants: CFSSL

    by Cloudflare (initial core of Let’s Encrypt) Lemur by Netflix
  12. CFSSL Architecture No custom details, no hassle Profiles for each

    type of certificate: Server User Client machine API Hierarchical CA architecture by design CA core engine for the “let’s encrypt” initiative
  13. Configuration based No custom details, no hassle Profiles for each

    type of certificate: Server User Client machine JSON based
  14. What can you do with it? Create certificates Revoke certificates

    Deploy certificates remotely Notify about certificates expiring OCSP responder service CRL automated creation
  15. Scalability Scales horizontally Only state that exists is kept in

    the database - Certificates metadata and OCSP responses System can become tolerant to database failures
  16. Automation Integrates with DevOps environments via: Command line REST API

    Language library Automation = Short-lived certificates are possible! Short-lived certificates = better security Short-lived certificates = revocation problems highly reduced